{"type": "func", "start": 6442719328, "end": 6442719426, "name": "sub_180041860", "pseudocode": "// \n// sub_180041860 from 0x180041860 to 0x1800418c2 (98 bytes)\n// \n// 9 xrefs:\n// > sub_18003DC70 @ 0x18003df09\n// > sub_18003DC70 @ 0x18003df19\n// > sub_18003DC70 @ 0x18003df2d\n// > sub_18003DC70 @ 0x18003df3e\n// > sub_18003E5C0 @ 0x18003e85c\n// > sub_18003E5C0 @ 0x18003e86c\n// > sub_18003E5C0 @ 0x18003e880\n// > sub_18003E5C0 @ 0x18003e891\n// > <???> @ 0x1801bb50c\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 11:21:39 +0000\n// \n\nint sub_180041860(char *Buffer, size_t BufferCount, char *Format, ...)\n{\n  unsigned __int64 *v6; // rax\n  int result; // eax\n  va_list va; // [rsp+88h] [rbp+20h] BYREF\n\n  va_start(va, Format);\n  v6 = (unsigned __int64 *)sub_1800095E0();\n  result = _stdio_common_vsnprintf_s(*v6, Buffer, BufferCount, 0xFFFFFFFFFFFFFFFFuLL, Format, nullptr, va);\n  if ( result < 0 )\n    return -1;\n  return result;\n}", "assembly": "; \n; sub_180041860 from 0x180041860 to 0x1800418c2 (98 bytes)\n; \n; 9 xrefs:\n; > sub_18003DC70 @ 0x18003df09\n; > sub_18003DC70 @ 0x18003df19\n; > sub_18003DC70 @ 0x18003df2d\n; > sub_18003DC70 @ 0x18003df3e\n; > sub_18003E5C0 @ 0x18003e85c\n; > sub_18003E5C0 @ 0x18003e86c\n; > sub_18003E5C0 @ 0x18003e880\n; > sub_18003E5C0 @ 0x18003e891\n; > <???> @ 0x1801bb50c\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 11:21:39 +0000\n; \nmov     [rsp+arg_10], r8                                               ; +0x0, 0x180041860\nmov     qword ptr [rsp+arg_18], r9                                     ; +0x5, 0x180041865\npush    rbx                                                            ; +0xa, 0x18004186a\npush    rbp                                                            ; +0xb, 0x18004186b\npush    rsi                                                            ; +0xc, 0x18004186c\npush    rdi                                                            ; +0xd, 0x18004186d\nsub     rsp, 48h                                                       ; +0xe, 0x18004186e\nmov     rbx, r8                                                        ; +0x12, 0x180041872\nlea     rbp, [rsp+68h+arg_18]                                          ; +0x15, 0x180041875\nmov     rdi, rdx                                                       ; +0x1d, 0x18004187d\nmov     rsi, rcx                                                       ; +0x20, 0x180041880\ncall    sub_1800095E0                                                  ; +0x23, 0x180041883\nmov     [rsp+68h+ArgList], rbp; ArgList                                ; +0x28, 0x180041888\nmov     r8, rdi; BufferCount                                           ; +0x2d, 0x18004188d\nmov     [rsp+68h+Locale], 0; Locale                                    ; +0x30, 0x180041890\nmov     rdx, rsi; Buffer                                               ; +0x39, 0x180041899\nmov     [rsp+68h+Format], rbx; Format                                  ; +0x3c, 0x18004189c\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x41, 0x1800418a1\nmov     rcx, [rax]; Options                                            ; +0x48, 0x1800418a8\nmov     r9, rbx; MaxCount                                              ; +0x4b, 0x1800418ab\ncall    cs:__stdio_common_vsnprintf_s                                  ; +0x4e, 0x1800418ae\ntest    eax, eax                                                       ; +0x54, 0x1800418b4\ncmovs   eax, ebx                                                       ; +0x56, 0x1800418b6\nadd     rsp, 48h                                                       ; +0x59, 0x1800418b9\npop     rdi                                                            ; +0x5d, 0x1800418bd\npop     rsi                                                            ; +0x5e, 0x1800418be\npop     rbp                                                            ; +0x5f, 0x1800418bf\npop     rbx                                                            ; +0x60, 0x1800418c0\nretn                                                                   ; +0x61, 0x1800418c1", "xrefs": ["sub_18003DC70 @ 0x18003df09", "sub_18003DC70 @ 0x18003df19", "sub_18003DC70 @ 0x18003df2d", "sub_18003DC70 @ 0x18003df3e", "sub_18003E5C0 @ 0x18003e85c", "sub_18003E5C0 @ 0x18003e86c", "sub_18003E5C0 @ 0x18003e880", "sub_18003E5C0 @ 0x18003e891", "<???> @ 0x1801bb50c"], "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"}