{"type": "func", "start": 6442731680, "end": 6442731768, "name": "swprintf", "pseudocode": "// \n// swprintf from 0x1800448a0 to 0x1800448f8 (88 bytes)\n// \n// 9 xrefs:\n// > sub_18003DA20 @ 0x18003dcb9\n// > sub_18003DA20 @ 0x18003dcc9\n// > sub_18003DA20 @ 0x18003dcdd\n// > sub_18003DA20 @ 0x18003dcee\n// > sub_18003E390 @ 0x18003e629\n// > sub_18003E390 @ 0x18003e639\n// > sub_18003E390 @ 0x18003e64d\n// > sub_18003E390 @ 0x18003e65e\n// > <???> @ 0x1801b15fc\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 swprintf(wchar_t *const Buffer, const size_t BufferCount, const wchar_t *const Format, ...)\n{\n  unsigned __int64 *v6; // rax\n  int result; // eax\n  va_list va; // [rsp+78h] [rbp+20h] BYREF\n\n  va_start(va, Format);\n  v6 = (unsigned __int64 *)sub_180009520();\n  result = _stdio_common_vswprintf(*v6, Buffer, BufferCount, Format, nullptr, va);\n  if ( result < 0 )\n    return -1;\n  return result;\n}", "assembly": "; \n; swprintf from 0x1800448a0 to 0x1800448f8 (88 bytes)\n; \n; 9 xrefs:\n; > sub_18003DA20 @ 0x18003dcb9\n; > sub_18003DA20 @ 0x18003dcc9\n; > sub_18003DA20 @ 0x18003dcdd\n; > sub_18003DA20 @ 0x18003dcee\n; > sub_18003E390 @ 0x18003e629\n; > sub_18003E390 @ 0x18003e639\n; > sub_18003E390 @ 0x18003e64d\n; > sub_18003E390 @ 0x18003e65e\n; > <???> @ 0x1801b15fc\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     [rsp+arg_10], r8                                               ; +0x0, 0x1800448a0\nmov     qword ptr [rsp+arg_18], r9                                     ; +0x5, 0x1800448a5\npush    rbx                                                            ; +0xa, 0x1800448aa\npush    rbp                                                            ; +0xb, 0x1800448ab\npush    rsi                                                            ; +0xc, 0x1800448ac\npush    rdi                                                            ; +0xd, 0x1800448ad\nsub     rsp, 38h                                                       ; +0xe, 0x1800448ae\nmov     rsi, r8                                                        ; +0x12, 0x1800448b2\nlea     rbp, [rsp+58h+arg_18]                                          ; +0x15, 0x1800448b5\nmov     rbx, rdx                                                       ; +0x1a, 0x1800448ba\nmov     rdi, rcx                                                       ; +0x1d, 0x1800448bd\ncall    sub_180009520                                                  ; +0x20, 0x1800448c0\nmov     [rsp+58h+ArgList], rbp; ArgList                                ; +0x25, 0x1800448c5\nmov     r9, rsi; Format                                                ; +0x2a, 0x1800448ca\nmov     r8, rbx; BufferCount                                           ; +0x2d, 0x1800448cd\nmov     [rsp+58h+Locale], 0; Locale                                    ; +0x30, 0x1800448d0\nmov     rdx, rdi; Buffer                                               ; +0x39, 0x1800448d9\nmov     rcx, [rax]; Options                                            ; +0x3c, 0x1800448dc\ncall    cs:__stdio_common_vswprintf                                    ; +0x3f, 0x1800448df\ntest    eax, eax                                                       ; +0x45, 0x1800448e5\nmov     ecx, 0FFFFFFFFh                                                ; +0x47, 0x1800448e7\ncmovs   eax, ecx                                                       ; +0x4c, 0x1800448ec\nadd     rsp, 38h                                                       ; +0x4f, 0x1800448ef\npop     rdi                                                            ; +0x53, 0x1800448f3\npop     rsi                                                            ; +0x54, 0x1800448f4\npop     rbp                                                            ; +0x55, 0x1800448f5\npop     rbx                                                            ; +0x56, 0x1800448f6\nretn                                                                   ; +0x57, 0x1800448f7", "xrefs": ["sub_18003DA20 @ 0x18003dcb9", "sub_18003DA20 @ 0x18003dcc9", "sub_18003DA20 @ 0x18003dcdd", "sub_18003DA20 @ 0x18003dcee", "sub_18003E390 @ 0x18003e629", "sub_18003E390 @ 0x18003e639", "sub_18003E390 @ 0x18003e64d", "sub_18003E390 @ 0x18003e65e", "<???> @ 0x1801b15fc"], "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"}