{"type": "func", "start": 4301635776, "end": 4301636100, "name": "AppDelegate::applicationDidFinishLaunching", "pseudocode": "// \n// AppDelegate::applicationDidFinishLaunching from 0x10065c0c0 to 0x10065c204 (324 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100986b28\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool __fastcall AppDelegate::applicationDidFinishLaunching(AppDelegate *a1)\n{\n  cocos2d::CCDirector *v1; // r14\n  cocos2d::CCFileUtils *v2; // r15\n  ObjectDecoder *v3; // r15\n  GJObjectDecoder *v4; // rax\n  ObjectDecoderDelegate *v5; // rcx\n  GameManager *v6; // rax\n  GameManager *v7; // rax\n  cocos2d::CCScene *v8; // rax\n  timeval v10; // [rsp+0h] [rbp-40h] BYREF\n  std::string __str; // [rsp+10h] [rbp-30h] BYREF\n\n  a1->m_gamePaused = 0;\n  gettimeofday(&v10, nullptr);\n  srand(LODWORD(v10.tv_sec) * v10.tv_usec);\n  v1 = cocos2d::CCDirector::sharedDirector();\n  v2 = cocos2d::CCFileUtils::sharedFileUtils();\n  __str.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x28u);\n  __str.__r_.__value_.__r.__words[0] = 41;\n  __str.__r_.__value_.__l.__size_ = 36;\n  strcpy(__str.__r_.__value_.__l.__data_, \"/data/data/com.robtopx.geometryjump/\");\n  std::string::operator=((std::string *)&v2[14], &__str);\n  if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(__str.__r_.__value_.__l.__data_);\n  AppDelegate::setupGLView(a1);\n  cocos2d::CCDirector::setProjection(v1, kCCDirectorProjection2D);\n  CCContentManager::sharedManager();\n  v3 = ObjectDecoder::sharedDecoder();\n  v4 = GJObjectDecoder::sharedDecoder();\n  v5 = &v4->ObjectDecoderDelegate;\n  if ( !v4 )\n    v5 = nullptr;\n  v3->m_delegate = v5;\n  GameManager::sharedState();\n  LocalLevelManager::sharedState();\n  v6 = GameManager::sharedState();\n  GameManager::loadVideoSettings(v6);\n  v7 = GameManager::sharedState();\n  GameManager::startUpdate(v7);\n  a1->m_unk0ec = 0;\n  cocos2d::CCDirector::setDepthTest(v1, 0);\n  ((void (__fastcall *)(cocos2d::CCDirector *, double))v1->setAnimationInterval)(v1, 0.01666666753590107);\n  v1->m_bDisplayStats = 1;\n  a1->m_ios = 0;\n  AdToolbox::setupAds();\n  v8 = LoadingLayer::scene(0);\n  cocos2d::CCDirector::runWithScene(v1, v8);\n  return 1;\n}", "assembly": "; \n; AppDelegate::applicationDidFinishLaunching from 0x10065c0c0 to 0x10065c204 (324 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100986b28\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10065c0c0\nmov     rbp, rsp                                                       ; +0x1, 0x10065c0c1\npush    r15                                                            ; +0x4, 0x10065c0c4\npush    r14                                                            ; +0x6, 0x10065c0c6\npush    rbx                                                            ; +0x8, 0x10065c0c8\nsub     rsp, 28h                                                       ; +0x9, 0x10065c0c9\nmov     rbx, rdi                                                       ; +0xd, 0x10065c0cd\nmov     byte ptr [rdi+41h], 0                                          ; +0x10, 0x10065c0d0\nlea     rdi, [rbp+var_40]; timeval *                                   ; +0x14, 0x10065c0d4\nxor     esi, esi; void *                                               ; +0x18, 0x10065c0d8\ncall    _gettimeofday                                                  ; +0x1a, 0x10065c0da\nmov     edi, [rbp+var_40.tv_usec]                                      ; +0x1f, 0x10065c0df\nimul    edi, dword ptr [rbp+var_40.tv_sec]; unsigned int               ; +0x22, 0x10065c0e2\ncall    _srand                                                         ; +0x26, 0x10065c0e6\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x2b, 0x10065c0eb\nmov     r14, rax                                                       ; +0x30, 0x10065c0f0\ncall    cocos2d__CCFileUtils__sharedFileUtils                          ; +0x33, 0x10065c0f3\nmov     r15, rax                                                       ; +0x38, 0x10065c0f8\nmov     edi, 28h ; '('; __sz                                           ; +0x3b, 0x10065c0fb\ncall    __Znwm; operator new(ulong)                                    ; +0x40, 0x10065c100\nmov     qword ptr [rbp+__str.__r_.__value_+10h], rax                   ; +0x45, 0x10065c105\nmov     qword ptr [rbp+__str.__r_.__value_], 29h ; ')'                 ; +0x49, 0x10065c109\nmov     qword ptr [rbp+__str.__r_.__value_+8], 24h ; '$'               ; +0x51, 0x10065c111\nmovups  xmm0, xmmword ptr cs:aDataDataComRob+10h; \"obtopx.geometryjump/\" ; +0x59, 0x10065c119\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x60, 0x10065c120\nmovups  xmm0, xmmword ptr cs:aDataDataComRob; \"/data/data/com.robtopx.geometryjump/\" ; +0x64, 0x10065c124\nmovups  xmmword ptr [rax], xmm0                                        ; +0x6b, 0x10065c12b\nmov     dword ptr [rax+20h], 2F706D75h                                 ; +0x6e, 0x10065c12e\nmov     byte ptr [rax+24h], 0                                          ; +0x75, 0x10065c135\nadd     r15, 70h ; 'p'                                                 ; +0x79, 0x10065c139\nlea     rsi, [rbp+__str]; __str                                        ; +0x7d, 0x10065c13d\nmov     rdi, r15; this                                                 ; +0x81, 0x10065c141\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x84, 0x10065c144\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x89, 0x10065c149\njz      short loc_10065C158                                            ; +0x8d, 0x10065c14d\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x8f, 0x10065c14f\ncall    __ZdlPv; operator delete(void *)                               ; +0x93, 0x10065c153\nmov     rdi, rbx                                                       ; +0x98, 0x10065c158\ncall    AppDelegate__setupGLView                                       ; +0x9b, 0x10065c15b\nmov     rdi, r14                                                       ; +0xa0, 0x10065c160\nxor     esi, esi                                                       ; +0xa3, 0x10065c163\ncall    cocos2d__CCDirector__setProjection                             ; +0xa5, 0x10065c165\ncall    CCContentManager__sharedManager                                ; +0xaa, 0x10065c16a\ncall    ObjectDecoder__sharedDecoder                                   ; +0xaf, 0x10065c16f\nmov     r15, rax                                                       ; +0xb4, 0x10065c174\ncall    GJObjectDecoder__sharedDecoder                                 ; +0xb7, 0x10065c177\nlea     rcx, [rax+140h]                                                ; +0xbc, 0x10065c17c\ntest    rax, rax                                                       ; +0xc3, 0x10065c183\ncmovz   rcx, rax                                                       ; +0xc6, 0x10065c186\nmov     [r15+140h], rcx                                                ; +0xca, 0x10065c18a\ncall    GameManager__sharedState                                       ; +0xd1, 0x10065c191\ncall    LocalLevelManager__sharedState                                 ; +0xd6, 0x10065c196\ncall    GameManager__sharedState                                       ; +0xdb, 0x10065c19b\nmov     rdi, rax                                                       ; +0xe0, 0x10065c1a0\ncall    GameManager__loadVideoSettings                                 ; +0xe3, 0x10065c1a3\ncall    GameManager__sharedState                                       ; +0xe8, 0x10065c1a8\nmov     rdi, rax                                                       ; +0xed, 0x10065c1ad\ncall    GameManager__startUpdate                                       ; +0xf0, 0x10065c1b0\nmov     byte ptr [rbx+54h], 0                                          ; +0xf5, 0x10065c1b5\nmov     rdi, r14                                                       ; +0xf9, 0x10065c1b9\nxor     esi, esi                                                       ; +0xfc, 0x10065c1bc\ncall    cocos2d__CCDirector__setDepthTest                              ; +0xfe, 0x10065c1be\nmov     rax, [r14]                                                     ; +0x103, 0x10065c1c3\nmovsd   xmm0, cs:qword_10081A0B0                                       ; +0x106, 0x10065c1c6\nmov     rdi, r14                                                       ; +0x10e, 0x10065c1ce\ncall    qword ptr [rax+60h]                                            ; +0x111, 0x10065c1d1\nmov     byte ptr [r14+0D1h], 1                                         ; +0x114, 0x10065c1d4\nmov     byte ptr [rbx+52h], 0                                          ; +0x11c, 0x10065c1dc\ncall    AdToolbox__setupAds                                            ; +0x120, 0x10065c1e0\nxor     edi, edi                                                       ; +0x125, 0x10065c1e5\ncall    LoadingLayer__scene                                            ; +0x127, 0x10065c1e7\nmov     rdi, r14                                                       ; +0x12c, 0x10065c1ec\nmov     rsi, rax                                                       ; +0x12f, 0x10065c1ef\ncall    cocos2d__CCDirector__runWithScene                              ; +0x132, 0x10065c1f2\nmov     al, 1                                                          ; +0x137, 0x10065c1f7\nadd     rsp, 28h                                                       ; +0x139, 0x10065c1f9\npop     rbx                                                            ; +0x13d, 0x10065c1fd\npop     r14                                                            ; +0x13e, 0x10065c1fe\npop     r15                                                            ; +0x140, 0x10065c200\npop     rbp                                                            ; +0x142, 0x10065c202\nretn                                                                   ; +0x143, 0x10065c203", "xrefs": ["<???> @ 0x100986b28"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}