; ; __acrt_wcs_to_mbs_cp<__crt_win32_buffer_no_resizing> from 0x180134a0c to 0x180134b1d (273 bytes) ; ; 2 xrefs: ; > __acrt_GetModuleFileNameA @ 0x180139309 ; > @ 0x1802032b4 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x180134a0c mov [rsp+arg_8], rbp ; +0x5, 0x180134a11 mov [rsp+arg_10], rsi ; +0xa, 0x180134a16 push rdi ; +0xf, 0x180134a1b sub rsp, 40h ; +0x10, 0x180134a1c xor ebx, ebx ; +0x14, 0x180134a20 mov ebp, r8d ; +0x16, 0x180134a22 mov rdi, rdx ; +0x19, 0x180134a25 mov rsi, rcx ; +0x1c, 0x180134a28 test rcx, rcx ; +0x1f, 0x180134a2b jnz short loc_180134A49 ; +0x22, 0x180134a2e cmp [rdx+28h], bl ; +0x24, 0x180134a30 jz short loc_180134A38 ; +0x27, 0x180134a33 mov [rdx+28h], bl ; +0x29, 0x180134a35 mov [rdx+10h], rbx ; +0x2c, 0x180134a38 mov [rdx+18h], rbx ; +0x30, 0x180134a3c mov [rdx+20h], rbx ; +0x34, 0x180134a40 jmp loc_180134B06 ; +0x38, 0x180134a44 cmp [rcx], bx ; +0x3d, 0x180134a49 jnz short loc_180134A7E ; +0x40, 0x180134a4c cmp [rdx+18h], rbx ; +0x42, 0x180134a4e jnz short loc_180134A76 ; +0x46, 0x180134a52 cmp [rdx+28h], bl ; +0x48, 0x180134a54 jz short loc_180134A5C ; +0x4b, 0x180134a57 mov [rdx+28h], bl ; +0x4d, 0x180134a59 call _errno ; +0x50, 0x180134a5c mov ecx, 22h ; '"' ; +0x55, 0x180134a61 mov [rax], ecx ; +0x5a, 0x180134a66 mov [rdi+28h], bl ; +0x5c, 0x180134a68 mov [rdi+18h], rbx ; +0x5f, 0x180134a6b mov ebx, ecx ; +0x63, 0x180134a6f jmp loc_180134B06 ; +0x65, 0x180134a71 mov rax, [rdx+10h] ; +0x6a, 0x180134a76 mov [rax], bl ; +0x6e, 0x180134a7a jmp short loc_180134A40 ; +0x70, 0x180134a7c mov [rsp+48h+var_10], rbx ; +0x72, 0x180134a7e or r9d, 0FFFFFFFFh ; +0x77, 0x180134a83 mov [rsp+48h+var_18], rbx ; +0x7b, 0x180134a87 mov r8, rsi ; +0x80, 0x180134a8c mov [rsp+48h+var_20], ebx ; +0x83, 0x180134a8f xor edx, edx ; +0x87, 0x180134a93 mov ecx, ebp ; +0x89, 0x180134a95 mov [rsp+48h+var_28], rbx ; +0x8b, 0x180134a97 call __acrt_WideCharToMultiByte ; +0x90, 0x180134a9c movsxd rdx, eax ; +0x95, 0x180134aa1 test eax, eax ; +0x98, 0x180134aa4 jnz short loc_180134ABE ; +0x9a, 0x180134aa6 call cs:GetLastError ; +0x9c, 0x180134aa8 mov ecx, eax ; +0xa2, 0x180134aae call __acrt_errno_map_os_error ; +0xa4, 0x180134ab0 call _errno ; +0xa9, 0x180134ab5 mov ebx, [rax] ; +0xae, 0x180134aba jmp short loc_180134B06 ; +0xb0, 0x180134abc mov rcx, [rdi+18h] ; +0xb2, 0x180134abe cmp rdx, rcx ; +0xb6, 0x180134ac2 jbe short loc_180134AD1 ; +0xb9, 0x180134ac5 cmp [rdi+28h], bl ; +0xbb, 0x180134ac7 jz short loc_180134A5C ; +0xbe, 0x180134aca mov [rdi+28h], bl ; +0xc0, 0x180134acc jmp short loc_180134A5C ; +0xc3, 0x180134acf mov rax, [rdi+10h] ; +0xc5, 0x180134ad1 or r9d, 0FFFFFFFFh ; +0xc9, 0x180134ad5 mov [rsp+48h+var_10], rbx ; +0xcd, 0x180134ad9 mov r8, rsi ; +0xd2, 0x180134ade mov [rsp+48h+var_18], rbx ; +0xd5, 0x180134ae1 xor edx, edx ; +0xda, 0x180134ae6 mov [rsp+48h+var_20], ecx ; +0xdc, 0x180134ae8 mov ecx, ebp ; +0xe0, 0x180134aec mov [rsp+48h+var_28], rax ; +0xe2, 0x180134aee call __acrt_WideCharToMultiByte ; +0xe7, 0x180134af3 movsxd rcx, eax ; +0xec, 0x180134af8 test eax, eax ; +0xef, 0x180134afb jz short loc_180134AA8 ; +0xf1, 0x180134afd dec rcx ; +0xf3, 0x180134aff mov [rdi+20h], rcx ; +0xf6, 0x180134b02 mov rbp, [rsp+48h+arg_8] ; +0xfa, 0x180134b06 mov eax, ebx ; +0xff, 0x180134b0b mov rbx, [rsp+48h+arg_0] ; +0x101, 0x180134b0d mov rsi, [rsp+48h+arg_10] ; +0x106, 0x180134b12 add rsp, 40h ; +0x10b, 0x180134b17 pop rdi ; +0x10f, 0x180134b1b retn ; +0x110, 0x180134b1c