{"type": "func", "start": 6443727188, "end": 6443727424, "name": "sub_180137954", "pseudocode": "// \n// sub_180137954 from 0x180137954 to 0x180137a40 (236 bytes)\n// \n// 4 xrefs:\n// > fp_format_a @ 0x18013769a\n// > sub_180137FE0 @ 0x1801382a9\n// > <???> @ 0x1802035f0\n// > <???> @ 0x1802035fc\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\nint __fastcall sub_180137954(\n        _QWORD *a1,\n        char *a2,\n        unsigned __int64 a3,\n        char *a4,\n        rsize_t a5,\n        int a6,\n        bool a7,\n        unsigned int a8,\n        struct __crt_locale_pointers *a9,\n        int a10)\n{\n  int v12; // eax\n  int result; // eax\n  _DWORD v14[6]; // [rsp+40h] [rbp-18h] BYREF\n\n  v12 = _acrt_fltout(*a1, a6 + 1, 1, (int)v14, a4, a5);\n  result = sub_18013DC24(&a2[(v14[0] == 45) + (unsigned __int64)(a6 > 0)], v12, a10);\n  if ( !result )\n    return fp_format_e_internal(a2, a3, a6, a7, a8, (struct _strflt *const)v14, 0, a9);\n  *a2 = 0;\n  return result;\n}", "assembly": "; \n; sub_180137954 from 0x180137954 to 0x180137a40 (236 bytes)\n; \n; 4 xrefs:\n; > fp_format_a @ 0x18013769a\n; > sub_180137FE0 @ 0x1801382a9\n; > <???> @ 0x1802035f0\n; > <???> @ 0x1802035fc\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\nmov     r11, rsp                                                       ; +0x0, 0x180137954\nmov     [r11+8], rbx                                                   ; +0x3, 0x180137957\nmov     [r11+10h], rbp                                                 ; +0x7, 0x18013795b\nmov     [r11+18h], rsi                                                 ; +0xb, 0x18013795f\npush    rdi                                                            ; +0xf, 0x180137963\nsub     rsp, 50h                                                       ; +0x10, 0x180137964\nmov     rax, [rsp+58h+arg_20]                                          ; +0x14, 0x180137968\nmov     rsi, r8                                                        ; +0x1c, 0x180137970\nmov     ebp, [rsp+58h+arg_28]                                          ; +0x1f, 0x180137973\nmov     rdi, rdx                                                       ; +0x26, 0x18013797a\nmov     rcx, [rcx]; int                                                ; +0x29, 0x18013797d\nmov     r8d, 1; int                                                    ; +0x2c, 0x180137980\nmov     [r11-30h], rax                                                 ; +0x32, 0x180137986\nmov     [r11-38h], r9                                                  ; +0x36, 0x18013798a\nlea     r9, [r11-18h]; int                                             ; +0x3a, 0x18013798e\nlea     edx, [rbp+1]; int                                              ; +0x3e, 0x180137992\ncall    __acrt_fltout                                                  ; +0x41, 0x180137995\nxor     r9d, r9d                                                       ; +0x46, 0x18013799a\nlea     r8d, [rbp+1]                                                   ; +0x49, 0x18013799d\ncmp     [rsp+58h+var_18], 2Dh ; '-'                                    ; +0x4d, 0x1801379a1\nmov     r10d, eax                                                      ; +0x52, 0x1801379a6\nmov     eax, [rsp+58h+arg_48]                                          ; +0x55, 0x1801379a9\nmov     rdx, rsi                                                       ; +0x5c, 0x1801379b0\nsetz    r9b                                                            ; +0x5f, 0x1801379b3\nmov     dword ptr [rsp+58h+var_30], eax; int                           ; +0x63, 0x1801379b7\nxor     ecx, ecx                                                       ; +0x67, 0x1801379bb\nmov     [rsp+58h+var_38], r10d; int                                    ; +0x69, 0x1801379bd\ntest    ebp, ebp                                                       ; +0x6e, 0x1801379c2\nsetnle  cl                                                             ; +0x70, 0x1801379c4\nsub     rdx, rcx                                                       ; +0x73, 0x1801379c7\nsub     rdx, r9                                                        ; +0x76, 0x1801379ca\ncmp     rsi, 0FFFFFFFFFFFFFFFFh                                        ; +0x79, 0x1801379cd\ncmovz   rdx, rsi                                                       ; +0x7d, 0x1801379d1\nadd     rcx, r9                                                        ; +0x81, 0x1801379d5\nadd     rcx, rdi; void *                                               ; +0x84, 0x1801379d8\nlea     r9, [rsp+58h+var_18]                                           ; +0x87, 0x1801379db\ncall    sub_18013DC24                                                  ; +0x8c, 0x1801379e0\ntest    eax, eax                                                       ; +0x91, 0x1801379e5\njz      short loc_1801379EE                                            ; +0x93, 0x1801379e7\nmov     byte ptr [rdi], 0                                              ; +0x95, 0x1801379e9\njmp     short loc_180137A2B                                            ; +0x98, 0x1801379ec\nmov     rax, [rsp+58h+arg_40]                                          ; +0x9a, 0x1801379ee\nmov     r8d, ebp; int                                                  ; +0xa2, 0x1801379f6\nmov     r9b, [rsp+58h+arg_30]; bool                                    ; +0xa5, 0x1801379f9\nmov     rdx, rsi; unsigned __int64                                     ; +0xad, 0x180137a01\nmov     [rsp+58h+var_20], rax; struct __crt_locale_pointers *          ; +0xb0, 0x180137a04\nmov     rcx, rdi; char *                                               ; +0xb5, 0x180137a09\nlea     rax, [rsp+58h+var_18]                                          ; +0xb8, 0x180137a0c\nmov     [rsp+58h+var_28], 0; bool                                      ; +0xbd, 0x180137a11\nmov     [rsp+58h+var_30], rax; struct _strflt *                        ; +0xc2, 0x180137a16\nmov     eax, [rsp+58h+arg_38]                                          ; +0xc7, 0x180137a1b\nmov     [rsp+58h+var_38], eax; unsigned int                            ; +0xce, 0x180137a22\ncall    ?fp_format_e_internal@@YAHQEAD_KH_NIQEAU_strflt@@2QEAU__crt_locale_pointers@@@Z; fp_format_e_internal(char * const,unsigned __int64,int,bool,uint,_strflt * const,bool,__crt_locale_pointers * const) ; +0xd2, 0x180137a26\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xd7, 0x180137a2b\nmov     rbp, [rsp+58h+arg_8]                                           ; +0xdc, 0x180137a30\nmov     rsi, [rsp+58h+arg_10]                                          ; +0xe1, 0x180137a35\nadd     rsp, 50h                                                       ; +0xe6, 0x180137a3a\npop     rdi                                                            ; +0xea, 0x180137a3e\nretn                                                                   ; +0xeb, 0x180137a3f", "xrefs": ["fp_format_a @ 0x18013769a", "sub_180137FE0 @ 0x1801382a9", "<???> @ 0x1802035f0", "<???> @ 0x1802035fc"], "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"}