{"type": "func", "start": 4295201184, "end": 4295201271, "name": "GJChallengeItem::incrementCount", "pseudocode": "// \n// GJChallengeItem::incrementCount from 0x1000391a0 to 0x1000391f7 (87 bytes)\n// \n// 0 xrefs:\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 12:19:33 +0000\n// \n\nvoid __fastcall GJChallengeItem::incrementCount(__int64 a1, int a2)\n{\n  int v2; // ebx\n  int v3; // eax\n  int v4; // eax\n\n  if ( !*(_BYTE *)(a1 + 100) )\n  {\n    v2 = a2 + *(_DWORD *)(a1 + 60) - *(_DWORD *)(a1 + 64);\n    v3 = *(_DWORD *)(a1 + 84) - *(_DWORD *)(a1 + 88);\n    if ( v2 >= v3 )\n    {\n      *(_BYTE *)(a1 + 100) = 1;\n      v2 = v3;\n    }\n    *(_DWORD *)(a1 + 68) = v2;\n    v4 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n    *(_DWORD *)(a1 + 64) = v4;\n    *(_DWORD *)(a1 + 60) = v4 + v2;\n  }\n}", "assembly": "; \n; GJChallengeItem::incrementCount from 0x1000391a0 to 0x1000391f7 (87 bytes)\n; \n; 0 xrefs:\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 12:19:33 +0000\n; \ncmp     byte ptr [rdi+64h], 0                                          ; +0x0, 0x1000391a0\njnz     short locret_1000391F6                                         ; +0x4, 0x1000391a4\npush    rbp                                                            ; +0x6, 0x1000391a6\nmov     rbp, rsp                                                       ; +0x7, 0x1000391a7\npush    r14                                                            ; +0xa, 0x1000391aa\npush    rbx                                                            ; +0xc, 0x1000391ac\nmov     ebx, [rdi+3Ch]                                                 ; +0xd, 0x1000391ad\nmov     eax, [rdi+54h]                                                 ; +0x10, 0x1000391b0\nsub     ebx, [rdi+40h]                                                 ; +0x13, 0x1000391b3\nadd     ebx, esi                                                       ; +0x16, 0x1000391b6\nsub     eax, [rdi+58h]                                                 ; +0x18, 0x1000391b8\ncmp     ebx, eax                                                       ; +0x1b, 0x1000391bb\njl      short loc_1000391C5                                            ; +0x1d, 0x1000391bd\nmov     byte ptr [rdi+64h], 1                                          ; +0x1f, 0x1000391bf\nmov     ebx, eax                                                       ; +0x23, 0x1000391c3\nmov     [rdi+44h], ebx                                                 ; +0x25, 0x1000391c5\nmov     r14, rdi                                                       ; +0x28, 0x1000391c8\ncall    _rand                                                          ; +0x2b, 0x1000391cb\ncvtsi2ss xmm0, eax                                                     ; +0x30, 0x1000391d0\nmulss   xmm0, cs:dword_100A03A50                                       ; +0x34, 0x1000391d4\nmulss   xmm0, cs:dword_100A03738                                       ; +0x3c, 0x1000391dc\ncvttss2si eax, xmm0                                                    ; +0x44, 0x1000391e4\nmov     [r14+40h], eax                                                 ; +0x48, 0x1000391e8\nadd     ebx, eax                                                       ; +0x4c, 0x1000391ec\nmov     [r14+3Ch], ebx                                                 ; +0x4e, 0x1000391ee\npop     rbx                                                            ; +0x52, 0x1000391f2\npop     r14                                                            ; +0x53, 0x1000391f3\npop     rbp                                                            ; +0x55, 0x1000391f5\nretn                                                                   ; +0x56, 0x1000391f6", "xrefs": [], "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"}