{"type": "func", "start": 5370149776, "end": 5370150069, "name": "GameLevelManager::onGetLevelRateInfoCompleted", "pseudocode": "// \n// GameLevelManager::onGetLevelRateInfoCompleted from 0x14015fb90 to 0x14015fcb5 (293 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x140143f15\n// > <???> @ 0x1406cab24\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\n// Hidden C++ exception states: #wind=2\nvoid __fastcall GameLevelManager::onGetLevelRateInfoCompleted(GameLevelManager *a1, const void **a2, const char *a3)\n{\n  const char *v6; // rdx\n  GameLevelManager *v7; // rcx\n  const char *v8; // rdx\n  unsigned int SplitIntFromKey; // r14d\n  const void *v10; // rcx\n  unsigned __int64 v11; // rbp\n  size_t v12; // r8\n  LevelRateInfoDelegate **p_m_levelRateInfoDelegate; // rdi\n  __int64 v14; // rax\n  LevelRateInfoDelegate *m_levelRateInfoDelegate; // rcx\n  __int128 Buf2; // [rsp+38h] [rbp-50h] BYREF\n  __int64 v17; // [rsp+48h] [rbp-40h]\n  __int64 v18; // [rsp+50h] [rbp-38h]\n\n  v6 = a3;\n  if ( *((_QWORD *)a3 + 3) > 0xFu )\n    v6 = *(const char **)a3;\n  GameLevelManager::removeDLFromActive(a1, v6);\n  v8 = a3;\n  if ( *((_QWORD *)a3 + 3) > 0xFu )\n    v8 = *(const char **)a3;\n  SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v7, v8, 1);\n  Buf2 = 0;\n  v17 = 2;\n  v18 = 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    m_levelRateInfoDelegate = a1->m_levelRateInfoDelegate;\n    if ( m_levelRateInfoDelegate )\n      m_levelRateInfoDelegate->rateInfoFailed(m_levelRateInfoDelegate, SplitIntFromKey, 0);\n  }\n  else\n  {\n    p_m_levelRateInfoDelegate = &a1->m_levelRateInfoDelegate;\n    if ( *p_m_levelRateInfoDelegate )\n    {\n      v14 = sub_14003BDB0((__int64)&Buf2, (__int64)a2);\n      (*p_m_levelRateInfoDelegate)->rateInfoFinished(*p_m_levelRateInfoDelegate, SplitIntFromKey, (std::string *)v14);\n    }\n  }\n  sub_14003A830((__int64)a2);\n  sub_14003A830((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onGetLevelRateInfoCompleted from 0x14015fb90 to 0x14015fcb5 (293 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x140143f15\n; > <???> @ 0x1406cab24\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    rbx                                                            ; +0x0, 0x14015fb90\npush    rbp                                                            ; +0x2, 0x14015fb92\npush    rsi                                                            ; +0x3, 0x14015fb93\npush    rdi                                                            ; +0x4, 0x14015fb94\npush    r14                                                            ; +0x5, 0x14015fb95\nsub     rsp, 60h                                                       ; +0x7, 0x14015fb97\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x14015fb9b\nxor     rax, rsp                                                       ; +0x12, 0x14015fba2\nmov     [rsp+88h+var_30], rax                                          ; +0x15, 0x14015fba5\nmov     rbx, r8                                                        ; +0x1a, 0x14015fbaa\nmov     rsi, rdx                                                       ; +0x1d, 0x14015fbad\nmov     rdi, rcx                                                       ; +0x20, 0x14015fbb0\nmov     [rsp+88h+var_60], rdx                                          ; +0x23, 0x14015fbb3\nmov     [rsp+88h+var_58], rbx                                          ; +0x28, 0x14015fbb8\nmov     rdx, r8                                                        ; +0x2d, 0x14015fbbd\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x30, 0x14015fbc0\njbe     short loc_14015FBCA                                            ; +0x35, 0x14015fbc5\nmov     rdx, [r8]                                                      ; +0x37, 0x14015fbc7\ncall    GameLevelManager__removeDLFromActive                           ; +0x3a, 0x14015fbca\nmov     rdx, rbx                                                       ; +0x3f, 0x14015fbcf\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x42, 0x14015fbd2\njbe     short loc_14015FBDC                                            ; +0x47, 0x14015fbd7\nmov     rdx, [rbx]                                                     ; +0x49, 0x14015fbd9\nmov     r8d, 1                                                         ; +0x4c, 0x14015fbdc\ncall    GameLevelManager__getSplitIntFromKey                           ; +0x52, 0x14015fbe2\nmov     r14d, eax                                                      ; +0x57, 0x14015fbe7\nxorps   xmm0, xmm0                                                     ; +0x5a, 0x14015fbea\nmovups  [rsp+88h+Buf2], xmm0                                           ; +0x5d, 0x14015fbed\nmov     edx, 2                                                         ; +0x62, 0x14015fbf2\nmov     [rsp+88h+var_40], rdx                                          ; +0x67, 0x14015fbf7\nmov     [rsp+88h+var_38], 0Fh                                          ; +0x6c, 0x14015fbfc\nmov     eax, 312Dh                                                     ; +0x75, 0x14015fc05\nmov     word ptr [rsp+88h+Buf2], ax                                    ; +0x7a, 0x14015fc0a\nmov     byte ptr [rsp+88h+Buf2+2], 0                                   ; +0x7f, 0x14015fc0f\nmov     rcx, rsi                                                       ; +0x84, 0x14015fc14\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0x87, 0x14015fc17\njbe     short loc_14015FC21                                            ; +0x8c, 0x14015fc1c\nmov     rcx, [rsi]; Buf1                                               ; +0x8e, 0x14015fc1e\nmov     rbp, [rsi+10h]                                                 ; +0x91, 0x14015fc21\nmov     r8, rbp                                                        ; +0x95, 0x14015fc25\ncmp     rbp, rdx                                                       ; +0x98, 0x14015fc28\ncmova   r8, rdx; Size                                                  ; +0x9b, 0x14015fc2b\nlea     rdx, [rsp+88h+Buf2]; Buf2                                      ; +0x9f, 0x14015fc2f\ncall    memcmp                                                         ; +0xa4, 0x14015fc34\ntest    eax, eax                                                       ; +0xa9, 0x14015fc39\njnz     short loc_14015FC45                                            ; +0xab, 0x14015fc3b\ncmp     rbp, 2                                                         ; +0xad, 0x14015fc3d\njb      short loc_14015FC45                                            ; +0xb1, 0x14015fc41\njbe     short loc_14015FC73                                            ; +0xb3, 0x14015fc43\nlea     rax, [rdi+380h]                                                ; +0xb5, 0x14015fc45\nmov     rdi, rax                                                       ; +0xbc, 0x14015fc4c\ncmp     qword ptr [rax], 0                                             ; +0xbf, 0x14015fc4f\njz      short loc_14015FC8C                                            ; +0xc3, 0x14015fc53\nmov     rdx, rsi                                                       ; +0xc5, 0x14015fc55\nlea     rcx, [rsp+88h+Buf2]                                            ; +0xc8, 0x14015fc58\ncall    sub_14003BDB0                                                  ; +0xcd, 0x14015fc5d\nmov     rcx, [rdi]                                                     ; +0xd2, 0x14015fc62\nmov     r9, [rcx]                                                      ; +0xd5, 0x14015fc65\nmov     r8, rax                                                        ; +0xd8, 0x14015fc68\nmov     edx, r14d                                                      ; +0xdb, 0x14015fc6b\ncall    qword ptr [r9]                                                 ; +0xde, 0x14015fc6e\njmp     short loc_14015FC8C                                            ; +0xe1, 0x14015fc71\nmov     rcx, [rdi+380h]                                                ; +0xe3, 0x14015fc73\ntest    rcx, rcx                                                       ; +0xea, 0x14015fc7a\njz      short loc_14015FC8C                                            ; +0xed, 0x14015fc7d\nmov     rax, [rcx]                                                     ; +0xef, 0x14015fc7f\nxor     r8d, r8d                                                       ; +0xf2, 0x14015fc82\nmov     edx, r14d                                                      ; +0xf5, 0x14015fc85\ncall    qword ptr [rax+8]                                              ; +0xf8, 0x14015fc88\nnop                                                                    ; +0xfb, 0x14015fc8b\nmov     rcx, rsi                                                       ; +0xfc, 0x14015fc8c\ncall    sub_14003A830                                                  ; +0xff, 0x14015fc8f\nnop                                                                    ; +0x104, 0x14015fc94\nmov     rcx, rbx                                                       ; +0x105, 0x14015fc95\ncall    sub_14003A830                                                  ; +0x108, 0x14015fc98\nmov     rcx, [rsp+88h+var_30]                                          ; +0x10d, 0x14015fc9d\nxor     rcx, rsp; StackCookie                                          ; +0x112, 0x14015fca2\ncall    __security_check_cookie                                        ; +0x115, 0x14015fca5\nadd     rsp, 60h                                                       ; +0x11a, 0x14015fcaa\npop     r14                                                            ; +0x11e, 0x14015fcae\npop     rdi                                                            ; +0x120, 0x14015fcb0\npop     rsi                                                            ; +0x121, 0x14015fcb1\npop     rbp                                                            ; +0x122, 0x14015fcb2\npop     rbx                                                            ; +0x123, 0x14015fcb3\nretn                                                                   ; +0x124, 0x14015fcb4", "xrefs": ["GameLevelManager::handleIt @ 0x140143f15", "<???> @ 0x1406cab24"], "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"}