Advertisement
Gamebuster

parseMessage

Jan 16th, 2022 (edited)
835
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void parseMessage(undefined4 param_1,undefined4 param_2,undefined *param_3)
  2.  
  3. {
  4.   int iVar1;
  5.   uint *puVar2;
  6.   int iVar3;
  7.   undefined4 uVar4;
  8.   uint uVar5;
  9.   undefined8 uVar6;
  10.   uint local_88;
  11.   uint local_84;
  12.   undefined4 local_80;
  13.   int local_7c;
  14.   undefined4 local_78;
  15.   uint local_74;
  16.   int local_70;
  17.   int local_6c;
  18.   undefined4 local_68;
  19.   undefined4 local_64;
  20.   undefined4 local_60;
  21.   undefined4 local_5c;
  22.   undefined4 local_58;
  23.   undefined4 local_54;
  24.   undefined4 local_50;
  25.   undefined4 local_4c;
  26.   undefined4 local_48;
  27.   undefined4 local_44;
  28.   undefined4 local_40;
  29.   undefined4 local_3c;
  30.   undefined4 local_38;
  31.   undefined4 local_34;
  32.   undefined4 local_30;
  33.   undefined4 local_2c;
  34.  
  35.   uVar6 = zz_80033960_();
  36.   iVar1 = (int)((ulonglong)uVar6 >> 0x20);
  37.   *(undefined4 *)uVar6 = 0xffffffff;
  38.   *param_3 = 0;
  39.   local_68 = 0;
  40.   local_64 = 0;
  41.   local_60 = 0;
  42.   local_5c = 0;
  43.   local_58 = 0;
  44.   local_54 = 0;
  45.   local_50 = 0;
  46.   local_4c = 0;
  47.   local_48 = 0;
  48.   local_44 = 0;
  49.   local_40 = 0;
  50.   local_3c = 0;
  51.   local_38 = 0;
  52.   local_34 = 0;
  53.   local_30 = 0;
  54.   local_2c = 0;
  55.   puVar2 = (uint *)zz_8003df54_();
  56.   uVar5 = *puVar2;
  57.   local_74 = 0;
  58.   iVar3 = zz_800ba4f4_(iVar1 + 4,&local_74);
  59.   DAT_805a4a24 = iVar3;
  60.   if (iVar3 == 0) {
  61.     local_88 = local_74 & 0xffffff00;
  62.     local_84 = uVar5 & 0xffffff00;
  63.     if (local_88 == local_84) {
  64.       *param_3 = 1;
  65.       iVar3 = zz_800bf8c0_(iVar1 + 4,&local_68,0x40,&local_6c,&local_70);
  66.       DAT_805a4a24 = iVar3;
  67.       if (iVar3 == 0) {
  68.         local_78 = 0;
  69.         local_7c = 0;
  70.         local_80 = 0;
  71.         if ((((local_6c == 0) && (local_70 == 0)) &&
  72.             (iVar3 = zz_8002caf4_(&local_68,s_ver=%x_type=%x_crc=%x_8049e7bd,&local_7c,&local_78,
  73.                                   &local_80), iVar3 == 3)) && (local_7c == 2)) {
  74.           uVar4 = 1;
  75.           *(undefined4 *)(iVar1 + 0x108) = local_80;
  76.           *(undefined4 *)uVar6 = local_78;
  77.           *param_3 = 0;
  78.           goto LAB_803f885c;
  79.         }
  80.         zz_803ec320_(s_msgbox:_bad_version_8049e7d3);
  81.       }
  82.       else {
  83.         uVar4 = zz_803f75b0_();
  84.         zz_803ec320_(s_msgbox:_%s_fails_(%s_:_%d)_8049e47f,s_NWC24ReadMsgText_8049e7ac,uVar4,iVar3);
  85.         zz_803ec320_(s_msgbox:_ReadMsgText_fails_8049e7e7);
  86.       }
  87.       uVar4 = 0;
  88.     }
  89.     else {
  90.       zz_803ec320_(s_msgbox:_message_app_id_doesn't_m_8049e778,local_74,uVar5);
  91.      uVar4 = 0;
  92.    }
  93.  }
  94.  else {
  95.    uVar4 = zz_803f75b0_();
  96.    zz_803ec320_(s_msgbox:_%s_fails_(%s_:_%d)_8049e47f,s_NWC24GetMsgAppId_8049e767,uVar4,iVar3);
  97.    uVar4 = 0;
  98.  }
  99. LAB_803f885c:
  100.  zz_800339ac_(uVar4);
  101.  return;
  102. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement