; ; initialize_inherited_file_handles_nolock from 0x180136628 to 0x180136715 (237 bytes) ; ; 2 xrefs: ; > __acrt_initialize_lowio @ 0x180136841 ; > @ 0x180203518 ; ; 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 rax, rsp ; +0x0, 0x180136628 mov [rax+8], rbx ; +0x3, 0x18013662b mov [rax+10h], rbp ; +0x7, 0x18013662f mov [rax+18h], rsi ; +0xb, 0x180136633 mov [rax+20h], rdi ; +0xf, 0x180136637 push r14 ; +0x13, 0x18013663b sub rsp, 90h ; +0x15, 0x18013663d lea rcx, [rax-78h]; lpStartupInfo ; +0x1c, 0x180136644 call cs:GetStartupInfoW ; +0x20, 0x180136648 xor r14d, r14d ; +0x26, 0x18013664e cmp [rsp+98h+var_36], r14w ; +0x29, 0x180136651 jz loc_1801366F7 ; +0x2f, 0x180136657 mov rax, [rsp+98h+var_30] ; +0x35, 0x18013665d test rax, rax ; +0x3a, 0x180136662 jz loc_1801366F7 ; +0x3d, 0x180136665 movsxd rbx, dword ptr [rax] ; +0x43, 0x18013666b lea rsi, [rax+4] ; +0x46, 0x18013666e mov edi, 2000h ; +0x4a, 0x180136672 add rbx, rsi ; +0x4f, 0x180136677 cmp [rax], edi ; +0x52, 0x18013667a cmovl edi, [rax] ; +0x54, 0x18013667c mov ecx, edi ; +0x57, 0x18013667f call __acrt_lowio_ensure_fh_exists ; +0x59, 0x180136681 cmp edi, cs:dword_1801F5560 ; +0x5e, 0x180136686 cmovg edi, cs:dword_1801F5560 ; +0x64, 0x18013668c test edi, edi ; +0x6b, 0x180136693 jz short loc_1801366F7 ; +0x6d, 0x180136695 mov ebp, r14d ; +0x6f, 0x180136697 cmp qword ptr [rbx], 0FFFFFFFFFFFFFFFFh ; +0x72, 0x18013669a jz short loc_1801366E7 ; +0x76, 0x18013669e cmp qword ptr [rbx], 0FFFFFFFFFFFFFFFEh ; +0x78, 0x1801366a0 jz short loc_1801366E7 ; +0x7c, 0x1801366a4 test byte ptr [rsi], 1 ; +0x7e, 0x1801366a6 jz short loc_1801366E7 ; +0x81, 0x1801366a9 test byte ptr [rsi], 8 ; +0x83, 0x1801366ab jnz short loc_1801366BD ; +0x86, 0x1801366ae mov rcx, [rbx]; hFile ; +0x88, 0x1801366b0 call cs:GetFileType ; +0x8b, 0x1801366b3 test eax, eax ; +0x91, 0x1801366b9 jz short loc_1801366E7 ; +0x93, 0x1801366bb mov rax, rbp ; +0x95, 0x1801366bd lea r8, qword_1801F5160 ; +0x98, 0x1801366c0 mov rcx, rbp ; +0x9f, 0x1801366c7 sar rcx, 6 ; +0xa2, 0x1801366ca and eax, 3Fh ; +0xa6, 0x1801366ce mov rcx, [r8+rcx*8] ; +0xa9, 0x1801366d1 lea rdx, [rax+rax*8] ; +0xad, 0x1801366d5 mov rax, [rbx] ; +0xb1, 0x1801366d9 mov [rcx+rdx*8+28h], rax ; +0xb4, 0x1801366dc mov al, [rsi] ; +0xb9, 0x1801366e1 mov [rcx+rdx*8+38h], al ; +0xbb, 0x1801366e3 inc rbp ; +0xbf, 0x1801366e7 inc rsi ; +0xc2, 0x1801366ea add rbx, 8 ; +0xc5, 0x1801366ed sub rdi, 1 ; +0xc9, 0x1801366f1 jnz short loc_18013669A ; +0xcd, 0x1801366f5 lea r11, [rsp+98h+var_8] ; +0xcf, 0x1801366f7 mov rbx, [r11+10h] ; +0xd7, 0x1801366ff mov rbp, [r11+18h] ; +0xdb, 0x180136703 mov rsi, [r11+20h] ; +0xdf, 0x180136707 mov rdi, [r11+28h] ; +0xe3, 0x18013670b mov rsp, r11 ; +0xe7, 0x18013670f pop r14 ; +0xea, 0x180136712 retn ; +0xec, 0x180136714