Function at 0x466b70
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, eax
mov ebx, edx
sub esp, 0x2c
mov eax, dword [edx + 0x2c]
test ah, 1
je 0x466d60
test eax, 0x20000
jne 0x466d10
cmp dword [ebx + 0x94], 0xffffffff
je 0x466d39
mov edx, dword [ebx + 0x2c]
lea edi, [ebx + 0x44]
test edx, 0x1000000
je 0x466bf0
mov dword [esp + 8], 0x10
mov dword [esp + 4], edi
mov dword [esp], 0x4667c0
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
sub esp, 0xc
test eax, eax
je 0x466cc2
mov eax, ebx
call fcn.00466af0
or dword [ebx + 0x2c], 0x20000
add dword [ebx + 0x3c], 1
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x64]
and edx, 0x100000
mov dword [ebx + 0x64], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
je 0x466c2a
mov edx, dword [ebx + 0x80]
or edx, 1
mov dword [ebx + 0x74], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x94]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6ab5cc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x466d84
test byte [ebx + 0x2e], 0x10
je 0x466bd1
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x466dc0
cmp dword [ebx + 0x84], 0xffffffff
jne 0x466bd1
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x4682d0
mov dword [esp + 4], eax
lea eax, [ebx + 0x84]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
sub esp, 0x18
test eax, eax
jne 0x466bd1
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
test eax, eax
jle 0x466da0
call ebp
movzx eax, ax
or eax, 0x80070000
mov dword [ebx + 0x64], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x7c], 0
test eax, eax
je 0x466db0
mov edx, dword [eax + 0x38]
mov dword [ebx + 0x7c], edx
mov dword [eax + 0x38], edi
mov dword [esi + 0x28], edi
or dword [ebx + 0x2c], 0x20000
add dword [ebx + 0x3c], 1
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x43f
mov dword [esp + 4], str.src_win_pipe.c
mov dword [esp], 0x6453ac
call fcn.004a0380
cmp dword [ebx + 0x94], 0xffffffff
jne 0x466b9f
mov dword [esp + 8], 0x441
mov dword [esp + 4], str.src_win_pipe.c
mov dword [esp], str.handle__handle___INVALID_HANDLE_VALUE
call fcn.004a0380
jmp 0x466b9f
mov dword [esp + 8], 0x43e
mov dword [esp + 4], str.src_win_pipe.c
mov dword [esp], 0x645388
call fcn.004a0380
mov eax, dword [ebx + 0x2c]
jmp 0x466b87
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
je 0x466c60
jmp 0x466cc8
call ebp
jmp 0x466cdc
mov dword [ebx + 0x7c], edi
mov dword [esi + 0x28], edi
jmp 0x466cfd
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
sub esp, 0x10
test eax, eax
mov dword [ebx + 0x80], eax
jne 0x466c78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], 0x6453ff
mov dword [esp], eax
call fcn.0045b880
lea esi, [esi]
push edi
push esi
push ebx
sub esp, 0x30
mov ebx, dword [esp + 0x40]
cmp dword [ebx + 4], 3
mov esi, dword [ebx + 0x44]
mov edi, dword [esi + 4]
je 0x466e42
mov dword [esp + 8], 0x401
mov dword [esp + 4], str.src_win_pipe.c
mov dword [esp], str.req__type__UV_WRITE
call fcn.004a0380
cmp dword [esi + 8], 7
je 0x466e64
mov dword [esp + 8], 0x402
mov dword [esp + 4], str.src_win_pipe.c
mov dword [esp], str.handle__type__UV_NAMED_PIPE
call fcn.004a0380
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x466ef0
lea edx, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov edx, dword [ebx + 0x4c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [esi + 0x94]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x466ed5
add ebx, 0x20
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
sub esp, 0x10
test eax, eax
je 0x466f18
add esp, 0x30
xor eax, eax
pop ebx
pop esi
pop edi
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x466f14
call esi
movzx eax, ax
or eax, 0x80070000
mov dword [ebx + 0x20], eax
jmp 0x466ea0
mov dword [esp + 8], 0x403
mov dword [esp + 4], str.src_win_pipe.c
mov dword [esp], str.req__write_buffer.base
call fcn.004a0380
mov eax, dword [ebx + 0x50]
jmp 0x466e6f
call esi
jmp 0x466eeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], 0x64536d
mov dword [esp], eax
call fcn.0045b880
nop