; ; __acrt_lowio_ensure_fh_exists from 0x1801360bc to 0x180136164 (168 bytes) ; ; 4 xrefs: ; > initialize_inherited_file_handles_nolock @ 0x180136681 ; > __acrt_initialize_lowio @ 0x180136838 ; > @ 0x1802034c4 ; > @ 0x1802034d0 ; ; 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, 0x1801360bc mov [rsp+arg_8], rsi ; +0x5, 0x1801360c1 mov [rsp+arg_10], rdi ; +0xa, 0x1801360c6 push r15 ; +0xf, 0x1801360cb sub rsp, 30h ; +0x11, 0x1801360cd mov esi, ecx ; +0x15, 0x1801360d1 cmp ecx, 2000h ; +0x17, 0x1801360d3 jb short loc_180136104 ; +0x1d, 0x1801360d9 call _errno ; +0x1f, 0x1801360db mov ebx, 9 ; +0x24, 0x1801360e0 mov [rax], ebx ; +0x29, 0x1801360e5 call _invalid_parameter_noinfo ; +0x2b, 0x1801360e7 mov eax, ebx ; +0x30, 0x1801360ec mov rbx, [rsp+38h+arg_0] ; +0x32, 0x1801360ee mov rsi, [rsp+38h+arg_8] ; +0x37, 0x1801360f3 mov rdi, [rsp+38h+arg_10] ; +0x3c, 0x1801360f8 add rsp, 30h ; +0x41, 0x1801360fd pop r15 ; +0x45, 0x180136101 retn ; +0x47, 0x180136103 xor edi, edi ; +0x48, 0x180136104 lea ecx, [rdi+7] ; +0x4a, 0x180136106 call sub_1801346AC ; +0x4d, 0x180136109 nop ; +0x52, 0x18013610e mov ebx, edi ; +0x53, 0x18013610f mov eax, cs:dword_1801F5560 ; +0x55, 0x180136111 mov [rsp+38h+var_18], rbx ; +0x5b, 0x180136117 cmp esi, eax ; +0x60, 0x18013611c jl short loc_180136156 ; +0x62, 0x18013611e lea r15, qword_1801F5160 ; +0x64, 0x180136120 cmp [r15+rbx*8], rdi ; +0x6b, 0x180136127 jz short loc_18013612F ; +0x6f, 0x18013612b jmp short loc_180136151 ; +0x71, 0x18013612d call __acrt_lowio_create_handle_array ; +0x73, 0x18013612f mov [r15+rbx*8], rax ; +0x78, 0x180136134 test rax, rax ; +0x7c, 0x180136138 jnz short loc_180136142 ; +0x7f, 0x18013613b lea edi, [rax+0Ch] ; +0x81, 0x18013613d jmp short loc_180136156 ; +0x84, 0x180136140 mov eax, cs:dword_1801F5560 ; +0x86, 0x180136142 add eax, 40h ; '@' ; +0x8c, 0x180136148 mov cs:dword_1801F5560, eax ; +0x8f, 0x18013614b inc rbx ; +0x95, 0x180136151 jmp short loc_180136117 ; +0x98, 0x180136154 mov ecx, 7 ; +0x9a, 0x180136156 call sub_180134700 ; +0x9f, 0x18013615b mov eax, edi ; +0xa4, 0x180136160 jmp short loc_1801360EE ; +0xa6, 0x180136162