{"type": "func", "start": 4300222544, "end": 4300222633, "name": "CCLightFlash::removeLights", "pseudocode": "// \n// CCLightFlash::removeLights from 0x100503050 to 0x1005030a9 (89 bytes)\n// \n// 1 xrefs:\n// > CCLightFlash::showFlash @ 0x100502e3c\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:31:31 +0000\n// \n\n__int64 __fastcall CCLightFlash::removeLights(__int64 a1)\n{\n  __int64 result; // rax\n  unsigned int v2; // r14d\n  __int64 v3; // rax\n\n  result = sub_1007FEF90(*(_QWORD *)(a1 + 320));\n  if ( (_DWORD)result )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 320), v2);\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 528LL))(v3, 1);\n      ++v2;\n      result = sub_1007FEF90(*(_QWORD *)(a1 + 320));\n    }\n    while ( v2 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; CCLightFlash::removeLights from 0x100503050 to 0x1005030a9 (89 bytes)\n; \n; 1 xrefs:\n; > CCLightFlash::showFlash @ 0x100502e3c\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:31:31 +0000\n; \npush    rbp                                                            ; +0x0, 0x100503050\nmov     rbp, rsp                                                       ; +0x1, 0x100503051\npush    r14                                                            ; +0x4, 0x100503054\npush    rbx                                                            ; +0x6, 0x100503056\nmov     rbx, rdi                                                       ; +0x7, 0x100503057\nmov     rdi, [rdi+140h]                                                ; +0xa, 0x10050305a\ncall    sub_1007FEF90                                                  ; +0x11, 0x100503061\ntest    eax, eax                                                       ; +0x16, 0x100503066\njz      short loc_1005030A4                                            ; +0x18, 0x100503068\nxor     r14d, r14d                                                     ; +0x1a, 0x10050306a\nnop     dword ptr [rax]                                                ; +0x1d, 0x10050306d\nmov     rdi, [rbx+140h]                                                ; +0x20, 0x100503070\nmov     esi, r14d                                                      ; +0x27, 0x100503077\ncall    sub_1007FEFE0                                                  ; +0x2a, 0x10050307a\nmov     rcx, [rax]                                                     ; +0x2f, 0x10050307f\nmov     rdi, rax                                                       ; +0x32, 0x100503082\nmov     esi, 1                                                         ; +0x35, 0x100503085\ncall    qword ptr [rcx+210h]                                           ; +0x3a, 0x10050308a\ninc     r14d                                                           ; +0x40, 0x100503090\nmov     rdi, [rbx+140h]                                                ; +0x43, 0x100503093\ncall    sub_1007FEF90                                                  ; +0x4a, 0x10050309a\ncmp     r14d, eax                                                      ; +0x4f, 0x10050309f\njb      short loc_100503070                                            ; +0x52, 0x1005030a2\npop     rbx                                                            ; +0x54, 0x1005030a4\npop     r14                                                            ; +0x55, 0x1005030a5\npop     rbp                                                            ; +0x57, 0x1005030a7\nretn                                                                   ; +0x58, 0x1005030a8", "xrefs": ["CCLightFlash::showFlash @ 0x100502e3c"], "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"}