{"type": "func", "start": 6442547552, "end": 6442547610, "name": "sub_180017960", "pseudocode": "// \n// sub_180017960 from 0x180017960 to 0x18001799a (58 bytes)\n// \n// 1 xrefs:\n// > sub_180017BA0 @ 0x180017fe6\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__int64 __fastcall sub_180017960(__int64 a1, double a2, double a3)\n{\n  if ( *(_BYTE *)(a1 + 204) )\n    return 1;\n  if ( a2 <= 0.0 )\n  {\n    *(_DWORD *)(a1 + 208) = 0;\n    return 0;\n  }\n  else\n  {\n    *(_DWORD *)(a1 + 208) = (int)(a3 / a2 * 100.0);\n    return 0;\n  }\n}", "assembly": "; \n; sub_180017960 from 0x180017960 to 0x18001799a (58 bytes)\n; \n; 1 xrefs:\n; > sub_180017BA0 @ 0x180017fe6\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\ncmp     byte ptr [rcx+0CCh], 0                                         ; +0x0, 0x180017960\njz      short loc_18001796F                                            ; +0x7, 0x180017967\nmov     eax, 1                                                         ; +0x9, 0x180017969\nretn                                                                   ; +0xe, 0x18001796e\nxorps   xmm0, xmm0                                                     ; +0xf, 0x18001796f\ncomisd  xmm1, xmm0                                                     ; +0x12, 0x180017972\njbe     short loc_180017991                                            ; +0x16, 0x180017976\ndivsd   xmm2, xmm1                                                     ; +0x18, 0x180017978\nmulsd   xmm2, cs:qword_180029568                                       ; +0x1c, 0x18001797c\ncvttsd2si eax, xmm2                                                    ; +0x24, 0x180017984\nmov     [rcx+0D0h], eax                                                ; +0x28, 0x180017988\nxor     eax, eax                                                       ; +0x2e, 0x18001798e\nretn                                                                   ; +0x30, 0x180017990\nxor     eax, eax                                                       ; +0x31, 0x180017991\nmov     [rcx+0D0h], eax                                                ; +0x33, 0x180017993\nretn                                                                   ; +0x39, 0x180017999", "xrefs": ["sub_180017BA0 @ 0x180017fe6"], "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"}