Function at 0x42b620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fd7b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x439360]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], 0
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], edx
push 1
mov eax, dword [ebp - 0x28]
add eax, 0x140
push eax
lea ecx, [ebp - 0x20]
call fcn.0042aa20
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [edx + 0x10]
add edx, dword [ecx + 0x18]
cmp dword [ebp + 0xc], edx
jb 0x42b6ac
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401390
mov eax, dword [ebp - 0x70]
jmp 0x42bba6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [edx + 0x10]
add edx, dword [ecx + 0x18]
sub edx, dword [ebp + 0xc]
cmp dword [ebp + 0x14], edx
jbe 0x42b6de
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ecx + 0x10]
add ecx, dword [eax + 0x18]
sub ecx, dword [ebp + 0xc]
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x14]
add ecx, 0x64
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x1c]
and ecx, 0x200
jne 0x42b8fa
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x1c]
and ecx, 0x100
jne 0x42b8fa
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x18]
xor edx, edx
add ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
adc eax, edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
push 0
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x42b7af
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42b7af
push 0x36cf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401390
mov eax, dword [ebp - 0x74]
jmp 0x42bba6
mov byte [ebp - 0x39], 0
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x42b7ee
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x30]
je 0x42b7f2
mov byte [ebp - 0x39], 1
movzx ecx, byte [ebp - 0x39]
test ecx, ecx
jne 0x42b81c
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x78], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401390
mov eax, dword [ebp - 0x78]
jmp 0x42bba6
push 0
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x1000
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0x14]
jae 0x42b8dd
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp - 0x30]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0x1000
jle 0x42b878
mov dword [ebp - 0x50], 0x1000
mov dword [ebp - 0x58], 0
push 0
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x42b8b1
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp - 0x58]
je 0x42b8cf
mov dword [ebp - 0x7c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401390
mov eax, dword [ebp - 0x7c]
jmp 0x42bba6
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x58]
mov dword [ebp - 0x30], edx
jmp 0x42b857
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401390
mov eax, dword [ebp - 0x80]
jmp 0x42bba6
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040ee54
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040ee54
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42baf0
cmp dword [ebp - 0x24], 0
je 0x42baf0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x18]
xor eax, eax
add edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
adc ecx, eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], ecx
push 0
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0xffffffff
jne 0x42b9bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42b9bd
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040c3d4
add esp, 4
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0040c3d4
add esp, 4
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401390
mov eax, dword [ebp - 0x84]
jmp 0x42bba6
push 0
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x42b9ec
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x30]
je 0x42ba28
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040c3d4
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040c3d4
add esp, 4
mov dword [ebp - 0x88], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401390
mov eax, dword [ebp - 0x88]
jmp 0x42bba6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x1c]
and eax, 0x200
je 0x42ba52
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0042ae20
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x1c]
and edx, 0x100
je 0x42bad4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ecx + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x42bad4
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0042b0b0
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x14]
jbe 0x42baa0
mov edx, dword [ebp - 0x14]
mov dword [ebp + 0x14], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ecx + 0x14]
add ecx, dword [eax + 0x18]
sub ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x14], ecx
jbe 0x42bad2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [eax + 0x14]
add eax, dword [edx + 0x18]
sub eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
jmp 0x42baee
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040e940
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov dword [ebp + 0x14], ecx
jmp 0x42bb35
cmp dword [ebp - 0x10], 0
je 0x42bb02
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040c3d4
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x42bb14
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040c3d4
add esp, 4
mov dword [ebp - 0x8c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401390
mov eax, dword [ebp - 0x8c]
jmp 0x42bba6
cmp dword [ebp - 0x10], 0
je 0x42bb47
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040c3d4
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x42bb76
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
sub ecx, dword [eax + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040e940
add esp, 0xc
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x24], 0
je 0x42bb88
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040c3d4
add esp, 4
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401390
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10