Function at 0x4754f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 4
push 0x14
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00453b10
add esp, 0xc
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
push 4
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4755ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4755ad
jmp 0x47570f
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x24]
push eax
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4755d0
jmp 0x47570f
push 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4755fb
cmp dword [ebp - 0x44], 4
jne 0x4755fb
cmp dword [ebp - 0x40], 0
jne 0x475605
jmp 0x47570f
cmp dword [ebp - 0x40], 0x6400000
jbe 0x475618
jmp 0x47570f
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x40]
add edx, 1
push edx
call fcn.0044e86a
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x475686
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x475686
jmp 0x47570f
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x24]
push eax
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4756a3
jmp 0x47570f
push 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4756c8
cmp dword [ebp - 0x44], 0
jne 0x4756cc
jmp 0x47570f
mov edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x40]
jne 0x4756d9
jmp 0x4756ef
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov ecx, 1
test ecx, ecx
jne 0x475637
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x40]
mov byte [edx], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x40]
mov dword [edx], eax
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], 0
jne 0x47572d
cmp dword [ebp - 0x3c], 0
je 0x47572d
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00450fe2
add esp, 4
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret 8