Function at 0x401010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2238
call 0x4022a0
mov eax, dword [0x424200]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [0x41c068]
push 0x424054
mov ecx, dword [ebp + 8]
push ecx
call 0x404ce0
add esp, 8
test eax, eax
jne 0x40107c
push 0x424060
mov edx, dword [ebp + 8]
push edx
call 0x404ce0
add esp, 8
test eax, eax
jne 0x40107c
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 8]
push ecx
call 0x4070ab
add esp, 8
test eax, eax
jne 0x401081
jmp 0x401420
push 0x42406c
mov edx, dword [ebp + 8]
push edx
call fcn.00407dc3
add esp, 8
mov dword [ebp - 0x221c], eax
cmp dword [ebp - 0x221c], 0
jne 0x4010a6
jmp 0x401420
push 0x2e
mov eax, dword [ebp + 8]
push eax
call 0x404ba0
add esp, 8
mov dword [ebp - 0x2230], eax
cmp dword [ebp - 0x2230], 0
je 0x4010ea
mov ecx, dword [ebp + 8]
push ecx
push 0x424070
mov edx, dword [ebp - 0x2230]
sub edx, dword [ebp + 8]
add edx, 1
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.004021f0
add esp, 0x10
jmp 0x401107
mov ecx, dword [ebp + 8]
push ecx
push 0x424074
push 0x100
lea edx, [ebp - 0x104]
push edx
call fcn.004021f0
add esp, 0x10
push 0x424078
lea eax, [ebp - 0x104]
push eax
call 0x406e20
add esp, 8
push 0x424080
lea ecx, [ebp - 0x104]
push ecx
call fcn.00407dc3
add esp, 8
mov dword [ebp - 0x2220], eax
cmp dword [ebp - 0x2220], 0
jne 0x401152
mov edx, dword [ebp - 0x221c]
push edx
call fcn.00407cb0
add esp, 4
jmp 0x401420
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x2224]
push eax
call dword [0x41c00c]
test eax, eax
jne 0x401191
mov ecx, dword [ebp - 0x221c]
push ecx
call fcn.00407cb0
add esp, 4
mov edx, dword [ebp - 0x2220]
push edx
call fcn.00407cb0
add esp, 4
jmp 0x401420
lea eax, [ebp - 0x2228]
push eax
push 0
push 0
push 0x800c
mov ecx, dword [ebp - 0x2224]
push ecx
call dword [0x41c028]
test eax, eax
jne 0x4011e4
push 0
mov edx, dword [ebp - 0x2224]
push edx
call dword [0x41c010]
mov eax, dword [ebp - 0x221c]
push eax
call fcn.00407cb0
add esp, 4
mov ecx, dword [ebp - 0x2220]
push ecx
call fcn.00407cb0
add esp, 4
jmp 0x401420
push 0
push 0x20
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x2228]
push eax
call dword [0x41c02c]
test eax, eax
jne 0x40123c
mov ecx, dword [ebp - 0x2228]
push ecx
call dword [0x41c030]
push 0
mov edx, dword [ebp - 0x2224]
push edx
call dword [0x41c010]
mov eax, dword [ebp - 0x221c]
push eax
call fcn.00407cb0
add esp, 4
mov ecx, dword [ebp - 0x2220]
push ecx
call fcn.00407cb0
add esp, 4
jmp 0x401420
lea edx, [ebp - 0x222c]
push edx
push 0
mov eax, dword [ebp - 0x2228]
push eax
push 0x6610
mov ecx, dword [ebp - 0x2224]
push ecx
call dword [0x41c014]
test eax, eax
jne 0x4012a1
mov edx, dword [ebp - 0x2228]
push edx
call dword [0x41c030]
push 0
mov eax, dword [ebp - 0x2224]
push eax
call dword [0x41c010]
mov ecx, dword [ebp - 0x221c]
push ecx
call fcn.00407cb0
add esp, 4
mov edx, dword [ebp - 0x2220]
push edx
call fcn.00407cb0
add esp, 4
jmp 0x401420
mov eax, dword [ebp - 0x2228]
push eax
call dword [0x41c030]
push 0
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov edx, dword [ebp - 0x222c]
push edx
call dword [0x41c01c]
test eax, eax
jne 0x401306
mov eax, dword [ebp - 0x222c]
push eax
call dword [0x41c018]
push 0
mov ecx, dword [ebp - 0x2224]
push ecx
call dword [0x41c010]
mov edx, dword [ebp - 0x221c]
push edx
call fcn.00407cb0
add esp, 4
mov eax, dword [ebp - 0x2220]
push eax
call fcn.00407cb0
add esp, 4
jmp 0x401420
mov ecx, dword [ebp - 0x221c]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x1208]
push edx
call 0x407fb3
add esp, 0x10
mov dword [ebp - 0x2234], eax
cmp dword [ebp - 0x2234], 0
jbe 0x4013da
mov eax, dword [ebp - 0x2234]
mov dword [ebp - 0x2238], eax
push 0x1010
lea ecx, [ebp - 0x2238]
push ecx
lea edx, [ebp - 0x2218]
push edx
push 0
mov eax, dword [ebp - 0x221c]
push eax
call 0x407ce0
add esp, 4
push eax
push 0
mov ecx, dword [ebp - 0x222c]
push ecx
call dword [0x41c024]
test eax, eax
jne 0x4013b6
mov edx, dword [ebp - 0x222c]
push edx
call dword [0x41c018]
push 0
mov eax, dword [ebp - 0x2224]
push eax
call dword [0x41c010]
mov ecx, dword [ebp - 0x221c]
push ecx
call fcn.00407cb0
add esp, 4
mov edx, dword [ebp - 0x2220]
push edx
call fcn.00407cb0
add esp, 4
jmp 0x401420
mov eax, dword [ebp - 0x2220]
push eax
mov ecx, dword [ebp - 0x2238]
push ecx
push 1
lea edx, [ebp - 0x2218]
push edx
call 0x4083b3
add esp, 0x10
jmp 0x401306
mov eax, dword [ebp - 0x222c]
push eax
call dword [0x41c018]
push 0
mov ecx, dword [ebp - 0x2224]
push ecx
call dword [0x41c010]
mov edx, dword [ebp - 0x221c]
push edx
call fcn.00407cb0
add esp, 4
mov eax, dword [ebp - 0x2220]
push eax
call fcn.00407cb0
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call 0x408573
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402284
mov esp, ebp
pop ebp
ret