DeathChaos25

P5 ParseUNITTBL IDA Output

May 3rd, 2021
501
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int __fastcall sub_264950(int a1)
  2. {
  3.   int v2; // r4
  4.   int v3; // r3
  5.   int v4; // r27
  6.   unsigned __int64 v5; // r6
  7.   int v6; // r3
  8.   int v7; // r5
  9.   int v8; // r26
  10.   unsigned __int64 v9; // r6
  11.   int v10; // r3
  12.   int v11; // r5
  13.   int v12; // r25
  14.   unsigned __int64 v13; // r6
  15.   int v14; // r3
  16.   int v15; // r5
  17.   int v16; // r29
  18.   int v18[2]; // [sp+70h] [-40h] BYREF
  19.  
  20.   sub_90053C(v18, a1, 4);
  21.   sub_90053C(&unk_D73CF0, a1 + 4, v18[0]);
  22.   v2 = 0;
  23.   v3 = 16 * (((v18[0] + 4) >> 4) + ((_cntlzw((v18[0] + 4) % 16) & 0x20) == 0));
  24.   if ( v3 - (v18[0] + 4) > 0 )
  25.     v2 = v3 - (v18[0] + 4);
  26.   v4 = a1 + 4 + v18[0] + v2;
  27.   sub_90053C(v18, v4, 4);
  28.   sub_90053C(&off_D79FA8, v4 + 4, v18[0]);
  29.   HIDWORD(v5) = v18[0] + 4;
  30.   LODWORD(v5) = ((v18[0] + 4) >> 4) + ((_cntlzw((v18[0] + 4) % 16) & 0x20) == 0);
  31.   v6 = 0;
  32.   v7 = 16 * v5 - (v5 >> 28);
  33.   if ( v7 > 0 )
  34.     v6 = v7;
  35.   v8 = v4 + 4 + v18[0] + v6;
  36.   sub_90053C(v18, v8, 4);
  37.   sub_90053C(&off_D6F470, v8 + 4, v18[0]);
  38.   HIDWORD(v9) = v18[0] + 4;
  39.   v10 = 0;
  40.   LODWORD(v9) = ((v18[0] + 4) >> 4) + ((v18[0] + 4) % 16 != 0);
  41.   v11 = 16 * v9 - (v9 >> 28);
  42.   if ( v11 > 0 )
  43.     v10 = v11;
  44.   v12 = v8 + 4 + v18[0] + v10;
  45.   sub_90053C(v18, v12, 4);
  46.   sub_90053C(&unk_D7D680, v12 + 4, v18[0]);
  47.   HIDWORD(v13) = v18[0] + 4;
  48.   LODWORD(v13) = ((v18[0] + 4) >> 4) + ((_cntlzw((v18[0] + 4) % 16) & 0x20) == 0);
  49.   v14 = 0;
  50.   v15 = 16 * v13 - (v13 >> 28);
  51.   if ( v15 > 0 )
  52.     v14 = v15;
  53.   v16 = v12 + 4 + v18[0] + v14;
  54.   sub_90053C(v18, v16, 4);
  55.   return sub_90053C(&word_D79A2C, v16 + 4, v18[0]);
  56. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×