{"type": "func", "start": 4300340784, "end": 4300340942, "name": "GameLevelManager::onDownloadLevelCompleted", "pseudocode": "// \n// GameLevelManager::onDownloadLevelCompleted from 0x10051fe30 to 0x10051fece (158 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x10051c7f8\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\nvoid __fastcall GameLevelManager::onDownloadLevelCompleted(__int64 a1, __int64 a2, __int128 *a3, __m128 a4)\n{\n  __m128 v5; // [rsp+0h] [rbp-50h] BYREF\n  void *v6; // [rsp+10h] [rbp-40h]\n  __int128 v7; // [rsp+20h] [rbp-30h] BYREF\n  void *__p; // [rsp+30h] [rbp-20h]\n\n  if ( (*(_BYTE *)a2 & 1) != 0 )\n  {\n    sub_100006B70(&v5, *(const void **)(a2 + 16), *(_QWORD *)(a2 + 8), *(double *)a4.i64);\n    if ( (*(_BYTE *)a3 & 1) != 0 )\n      goto LABEL_3;\n  }\n  else\n  {\n    v6 = *(void **)(a2 + 16);\n    a4 = *(__m128 *)a2;\n    v5 = *(__m128 *)a2;\n    if ( (*(_BYTE *)a3 & 1) != 0 )\n    {\nLABEL_3:\n      sub_100006B70(&v7, *((const void **)a3 + 2), *((_QWORD *)a3 + 1), *(double *)a4.i64);\n      goto LABEL_6;\n    }\n  }\n  __p = *((void **)a3 + 2);\n  v7 = *a3;\nLABEL_6:\n  GameLevelManager::processOnDownloadLevelCompleted(a1, &v5, &v7, 0);\n  if ( (v7 & 1) != 0 )\n    operator delete(__p);\n  if ( (v5.i8[0] & 1) != 0 )\n    operator delete(v6);\n}", "assembly": "; \n; GameLevelManager::onDownloadLevelCompleted from 0x10051fe30 to 0x10051fece (158 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x10051c7f8\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, 0x10051fe30\nmov     rbp, rsp                                                       ; +0x1, 0x10051fe31\npush    r14                                                            ; +0x4, 0x10051fe34\npush    rbx                                                            ; +0x6, 0x10051fe36\nsub     rsp, 40h                                                       ; +0x7, 0x10051fe37\nmov     r14, rdx                                                       ; +0xb, 0x10051fe3b\nmov     rbx, rdi                                                       ; +0xe, 0x10051fe3e\ntest    byte ptr [rsi], 1                                              ; +0x11, 0x10051fe41\njnz     short loc_10051FE6E                                            ; +0x14, 0x10051fe44\nmov     rax, [rsi+10h]                                                 ; +0x16, 0x10051fe46\nmov     [rbp+var_40], rax                                              ; +0x1a, 0x10051fe4a\nmovups  xmm0, xmmword ptr [rsi]                                        ; +0x1e, 0x10051fe4e\nmovaps  [rbp+var_50], xmm0                                             ; +0x21, 0x10051fe51\ntest    byte ptr [r14], 1                                              ; +0x25, 0x10051fe55\njz      short loc_10051FE85                                            ; +0x29, 0x10051fe59\nmov     rdx, [r14+8]                                                   ; +0x2b, 0x10051fe5b\nmov     rsi, [r14+10h]                                                 ; +0x2f, 0x10051fe5f\nlea     rdi, [rbp+var_30]                                              ; +0x33, 0x10051fe63\ncall    sub_100006B70                                                  ; +0x37, 0x10051fe67\njmp     short loc_10051FE95                                            ; +0x3c, 0x10051fe6c\nmov     rdx, [rsi+8]                                                   ; +0x3e, 0x10051fe6e\nmov     rsi, [rsi+10h]                                                 ; +0x42, 0x10051fe72\nlea     rdi, [rbp+var_50]                                              ; +0x46, 0x10051fe76\ncall    sub_100006B70                                                  ; +0x4a, 0x10051fe7a\ntest    byte ptr [r14], 1                                              ; +0x4f, 0x10051fe7f\njnz     short loc_10051FE5B                                            ; +0x53, 0x10051fe83\nmov     rax, [r14+10h]                                                 ; +0x55, 0x10051fe85\nmov     [rbp+__p], rax                                                 ; +0x59, 0x10051fe89\nmovups  xmm0, xmmword ptr [r14]                                        ; +0x5d, 0x10051fe8d\nmovaps  [rbp+var_30], xmm0                                             ; +0x61, 0x10051fe91\nlea     rsi, [rbp+var_50]                                              ; +0x65, 0x10051fe95\nlea     rdx, [rbp+var_30]                                              ; +0x69, 0x10051fe99\nmov     rdi, rbx                                                       ; +0x6d, 0x10051fe9d\nxor     ecx, ecx                                                       ; +0x70, 0x10051fea0\ncall    GameLevelManager__processOnDownloadLevelCompleted              ; +0x72, 0x10051fea2\ntest    byte ptr [rbp+var_30], 1                                       ; +0x77, 0x10051fea7\njz      short loc_10051FEB6                                            ; +0x7b, 0x10051feab\nmov     rdi, [rbp+__p]; __p                                            ; +0x7d, 0x10051fead\ncall    __ZdlPv; operator delete(void *)                               ; +0x81, 0x10051feb1\ntest    byte ptr [rbp+var_50], 1                                       ; +0x86, 0x10051feb6\njz      short loc_10051FEC5                                            ; +0x8a, 0x10051feba\nmov     rdi, [rbp+var_40]; __p                                         ; +0x8c, 0x10051febc\ncall    __ZdlPv; operator delete(void *)                               ; +0x90, 0x10051fec0\nadd     rsp, 40h                                                       ; +0x95, 0x10051fec5\npop     rbx                                                            ; +0x99, 0x10051fec9\npop     r14                                                            ; +0x9a, 0x10051feca\npop     rbp                                                            ; +0x9c, 0x10051fecc\nretn                                                                   ; +0x9d, 0x10051fecd", "xrefs": ["GameLevelManager::handleIt @ 0x10051c7f8"], "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"}