Function at 0x42bf40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jne 0x42bf99
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x18]
xor ecx, ecx
add eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
adc edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x14]
push eax
call fcn.0040ee54
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x42bffd
mov dword [ebp - 0x14], 8
cmp dword [ebp - 0x14], 0
jne 0x42c03c
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x10]
je 0x42c03c
mov dword [ebp - 0x14], 0x27
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x14]
add ecx, 0x64
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040ee54
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 0x14], 0
jne 0x42c0f9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x1c]
and edx, 0x200
je 0x42c08f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0042ae20
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x1c]
and ecx, 0x100
je 0x42c0e5
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
mov eax, dword [eax + 0x10]
cmp eax, dword [edx + 0x14]
jae 0x42c0e5
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0042b0b0
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 4]
jbe 0x42c0e3
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
jmp 0x42c0f9
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0040e940
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x42c148
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.0042bbc0
add esp, 0x20
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x20], 0
je 0x42c15a
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0040c3d4
add esp, 4
cmp dword [ebp - 8], 0
je 0x42c16c
mov edx, dword [ebp - 8]
push edx
call fcn.0040c3d4
add esp, 4
xor eax, eax
cmp dword [ebp - 0x14], 0
sete al
mov esp, ebp
pop ebp
ret 0xc