{"type": "func", "start": 5371149328, "end": 5371149627, "name": "GameLevelManager::onGetLevelRateInfoCompleted", "pseudocode": "// \n// GameLevelManager::onGetLevelRateInfoCompleted from 0x140253c10 to 0x140253d3b (299 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14021aa7d\n// > <???> @ 0x14091c544\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:43 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall GameLevelManager::onGetLevelRateInfoCompleted(__int64 a1, const void **a2, _QWORD *a3)\n{\n  _BYTE *v6; // rdx\n  __int64 v7; // rcx\n  _BYTE *v8; // rdx\n  unsigned int SplitIntFromKey; // r14d\n  const void *v10; // rcx\n  unsigned __int64 v11; // rbp\n  size_t v12; // r8\n  __int64 v13; // rax\n  __int64 v14; // rcx\n  __int128 Buf2; // [rsp+20h] [rbp-68h] BYREF\n  __int64 v16; // [rsp+30h] [rbp-58h]\n  __int64 v17; // [rsp+38h] [rbp-50h]\n  const void **v18; // [rsp+48h] [rbp-40h]\n  _QWORD *v19; // [rsp+50h] [rbp-38h]\n\n  v18 = a2;\n  v19 = a3;\n  v6 = a3;\n  if ( a3[3] > 0xFu )\n    v6 = (_BYTE *)*a3;\n  GameLevelManager::removeDLFromActive(a1, v6);\n  v8 = a3;\n  if ( a3[3] > 0xFu )\n    v8 = (_BYTE *)*a3;\n  SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v7, v8, 1u);\n  Buf2 = 0;\n  v16 = 2;\n  v17 = 15;\n  strcpy((char *)&Buf2, \"-1\");\n  v10 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v10 = *a2;\n  v11 = (unsigned __int64)a2[2];\n  v12 = v11;\n  if ( v11 > 2 )\n    v12 = 2;\n  if ( !memcmp(v10, &Buf2, v12) && v11 == 2 )\n  {\n    v14 = *(_QWORD *)(a1 + 1592);\n    if ( v14 )\n      (*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v14 + 8LL))(v14, SplitIntFromKey, 0);\n  }\n  else if ( *(_QWORD *)(a1 + 1592) )\n  {\n    v13 = sub_14003F4F0((__int64)&Buf2, (__int64)a2);\n    (***(void (__fastcall ****)(_QWORD, _QWORD, __int64))(a1 + 1592))(*(_QWORD *)(a1 + 1592), SplitIntFromKey, v13);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onGetLevelRateInfoCompleted from 0x140253c10 to 0x140253d3b (299 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14021aa7d\n; > <???> @ 0x14091c544\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:43 +0000\n; \npush    rbx                                                            ; +0x0, 0x140253c10\npush    rbp                                                            ; +0x2, 0x140253c12\npush    rsi                                                            ; +0x3, 0x140253c13\npush    rdi                                                            ; +0x4, 0x140253c14\npush    r14                                                            ; +0x5, 0x140253c15\nsub     rsp, 60h                                                       ; +0x7, 0x140253c17\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x140253c1b\nxor     rax, rsp                                                       ; +0x12, 0x140253c22\nmov     [rsp+88h+var_30], rax                                          ; +0x15, 0x140253c25\nmov     rbx, r8                                                        ; +0x1a, 0x140253c2a\nmov     rsi, rdx                                                       ; +0x1d, 0x140253c2d\nmov     rdi, rcx                                                       ; +0x20, 0x140253c30\nmov     [rsp+88h+var_40], rdx                                          ; +0x23, 0x140253c33\nmov     [rsp+88h+var_38], rbx                                          ; +0x28, 0x140253c38\nmov     rdx, r8                                                        ; +0x2d, 0x140253c3d\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x30, 0x140253c40\njbe     short loc_140253C4A                                            ; +0x35, 0x140253c45\nmov     rdx, [r8]                                                      ; +0x37, 0x140253c47\ncall    GameLevelManager__removeDLFromActive                           ; +0x3a, 0x140253c4a\nmov     rdx, rbx                                                       ; +0x3f, 0x140253c4f\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x42, 0x140253c52\njbe     short loc_140253C5C                                            ; +0x47, 0x140253c57\nmov     rdx, [rbx]                                                     ; +0x49, 0x140253c59\nmov     r8d, 1                                                         ; +0x4c, 0x140253c5c\ncall    GameLevelManager__getSplitIntFromKey                           ; +0x52, 0x140253c62\nmov     r14d, eax                                                      ; +0x57, 0x140253c67\nxorps   xmm0, xmm0                                                     ; +0x5a, 0x140253c6a\nmovups  [rsp+88h+Buf2], xmm0                                           ; +0x5d, 0x140253c6d\nmov     edx, 2                                                         ; +0x62, 0x140253c72\nmov     [rsp+88h+var_58], rdx                                          ; +0x67, 0x140253c77\nmov     [rsp+88h+var_50], 0Fh                                          ; +0x6c, 0x140253c7c\nmov     eax, 312Dh                                                     ; +0x75, 0x140253c85\nmov     word ptr [rsp+88h+Buf2], ax                                    ; +0x7a, 0x140253c8a\nmov     byte ptr [rsp+88h+Buf2+2], 0                                   ; +0x7f, 0x140253c8f\nmov     rcx, rsi                                                       ; +0x84, 0x140253c94\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0x87, 0x140253c97\njbe     short loc_140253CA1                                            ; +0x8c, 0x140253c9c\nmov     rcx, [rsi]; Buf1                                               ; +0x8e, 0x140253c9e\nmov     rbp, [rsi+10h]                                                 ; +0x91, 0x140253ca1\nmov     r8, rbp                                                        ; +0x95, 0x140253ca5\ncmp     rbp, rdx                                                       ; +0x98, 0x140253ca8\ncmova   r8, rdx; Size                                                  ; +0x9b, 0x140253cab\nlea     rdx, [rsp+88h+Buf2]; Buf2                                      ; +0x9f, 0x140253caf\ncall    memcmp                                                         ; +0xa4, 0x140253cb4\ntest    eax, eax                                                       ; +0xa9, 0x140253cb9\njnz     short loc_140253CC5                                            ; +0xab, 0x140253cbb\ncmp     rbp, 2                                                         ; +0xad, 0x140253cbd\njb      short loc_140253CC5                                            ; +0xb1, 0x140253cc1\njbe     short loc_140253CF9                                            ; +0xb3, 0x140253cc3\nmov     rax, [rdi+638h]                                                ; +0xb5, 0x140253cc5\ntest    rax, rax                                                       ; +0xbc, 0x140253ccc\njz      short loc_140253D12                                            ; +0xbf, 0x140253ccf\nmov     rdx, rsi                                                       ; +0xc1, 0x140253cd1\nlea     rcx, [rsp+88h+Buf2]                                            ; +0xc4, 0x140253cd4\ncall    sub_14003F4F0                                                  ; +0xc9, 0x140253cd9\nmov     r10, [rdi+638h]                                                ; +0xce, 0x140253cde\nmov     rcx, [r10]                                                     ; +0xd5, 0x140253ce5\nmov     r9, [rcx]                                                      ; +0xd8, 0x140253ce8\nmov     r8, rax                                                        ; +0xdb, 0x140253ceb\nmov     edx, r14d                                                      ; +0xde, 0x140253cee\nmov     rcx, r10                                                       ; +0xe1, 0x140253cf1\ncall    r9                                                             ; +0xe4, 0x140253cf4\njmp     short loc_140253D12                                            ; +0xe7, 0x140253cf7\nmov     rcx, [rdi+638h]                                                ; +0xe9, 0x140253cf9\ntest    rcx, rcx                                                       ; +0xf0, 0x140253d00\njz      short loc_140253D12                                            ; +0xf3, 0x140253d03\nmov     rax, [rcx]                                                     ; +0xf5, 0x140253d05\nxor     r8d, r8d                                                       ; +0xf8, 0x140253d08\nmov     edx, r14d                                                      ; +0xfb, 0x140253d0b\ncall    qword ptr [rax+8]                                              ; +0xfe, 0x140253d0e\nnop                                                                    ; +0x101, 0x140253d11\nmov     rcx, rsi                                                       ; +0x102, 0x140253d12\ncall    sub_14003D310                                                  ; +0x105, 0x140253d15\nnop                                                                    ; +0x10a, 0x140253d1a\nmov     rcx, rbx                                                       ; +0x10b, 0x140253d1b\ncall    sub_14003D310                                                  ; +0x10e, 0x140253d1e\nmov     rcx, [rsp+88h+var_30]                                          ; +0x113, 0x140253d23\nxor     rcx, rsp; StackCookie                                          ; +0x118, 0x140253d28\ncall    __security_check_cookie                                        ; +0x11b, 0x140253d2b\nadd     rsp, 60h                                                       ; +0x120, 0x140253d30\npop     r14                                                            ; +0x124, 0x140253d34\npop     rdi                                                            ; +0x126, 0x140253d36\npop     rsi                                                            ; +0x127, 0x140253d37\npop     rbp                                                            ; +0x128, 0x140253d38\npop     rbx                                                            ; +0x129, 0x140253d39\nretn                                                                   ; +0x12a, 0x140253d3a", "xrefs": ["GameLevelManager::handleIt @ 0x14021aa7d", "<???> @ 0x14091c544"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}