{"type": "func", "start": 5375408864, "end": 5375408998, "name": "ObjectControlGameObject::customObjectSetup", "pseudocode": "// \n// ObjectControlGameObject::customObjectSetup from 0x140663ae0 to 0x140663b66 (134 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14082f910\n// > <???> @ 0x140931c4c\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:35:49 +0000\n// \n\nint __fastcall ObjectControlGameObject::customObjectSetup(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v6; // rax\n  int v7; // edx\n  const char *v8; // rcx\n\n  EffectGameObject::customObjectSetup(a1, a2, a3);\n  v6 = *(_QWORD *)a3;\n  if ( *(_QWORD *)(*(_QWORD *)a3 + 408LL) )\n  {\n    v8 = (const char *)(*(_QWORD *)a2 + 1632LL);\n    if ( *(_QWORD *)(*(_QWORD *)a2 + 1656LL) > 0xFu )\n      v8 = *(const char **)v8;\n    LODWORD(v6) = atoi(v8);\n    if ( (int)v6 < 0 )\n      LODWORD(v6) = 0;\n    v7 = v6;\n    if ( (int)v6 > 9999 )\n    {\n      *(_DWORD *)(a1 + 1480) = 9999;\n      return v6;\n    }\n  }\n  else\n  {\n    v7 = 0;\n  }\n  *(_DWORD *)(a1 + 1480) = v7;\n  return v6;\n}", "assembly": "; \n; ObjectControlGameObject::customObjectSetup from 0x140663ae0 to 0x140663b66 (134 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14082f910\n; > <???> @ 0x140931c4c\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:35:49 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140663ae0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140663ae5\npush    rdi                                                            ; +0xa, 0x140663aea\nsub     rsp, 20h                                                       ; +0xb, 0x140663aeb\nmov     rbx, r8                                                        ; +0xf, 0x140663aef\nmov     rsi, rdx                                                       ; +0x12, 0x140663af2\nmov     rdi, rcx                                                       ; +0x15, 0x140663af5\ncall    EffectGameObject__customObjectSetup                            ; +0x18, 0x140663af8\nmov     rax, [rbx]                                                     ; +0x1d, 0x140663afd\ncmp     qword ptr [rax+198h], 0                                        ; +0x20, 0x140663b00\njnz     short loc_140663B22                                            ; +0x28, 0x140663b08\nxor     edx, edx                                                       ; +0x2a, 0x140663b0a\nmov     [rdi+5C8h], edx                                                ; +0x2c, 0x140663b0c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x32, 0x140663b12\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x37, 0x140663b17\nadd     rsp, 20h                                                       ; +0x3c, 0x140663b1c\npop     rdi                                                            ; +0x40, 0x140663b20\nretn                                                                   ; +0x41, 0x140663b21\nmov     rcx, [rsi]                                                     ; +0x42, 0x140663b22\nadd     rcx, 660h                                                      ; +0x45, 0x140663b25\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x4c, 0x140663b2c\njbe     short loc_140663B36                                            ; +0x51, 0x140663b31\nmov     rcx, [rcx]; String                                             ; +0x53, 0x140663b33\ncall    cs:atoi                                                        ; +0x56, 0x140663b36\nxor     edx, edx                                                       ; +0x5c, 0x140663b3c\ntest    eax, eax                                                       ; +0x5e, 0x140663b3e\ncmovs   eax, edx                                                       ; +0x60, 0x140663b40\nmov     edx, eax                                                       ; +0x63, 0x140663b43\ncmp     eax, 270Fh                                                     ; +0x65, 0x140663b45\njle     short loc_140663B0C                                            ; +0x6a, 0x140663b4a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6c, 0x140663b4c\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x71, 0x140663b51\nmov     dword ptr [rdi+5C8h], 270Fh                                    ; +0x76, 0x140663b56\nadd     rsp, 20h                                                       ; +0x80, 0x140663b60\npop     rdi                                                            ; +0x84, 0x140663b64\nretn                                                                   ; +0x85, 0x140663b65", "xrefs": ["<???> @ 0x14082f910", "<???> @ 0x140931c4c"], "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"}