{"type": "func", "start": 6442907424, "end": 6442907768, "name": "sub_18006F720", "pseudocode": "// \n// sub_18006F720 from 0x18006f720 to 0x18006f878 (344 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801ad020\n// > <???> @ 0x1801f9858\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 10:53:29 +0000\n// \n\n__int64 __fastcall sub_18006F720(__int64 *a1, int a2, float *a3, __int64 a4)\n{\n  __int64 v4; // r11\n  int v6; // edx\n  int v7; // edx\n  int v8; // edx\n  int v9; // xmm0_4\n  const char *v10; // r9\n  float v12; // xmm0_4\n\n  v4 = *a1;\n  if ( !a2 )\n  {\n    *a3 = *(float *)(v4 + 640) * 100.0;\n    if ( !a4 )\n      return 0;\n    v12 = *(float *)(v4 + 640);\n    goto LABEL_21;\n  }\n  v6 = a2 - 1;\n  if ( !v6 )\n  {\n    *a3 = *(float *)(v4 + 644) * 100.0;\n    if ( !a4 )\n      return 0;\n    v12 = *(float *)(v4 + 644);\nLABEL_21:\n    sub_1800B7CA0(a4, 32, \"%.1f\", (float)(v12 * 100.0));\n    return 0;\n  }\n  v7 = v6 - 1;\n  if ( !v7 )\n  {\n    *a3 = *(float *)(v4 + 648);\n    if ( a4 )\n      sub_1800B7CA0(a4, 32, \"%.02f\", *(float *)(v4 + 648));\n    return 0;\n  }\n  v8 = v7 - 1;\n  if ( !v8 )\n  {\n    *a3 = *(float *)(v4 + 652);\n    if ( a4 )\n      sub_1800B7CA0(a4, 32, \"%.02f\", *(float *)(v4 + 652));\n    return 0;\n  }\n  if ( v8 != 1 )\n    return 0;\n  v9 = *(_DWORD *)(v4 + 656) ? 1065353216 : 0;\n  *(_DWORD *)a3 = v9;\n  if ( !a4 )\n    return 0;\n  v10 = \"off\";\n  if ( *(_DWORD *)(v4 + 656) )\n    v10 = \"on\";\n  sub_1800B7CA0(a4, 32, \"%s\", v10);\n  return 0;\n}", "assembly": "; \n; sub_18006F720 from 0x18006f720 to 0x18006f878 (344 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801ad020\n; > <???> @ 0x1801f9858\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 10:53:29 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x18006f720\nmov     r11, [rcx]                                                     ; +0x4, 0x18006f724\nmov     r10, r9                                                        ; +0x7, 0x18006f727\ntest    edx, edx                                                       ; +0xa, 0x18006f72a\njz      loc_18006F829                                                  ; +0xc, 0x18006f72c\nsub     edx, 1                                                         ; +0x12, 0x18006f732\njz      loc_18006F7FF                                                  ; +0x15, 0x18006f735\nsub     edx, 1                                                         ; +0x1b, 0x18006f73b\njz      loc_18006F7D7                                                  ; +0x1e, 0x18006f73e\nsub     edx, 1                                                         ; +0x24, 0x18006f744\njz      short loc_18006F7AC                                            ; +0x27, 0x18006f747\ncmp     edx, 1                                                         ; +0x29, 0x18006f749\njnz     loc_18006F871                                                  ; +0x2c, 0x18006f74c\ncmp     dword ptr [r11+290h], 0                                        ; +0x32, 0x18006f752\njz      short loc_18006F766                                            ; +0x3a, 0x18006f75a\nmovss   xmm0, cs:dword_180145744                                       ; +0x3c, 0x18006f75c\njmp     short loc_18006F769                                            ; +0x44, 0x18006f764\nxorps   xmm0, xmm0                                                     ; +0x46, 0x18006f766\nmovss   dword ptr [r8], xmm0                                           ; +0x49, 0x18006f769\ntest    r10, r10                                                       ; +0x4e, 0x18006f76e\njz      loc_18006F871                                                  ; +0x51, 0x18006f771\ncmp     dword ptr [r11+290h], 0                                        ; +0x57, 0x18006f777\nlea     rax, aOn; \"on\"                                                 ; +0x5f, 0x18006f77f\nlea     r9, aOff; \"off\"                                                ; +0x66, 0x18006f786\nmov     edx, 20h ; ' '                                                 ; +0x6d, 0x18006f78d\ncmovnz  r9, rax                                                        ; +0x72, 0x18006f792\nlea     r8, aS; \"%s\"                                                   ; +0x76, 0x18006f796\nmov     rcx, r10                                                       ; +0x7d, 0x18006f79d\ncall    sub_1800B7CA0                                                  ; +0x80, 0x18006f7a0\nxor     eax, eax                                                       ; +0x85, 0x18006f7a5\nadd     rsp, 28h                                                       ; +0x87, 0x18006f7a7\nretn                                                                   ; +0x8b, 0x18006f7ab\nmov     eax, [r11+28Ch]                                                ; +0x8c, 0x18006f7ac\nmov     [r8], eax                                                      ; +0x93, 0x18006f7b3\ntest    r10, r10                                                       ; +0x96, 0x18006f7b6\njz      loc_18006F871                                                  ; +0x99, 0x18006f7b9\nmovss   xmm3, dword ptr [r11+28Ch]                                     ; +0x9f, 0x18006f7bf\nlea     r8, a02f; \"%.02f\"                                              ; +0xa8, 0x18006f7c8\ncvtps2pd xmm3, xmm3                                                    ; +0xaf, 0x18006f7cf\njmp     loc_18006F85F                                                  ; +0xb2, 0x18006f7d2\nmov     eax, [r11+288h]                                                ; +0xb7, 0x18006f7d7\nmov     [r8], eax                                                      ; +0xbe, 0x18006f7de\ntest    r10, r10                                                       ; +0xc1, 0x18006f7e1\njz      loc_18006F871                                                  ; +0xc4, 0x18006f7e4\nmovss   xmm3, dword ptr [r11+288h]                                     ; +0xca, 0x18006f7ea\nlea     r8, a02f; \"%.02f\"                                              ; +0xd3, 0x18006f7f3\ncvtps2pd xmm3, xmm3                                                    ; +0xda, 0x18006f7fa\njmp     short loc_18006F85F                                            ; +0xdd, 0x18006f7fd\nmovss   xmm0, dword ptr [r11+284h]                                     ; +0xdf, 0x18006f7ff\nmovss   xmm1, cs:dword_180164634                                       ; +0xe8, 0x18006f808\nmulss   xmm0, xmm1                                                     ; +0xf0, 0x18006f810\nmovss   dword ptr [r8], xmm0                                           ; +0xf4, 0x18006f814\ntest    r10, r10                                                       ; +0xf9, 0x18006f819\njz      short loc_18006F871                                            ; +0xfc, 0x18006f81c\nmovss   xmm0, dword ptr [r11+284h]                                     ; +0xfe, 0x18006f81e\njmp     short loc_18006F851                                            ; +0x107, 0x18006f827\nmovss   xmm0, dword ptr [r11+280h]                                     ; +0x109, 0x18006f829\nmovss   xmm1, cs:dword_180164634                                       ; +0x112, 0x18006f832\nmulss   xmm0, xmm1                                                     ; +0x11a, 0x18006f83a\nmovss   dword ptr [r8], xmm0                                           ; +0x11e, 0x18006f83e\ntest    r10, r10                                                       ; +0x123, 0x18006f843\njz      short loc_18006F871                                            ; +0x126, 0x18006f846\nmovss   xmm0, dword ptr [r11+280h]                                     ; +0x128, 0x18006f848\nmulss   xmm0, xmm1                                                     ; +0x131, 0x18006f851\nlea     r8, a1f; \"%.1f\"                                                ; +0x135, 0x18006f855\ncvtps2pd xmm3, xmm0                                                    ; +0x13c, 0x18006f85c\nmovq    r9, xmm3                                                       ; +0x13f, 0x18006f85f\nmov     edx, 20h ; ' '                                                 ; +0x144, 0x18006f864\nmov     rcx, r10                                                       ; +0x149, 0x18006f869\ncall    sub_1800B7CA0                                                  ; +0x14c, 0x18006f86c\nxor     eax, eax                                                       ; +0x151, 0x18006f871\nadd     rsp, 28h                                                       ; +0x153, 0x18006f873\nretn                                                                   ; +0x157, 0x18006f877", "xrefs": ["<???> @ 0x1801ad020", "<???> @ 0x1801f9858"], "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"}