{"type": "func", "start": 6442717888, "end": 6442718060, "name": "fmt::internal::UTF8ToUTF16::UTF8ToUTF16", "pseudocode": "// \n// fmt::internal::UTF8ToUTF16::UTF8ToUTF16 from 0x1800412c0 to 0x18004136c (172 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bb4d0\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\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall fmt::internal::UTF8ToUTF16::UTF8ToUTF16(__int64 a1, LPCCH *a2)\n{\n  const CHAR *v3; // rsi\n  unsigned __int64 cchWideChar; // rbp\n\n  *(_QWORD *)a1 = 0;\n  *(_QWORD *)(a1 + 8) = 500;\n  *(_QWORD *)(a1 + 16) = a1 + 24;\n  v3 = *a2;\n  cchWideChar = MultiByteToWideChar(0xFDE9u, 8u, *a2, -1, nullptr, 0);\n  if ( cchWideChar > *(_QWORD *)(a1 + 8) )\n    sub_180044610(a1);\n  *(_QWORD *)a1 = cchWideChar;\n  MultiByteToWideChar(0xFDE9u, 8u, v3, -1, *(LPWSTR *)(a1 + 16), cchWideChar);\n  return a1;\n}", "assembly": "; \n; fmt::internal::UTF8ToUTF16::UTF8ToUTF16 from 0x1800412c0 to 0x18004136c (172 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bb4d0\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_8], rbx                                               ; +0x0, 0x1800412c0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800412c5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1800412ca\nmov     [rsp+arg_0], rcx                                               ; +0xf, 0x1800412cf\npush    rdi                                                            ; +0x14, 0x1800412d4\nsub     rsp, 30h                                                       ; +0x15, 0x1800412d5\nmov     rbx, rcx                                                       ; +0x19, 0x1800412d9\nxor     ecx, ecx                                                       ; +0x1c, 0x1800412dc\nmov     [rbx], rcx                                                     ; +0x1e, 0x1800412de\nmov     qword ptr [rbx+8], 1F4h                                        ; +0x21, 0x1800412e1\nlea     rax, [rbx+18h]                                                 ; +0x29, 0x1800412e9\nmov     [rbx+10h], rax                                                 ; +0x2d, 0x1800412ed\nmov     rsi, [rdx]                                                     ; +0x31, 0x1800412f1\nmov     [rsp+38h+cchWideChar], ecx; cchWideChar                        ; +0x34, 0x1800412f4\nmov     [rsp+38h+lpWideCharStr], rcx; lpWideCharStr                    ; +0x38, 0x1800412f8\nmov     r9d, 0FFFFFFFFh; cbMultiByte                                   ; +0x3d, 0x1800412fd\nmov     r8, rsi; lpMultiByteStr                                        ; +0x43, 0x180041303\nmov     edx, 8; dwFlags                                                ; +0x46, 0x180041306\nmov     ecx, 0FDE9h; CodePage                                          ; +0x4b, 0x18004130b\ncall    cs:MultiByteToWideChar                                         ; +0x50, 0x180041310\nmovsxd  rbp, eax                                                       ; +0x56, 0x180041316\ncmp     rbp, [rbx+8]                                                   ; +0x59, 0x180041319\njbe     short loc_18004132A                                            ; +0x5d, 0x18004131d\nmov     rdx, rbp                                                       ; +0x5f, 0x18004131f\nmov     rcx, rbx                                                       ; +0x62, 0x180041322\ncall    sub_180044610                                                  ; +0x65, 0x180041325\nmov     [rbx], rbp                                                     ; +0x6a, 0x18004132a\nmov     [rsp+38h+cchWideChar], ebp; cchWideChar                        ; +0x6d, 0x18004132d\nmov     rax, [rbx+10h]                                                 ; +0x71, 0x180041331\nmov     [rsp+38h+lpWideCharStr], rax; lpWideCharStr                    ; +0x75, 0x180041335\nmov     r9d, 0FFFFFFFFh; cbMultiByte                                   ; +0x7a, 0x18004133a\nmov     r8, rsi; lpMultiByteStr                                        ; +0x80, 0x180041340\nmov     edx, 8; dwFlags                                                ; +0x83, 0x180041343\nmov     ecx, 0FDE9h; CodePage                                          ; +0x88, 0x180041348\ncall    cs:MultiByteToWideChar                                         ; +0x8d, 0x18004134d\nnop                                                                    ; +0x93, 0x180041353\nmov     rax, rbx                                                       ; +0x94, 0x180041354\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x97, 0x180041357\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x9c, 0x18004135c\nmov     rsi, [rsp+38h+arg_18]                                          ; +0xa1, 0x180041361\nadd     rsp, 30h                                                       ; +0xa6, 0x180041366\npop     rdi                                                            ; +0xaa, 0x18004136a\nretn                                                                   ; +0xab, 0x18004136b", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bb4d0"], "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"}