{"type": "func", "start": 6443205168, "end": 6443205313, "name": "sub_1800B8230", "pseudocode": "// \n// sub_1800B8230 from 0x1800b8230 to 0x1800b82c1 (145 bytes)\n// \n// 4 xrefs:\n// > sub_1800B7CA0 @ 0x1800b7cb3\n// > <???> @ 0x1801899d0\n// > <???> @ 0x1801899e0\n// > <???> @ 0x1801fd290\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:59 +0000\n// \n\n__int64 __fastcall sub_1800B8230(_BYTE *a1, int a2, int a3, __int64 a4)\n{\n  int v4; // ebx\n  __int64 v8; // rsi\n  _DWORD *v9; // rax\n  int v10; // eax\n\n  v4 = a2;\n  if ( a2 <= 0 )\n    return 0;\n  v8 = a2;\n  *a1 = 0;\n  v9 = sub_1800429F0();\n  v10 = common_vsprintf<__crt_stdio_output::standard_base,char>(*v9 | 2u, (int)a1, v4, a3, nullptr, a4);\n  if ( v10 < 0 )\n    v10 = -1;\n  if ( v10 >= 0 && v10 < v4 )\n    v4 = v10;\n  a1[v8 - 1] = 0;\n  return (unsigned int)v4;\n}", "assembly": "; \n; sub_1800B8230 from 0x1800b8230 to 0x1800b82c1 (145 bytes)\n; \n; 4 xrefs:\n; > sub_1800B7CA0 @ 0x1800b7cb3\n; > <???> @ 0x1801899d0\n; > <???> @ 0x1801899e0\n; > <???> @ 0x1801fd290\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:59 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800b8230\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800b8235\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x1800b823a\npush    r14                                                            ; +0xf, 0x1800b823f\nsub     rsp, 30h                                                       ; +0x11, 0x1800b8241\nmovsxd  rbx, edx                                                       ; +0x15, 0x1800b8245\nmov     rbp, r9                                                        ; +0x18, 0x1800b8248\nmov     r14, r8                                                        ; +0x1b, 0x1800b824b\nmov     rdi, rcx                                                       ; +0x1e, 0x1800b824e\ntest    edx, edx                                                       ; +0x21, 0x1800b8251\njle     short loc_1800B82A9                                            ; +0x23, 0x1800b8253\nmov     [rsp+38h+arg_0], rsi                                           ; +0x25, 0x1800b8255\nmov     rsi, rbx                                                       ; +0x2a, 0x1800b825a\nmov     byte ptr [rcx], 0                                              ; +0x2d, 0x1800b825d\ncall    sub_1800429F0                                                  ; +0x30, 0x1800b8260\nmov     [rsp+38h+var_10], rbp; __int64                                 ; +0x35, 0x1800b8265\nmov     r9, r14; int                                                   ; +0x3a, 0x1800b826a\nmov     r8, rbx; int                                                   ; +0x3d, 0x1800b826d\nmov     [rsp+38h+var_18], 0; struct __crt_locale_pointers *            ; +0x40, 0x1800b8270\nmov     rdx, rdi; int                                                  ; +0x49, 0x1800b8279\nmov     rcx, [rax]                                                     ; +0x4c, 0x1800b827c\nor      rcx, 2; int                                                    ; +0x4f, 0x1800b827f\ncall    j_??$common_vsprintf@Vstandard_base@__crt_stdio_output@@D@@YAH_KQEAD0QEBDQEAU__crt_locale_pointers@@1@Z; common_vsprintf<__crt_stdio_output::standard_base,char>(unsigned __int64,char * const,unsigned __int64,char const * const,__crt_locale_pointers * const,char * const) ; +0x53, 0x1800b8283\ntest    eax, eax                                                       ; +0x58, 0x1800b8288\nmov     ecx, 0FFFFFFFFh                                                ; +0x5a, 0x1800b828a\ncmovs   eax, ecx                                                       ; +0x5f, 0x1800b828f\ntest    eax, eax                                                       ; +0x62, 0x1800b8292\njs      short loc_1800B829B                                            ; +0x64, 0x1800b8294\ncmp     eax, ebx                                                       ; +0x66, 0x1800b8296\ncmovl   ebx, eax                                                       ; +0x68, 0x1800b8298\nmov     byte ptr [rsi+rdi-1], 0                                        ; +0x6b, 0x1800b829b\nmov     eax, ebx                                                       ; +0x70, 0x1800b82a0\nmov     rsi, [rsp+38h+arg_0]                                           ; +0x72, 0x1800b82a2\njmp     short loc_1800B82AB                                            ; +0x77, 0x1800b82a7\nxor     eax, eax                                                       ; +0x79, 0x1800b82a9\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x7b, 0x1800b82ab\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x80, 0x1800b82b0\nmov     rdi, [rsp+38h+arg_18]                                          ; +0x85, 0x1800b82b5\nadd     rsp, 30h                                                       ; +0x8a, 0x1800b82ba\npop     r14                                                            ; +0x8e, 0x1800b82be\nretn                                                                   ; +0x90, 0x1800b82c0", "xrefs": ["sub_1800B7CA0 @ 0x1800b7cb3", "<???> @ 0x1801899d0", "<???> @ 0x1801899e0", "<???> @ 0x1801fd290"], "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"}