Function at 0x42b120
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
mov dword [esp + 4], ecx
jne 0x42b137
xor eax, eax
add esp, 0x10
ret 4
mov edx, dword [0x4cf808]
test edx, edx
push esi
mov esi, dword [esp + 0x18]
je 0x42b30d
push ebx
push ebp
push edi
push 1
lea edi, [esi + 0x14]
push edi
lea ebp, [esi + 0x18]
push ebp
push eax
mov dword [esp + 0x20], 0x3e8
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, eax
test ebx, ebx
jne 0x42b1b0
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov dword [esp + 0x24], eax
jne 0x42b1b4
mov ecx, dword [esp + 0x10]
test ecx, ecx
jbe 0x42b1b4
mov ebx, ecx
dec ebx
push 1
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
push 1
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, eax
test ebx, ebx
je 0x42b170
mov eax, dword [esp + 0x24]
test ebx, ebx
mov dword [esi], 0
je 0x42b1d8
mov edx, dword [edi]
mov edi, dword [esi + 0x10]
xor eax, eax
cmp edx, edi
setne al
pop edi
pop ebp
pop ebx
pop esi
dec eax
and eax, 2
add esp, 0x10
ret 4
cmp eax, 0x5aa
jne 0x42b301
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x18], eax
lea eax, [ebx + 1]
shr eax, 1
test ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
jbe 0x42b2e4
jmp 0x42b212
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x42b2e2
cmp eax, ebx
jbe 0x42b222
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x18]
xor eax, eax
mov ecx, ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x30]
push eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ebp
push edi
push ecx
mov dword [edi], 0
mov ecx, dword [eax + 8]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42b2b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x42b287
cmp eax, 0x3e4
jne 0x42b2e2
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
push 1
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x42b2b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5aa
jne 0x42b2e2
mov ecx, dword [esp + 0x24]
inc ecx
shr ecx, 1
mov dword [esp + 0x24], ecx
jmp 0x42b2da
mov eax, dword [edi]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add edx, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
adc ecx, 0
add edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
sub ebx, eax
test ebx, ebx
ja 0x42b20e
test ebx, ebx
jne 0x42b2fa
mov edx, dword [esi + 0x10]
mov dword [edi], edx
pop edi
pop ebp
pop ebx
mov eax, 2
pop esi
add esp, 0x10
ret 4
mov eax, dword [esi + 0x10]
sub eax, ebx
mov dword [edi], eax
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x10
ret 4
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push edx
push eax
call fcn.0042ae20
test al, al
je 0x42b33e
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
mov dword [esi], 0
mov eax, 2
pop esi
add esp, 0x10
ret 4
xor eax, eax
mov dword [esi], eax
pop esi
add esp, 0x10
ret 4