Guest User

Untitled

a guest
Jul 24th, 2019
623
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bool __fastcall AppDelegate::applicationDidFinishLaunching(int a1, int a2, bool a3)
  2. {
  3. cocos2d::Director *v3; // r0
  4. int v4; // r0
  5. cocos2d::FileUtils *v5; // r0
  6. int v6; // r0
  7. cocos2d::UserDefault *v7; // r0
  8. const char *v8; // r0
  9. cocos2d::LuaEngine *v9; // r0
  10. cocos2d::ScriptEngineManager *v10; // r0
  11. cocos2d::ScriptEngineManager *v11; // r4
  12. int v12; // r0
  13. cocos2d::LuaEngine *v13; // r0
  14. BuglyLuaAgent *v14; // r0
  15. cocos2d::LuaEngine *v15; // r1
  16. int v16; // r6
  17. cocos2d::LuaEngine *v17; // r0
  18. int v18; // r5
  19. int v19; // r6
  20. int v20; // r5
  21. int v21; // r1
  22. int v22; // ST0C_4
  23. int v23; // r1
  24. int v24; // r5
  25. int v25; // r1
  26. int v26; // r1
  27. unsigned int v27; // r4
  28. int v29; // [sp+Ch] [bp-84h]
  29. char v30; // [sp+1Ch] [bp-74h]
  30. char v31; // [sp+20h] [bp-70h]
  31. char v32; // [sp+24h] [bp-6Ch]
  32. char v33; // [sp+28h] [bp-68h]
  33. int v34; // [sp+2Ch] [bp-64h]
  34. int v35; // [sp+30h] [bp-60h]
  35. int v36; // [sp+34h] [bp-5Ch]
  36. int v37; // [sp+38h] [bp-58h]
  37. int v38; // [sp+3Ch] [bp-54h]
  38. int v39; // [sp+40h] [bp-50h]
  39. int v40; // [sp+44h] [bp-4Ch]
  40. int v41; // [sp+48h] [bp-48h]
  41. int v42; // [sp+4Ch] [bp-44h]
  42. int v43; // [sp+50h] [bp-40h]
  43. int v44; // [sp+54h] [bp-3Ch]
  44. int v45; // [sp+58h] [bp-38h]
  45. int v46; // [sp+5Ch] [bp-34h]
  46. int v47; // [sp+60h] [bp-30h]
  47. int v48; // [sp+64h] [bp-2Ch]
  48. int v49; // [sp+68h] [bp-28h]
  49. int v50; // [sp+6Ch] [bp-24h]
  50. int v51; // [sp+70h] [bp-20h]
  51. int v52; // [sp+74h] [bp-1Ch]
  52.  
  53. v3 = (cocos2d::Director *)CrashReport::initCrashReport((CrashReport *)"f8860ba075", 0, a3);
  54. v4 = cocos2d::Director::getInstance(v3);
  55. v5 = (cocos2d::FileUtils *)(*(int (**)(void))(*(_DWORD *)v4 + 12))();
  56. v6 = cocos2d::FileUtils::getInstance(v5);
  57. v7 = (cocos2d::UserDefault *)(*(int (__fastcall **)(char *, int))(*(_DWORD *)v6 + 64))(&v32, v6);
  58. v8 = (const char *)cocos2d::UserDefault::getInstance(v7);
  59. v9 = (cocos2d::LuaEngine *)cocos2d::UserDefault::getStringForKey((cocos2d::UserDefault *)&v33, v8);
  60. v10 = (cocos2d::ScriptEngineManager *)cocos2d::LuaEngine::getInstance(v9);
  61. v11 = v10;
  62. v12 = cocos2d::ScriptEngineManager::getInstance(v10);
  63. v13 = (cocos2d::LuaEngine *)cocos2d::ScriptEngineManager::setScriptEngine(v12, v11);
  64. v14 = (BuglyLuaAgent *)cocos2d::LuaEngine::getInstance(v13);
  65. BuglyLuaAgent::registerLuaExceptionHandler(v14, v15);
  66. v16 = *(_DWORD *)(*((_DWORD *)v11 + 1) + 20);
  67. lua_module_register(v16);
  68. v17 = (cocos2d::LuaEngine *)package_quick_register();
  69. v18 = *(_DWORD *)(*(_DWORD *)(cocos2d::LuaEngine::getInstance(v17) + 4) + 20);
  70. luaopen_protobuf_c(v18);
  71. j_lua_pushcclosure(v18, &unk_403C83, 0);
  72. j_lua_setfield(v18, -10002, "bsReadFile");
  73. j_lua_pushcclosure(v18, sub_403C3E, 0);
  74. j_lua_setfield(v18, -10002, "luaRSAEncode");
  75. j_lua_pushcclosure(v18, sub_403C1C, 0);
  76. j_lua_setfield(v18, -10002, "luaRSADecode");
  77. j_lua_pushcclosure(v18, sub_404038, 0);
  78. j_lua_setfield(v18, -10002, "WX_sendMsgToFriend");
  79. j_lua_pushcclosure(v18, sub_404958, 0);
  80. j_lua_setfield(v18, -10002, "WX_sendScreenShot");
  81. j_lua_pushcclosure(v18, sub_403F54, 0);
  82. j_lua_setfield(v18, -10002, "WX_login");
  83. j_lua_pushcclosure(v18, sub_403FE0, 0);
  84. j_lua_setfield(v18, -10002, "LC_download_newversion");
  85. j_lua_pushcclosure(v18, sub_403EA4, 0);
  86. j_lua_setfield(v18, -10002, "WDCaptureScreenEx");
  87. j_lua_pushcclosure(v18, sub_404838, 0);
  88. j_lua_setfield(v18, -10002, "gameSeedRandom");
  89. j_lua_pushcclosure(v18, sub_404910, 0);
  90. j_lua_setfield(v18, -10002, "gameRandom");
  91. j_lua_pushcclosure(v18, sub_403BC8, 0);
  92. j_lua_setfield(v18, -10002, "isSimulator");
  93. register_gamehelper(v16);
  94. v19 = *((_DWORD *)v11 + 1);
  95. sub_6C5660(&v34, &unk_B09F38, &v30);
  96. v44 = 896;
  97. v45 = 914;
  98. v46 = 915;
  99. v47 = 827;
  100. v48 = 756;
  101. v49 = 630;
  102. v50 = 499;
  103. v51 = 369;
  104. v52 = 252;
  105. v20 = 0;
  106. v21 = 666;
  107. do
  108. {
  109. v22 = *(&v44 + v20);
  110. sub_6C5700(&v34, (signed int)((((unsigned int)(*(&v44 + v20) - v21) >> 31) + *(&v44 + v20) - v21) << 23) >> 24);
  111. v23 = v22 - v20++;
  112. v21 = v23 - 222;
  113. }
  114. while ( v20 != 9 );
  115. sub_6C5660(&v35, &unk_B09F38, &v31);
  116. v36 = 1118;
  117. v37 = 1247;
  118. v38 = 1359;
  119. v39 = 1410;
  120. v40 = 1498;
  121. v41 = 1613;
  122. v42 = 1633;
  123. v43 = 1628;
  124. v24 = 0;
  125. v25 = 888;
  126. do
  127. {
  128. v29 = *(&v36 + v24);
  129. sub_6C5700(&v35, (signed int)((((unsigned int)(*(&v36 + v24) - v25) >> 31) + *(&v36 + v24) - v25) << 23) >> 24);
  130. v26 = v29 - v24++;
  131. v25 = v26 - 111;
  132. }
  133. while ( v24 != 8 );
  134. (*(void (__fastcall **)(int, int, _DWORD, int, _DWORD))(*(_DWORD *)v19 + 116))(
  135. v19,
  136. v34,
  137. *(_DWORD *)(v34 - 12),
  138. v35,
  139. *(_DWORD *)(v35 - 12));
  140. v27 = (*(int (__fastcall **)(cocos2d::ScriptEngineManager *, const char *))(*(_DWORD *)v11 + 28))(v11, "src/main.lua");
  141. sub_6C5674(&v35);
  142. sub_6C5674(&v34);
  143. sub_6C5674(&v33);
  144. sub_6C5674(&v32);
  145. return v27 <= 0;
  146. }
RAW Paste Data