Function at 0x4216f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b76e0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x28]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x48]
mov dword [ebp - 0x10], 0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
test eax, eax
je 0x421746
cmp esi, eax
cmova esi, eax
mov dword [ebp + 0xc], esi
mov eax, dword [edi + 8]
lea ebx, [edi + 8]
mov ecx, ebx
mov dword [ebp - 0x18], vtable.AutoLock.0
mov dword [ebp - 0x14], ebx
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x42188f
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
mov dword [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x421817
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x421824
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4217b9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp + 0xc], 0
mov ecx, ebx
mov eax, dword [ebx]
mov dword [ebp - 0x18], vtable.AutoLock.0
mov dword [ebp - 0x14], ebx
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4218b1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4218b1
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 5
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4218aa
jmp 0x421874
lea ecx, [ebp - 0x38]
call fcn.00403170
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 6
push dword [ebp + 0xc]
push dword [edi + 0x44]
push dword [edi + 0x40]
push esi
push str.The_Pipes_write_function_failed_after_ReadFile_calling_pipe_handle_is__p__total_read__llu__try_to_read__u_
push eax
call fcn.00403a90
add esp, 0x18
lea ecx, [ebp - 0x28]
call fcn.00403170
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.00403320
lea edx, [ebp - 0x28]
mov ecx, eax
call fcn.0041c950
lea ecx, [ebp - 0x28]
jmp 0x4218f0
add dword [edi + 0x40], eax
adc dword [edi + 0x44], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.Invalid_pipe_handle
lea ecx, [ebp - 0x3c]
call fcn.004502d0
push 0x4f7ab0
lea eax, [ebp - 0x3c]
push eax
call fcn.00498838
push str.Unknown_pipe_error
jmp 0x4218f6
lea ecx, [ebp - 0x28]
call fcn.00403170
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push str.The_Pipes_read_function_failed_after_GetOverlappedResult_calling__pipe_handle_is__p_
push eax
call fcn.00403a90
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.00403170
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00403320
lea edx, [ebp - 0x38]
mov ecx, eax
call fcn.0041c950
lea ecx, [ebp - 0x38]
call fcn.00403320
push eax
lea ecx, [ebp - 0x64]
call fcn.004502d0
push 0x4f7ab0
lea eax, [ebp - 0x64]
push eax
call fcn.00498838
int3