Function at 0x40f530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00474030
add esp, 0xc
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x40f56a
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
movzx eax, word [edx + 2]
cmp dword [ebp - 0xc], eax
jge 0x40f59a
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + ecx + 0x14]
cmp eax, dword [ebp - 4]
jae 0x40f598
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + ecx + 0x14]
mov dword [ebp - 4], eax
jmp 0x40f561
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call fcn.00473d90
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 4]
je 0x40f5f2
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
push str.Error_reading_headers___d__d_
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x10
push 0
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40f754
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x3c]
push eax
call fcn.0040f760
add esp, 8
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
jmp 0x40f620
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
movzx eax, word [edx + 2]
cmp dword [ebp - 0xc], eax
jge 0x40f74f
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x18]
cmp dword [edx + ecx + 0x10], 0
jbe 0x40f717
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + eax + 0x10]
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x214]
cmp edx, dword [ecx + eax + 8]
jbe 0x40f67f
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + eax + 8]
mov dword [ebp - 0x214], edx
push 0
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + eax + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00474030
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call fcn.00473d90
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x214]
je 0x40f6f2
mov edx, dword [ebp - 0xc]
push edx
push str.Error_reading_section__d
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40f754
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + ecx + 8]
push eax
call fcn.0040f760
add esp, 8
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
jmp 0x40f74a
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x18]
cmp dword [edx + ecx + 8], 0
je 0x40f74a
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x28
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + edx + 8]
push ecx
call fcn.0040f760
add esp, 8
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
jmp 0x40f617
mov eax, 1
mov esp, ebp
pop ebp
ret