{"type": "func", "start": 4295429264, "end": 4295429330, "name": "GameStatsManager::getBaseCurrency", "pseudocode": "// \n// GameStatsManager::getBaseCurrency from 0x100070c90 to 0x100070cd2 (66 bytes)\n// \n// 0 xrefs:\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\nint __fastcall GameStatsManager::getBaseCurrency(GameStatsManager *a1, int a2, bool a3, int a4)\n{\n  int result; // eax\n  int v5; // edx\n  unsigned int v6; // esi\n\n  if ( a3 )\n  {\n    if ( (unsigned int)a4 > 0x14 )\n      return 20 * a2 + 20;\n    result = 400;\n    v5 = 1327104;\n    if ( !_bittest(&v5, a4) )\n      return 20 * a2 + 20;\n  }\n  else\n  {\n    v6 = a2 - 2;\n    result = 0;\n    if ( v6 <= 8 )\n      return dword_10081593C[v6];\n  }\n  return result;\n}", "assembly": "; \n; GameStatsManager::getBaseCurrency from 0x100070c90 to 0x100070cd2 (66 bytes)\n; \n; 0 xrefs:\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, 0x100070c90\nmov     rbp, rsp                                                       ; +0x1, 0x100070c91\ntest    edx, edx                                                       ; +0x4, 0x100070c94\njz      short loc_100070CAE                                            ; +0x6, 0x100070c96\ncmp     ecx, 14h                                                       ; +0x8, 0x100070c98\nja      short loc_100070CC6                                            ; +0xb, 0x100070c9b\nmov     eax, 190h                                                      ; +0xd, 0x100070c9d\nmov     edx, 144000h                                                   ; +0x12, 0x100070ca2\nbt      edx, ecx                                                       ; +0x17, 0x100070ca7\njnb     short loc_100070CC6                                            ; +0x1a, 0x100070caa\npop     rbp                                                            ; +0x1c, 0x100070cac\nretn                                                                   ; +0x1d, 0x100070cad\nadd     esi, 0FFFFFFFEh                                                ; +0x1e, 0x100070cae\nxor     eax, eax                                                       ; +0x21, 0x100070cb1\ncmp     esi, 8                                                         ; +0x23, 0x100070cb3\nja      short loc_100070CAC                                            ; +0x26, 0x100070cb6\nmov     eax, esi                                                       ; +0x28, 0x100070cb8\nlea     rcx, dword_10081593C                                           ; +0x2a, 0x100070cba\nmov     eax, [rcx+rax*4]                                               ; +0x31, 0x100070cc1\npop     rbp                                                            ; +0x34, 0x100070cc4\nretn                                                                   ; +0x35, 0x100070cc5\nlea     eax, [rsi+rsi*4]                                               ; +0x36, 0x100070cc6\nlea     eax, ds:14h[rax*4]                                             ; +0x39, 0x100070cc9\npop     rbp                                                            ; +0x40, 0x100070cd0\nretn                                                                   ; +0x41, 0x100070cd1", "xrefs": [], "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"}