; ; __acrt_errno_map_os_error from 0x18012fde0 to 0x18012fe2e (78 bytes) ; ; 14 xrefs: ; > __acrt_mbs_to_wcs_cp<__crt_win32_buffer_internal_dynamic_resizing> @ 0x18012901e ; > common_stat<_stat64i32> @ 0x18012919e ; > common_stat_handle_file_opened<_stat64i32> @ 0x180129342 ; > get_drive_number_from_path @ 0x180129675 ; > _beginthreadex @ 0x180130b2b ; > unknown_libname_66 @ 0x1801348e2 ; > __acrt_get_full_path_name_wide<__crt_win32_buffer_public_dynamic_resizing> @ 0x180134967 ; > __acrt_wcs_to_mbs_cp<__crt_win32_buffer_no_resizing> @ 0x180134ab0 ; > _close_nolock @ 0x180138cc2 ; > __acrt_GetModuleFileNameA @ 0x180139266 ; > __acrt_wcs_to_mbs_cp<__crt_win32_buffer_internal_dynamic_resizing> @ 0x18013998b ; > _write_nolock @ 0x1801405d4 ; > common_lseek_nolock<__int64> @ 0x180142022 ; > @ 0x180202dec ; ; 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, 0x18012fde0 push rdi ; +0x5, 0x18012fde5 sub rsp, 20h ; +0x6, 0x18012fde6 mov edi, ecx ; +0xa, 0x18012fdea call __acrt_getptd_noexit ; +0xc, 0x18012fdec test rax, rax ; +0x11, 0x18012fdf1 jnz short loc_18012FDFF ; +0x14, 0x18012fdf4 lea rax, unk_1801B1854 ; +0x16, 0x18012fdf6 jmp short loc_18012FE03 ; +0x1d, 0x18012fdfd add rax, 24h ; '$' ; +0x1f, 0x18012fdff mov [rax], edi ; +0x23, 0x18012fe03 call __acrt_getptd_noexit ; +0x25, 0x18012fe05 lea rbx, unk_1801B1850 ; +0x2a, 0x18012fe0a test rax, rax ; +0x31, 0x18012fe11 jz short loc_18012FE1A ; +0x34, 0x18012fe14 lea rbx, [rax+20h] ; +0x36, 0x18012fe16 mov ecx, edi ; +0x3a, 0x18012fe1a call __acrt_errno_from_os_error ; +0x3c, 0x18012fe1c mov [rbx], eax ; +0x41, 0x18012fe21 mov rbx, [rsp+28h+arg_0] ; +0x43, 0x18012fe23 add rsp, 20h ; +0x48, 0x18012fe28 pop rdi ; +0x4c, 0x18012fe2c retn ; +0x4d, 0x18012fe2d