Function at 0x402170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
push 0x4420d8
mov eax, dword [ebp + 8]
push eax
call fcn.0040eb28
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jne 0x4021af
push 0x4421b4
call fcn.0040f5db
add esp, 4
or eax, 0xffffffff
jmp 0x4023f9
cmp dword [ebp + 0xc], 0
jne 0x4021ca
push 0x4421a0
call fcn.0040f5db
add esp, 4
or eax, 0xffffffff
jmp 0x4023f9
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp + 0x10]
jg 0x4023d2
mov dword [ebp - 0x18], 0
jmp 0x4021e8
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x14]
jge 0x40227b
push 1
push 0x100
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040e7d9
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
push 1
push 0x100
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x208
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
lea eax, [edx + eax + 0x100]
push eax
call fcn.00411374
add esp, 0x10
push 1
push 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040e7d9
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
push 1
push 4
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x208
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
lea eax, [edx + eax + 0x204]
push eax
call fcn.00411374
add esp, 0x10
push 1
push 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040e7d9
add esp, 0xc
jmp 0x4021df
push 0x101
call fcn.0040ef91
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.0040e7d9
add esp, 0xc
push 1
mov ecx, dword [ebp + 0x10]
imul ecx, ecx, 0x208
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0040e7d9
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4022cb
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
sub ecx, 1
cmp dword [ebp - 4], ecx
jge 0x4022fc
push 1
mov edx, dword [ebp - 4]
imul edx, edx, 0x208
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + edx + 0x204]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0040e7d9
add esp, 0xc
jmp 0x4022c2
mov ecx, dword [ebp + 0x14]
sub ecx, 1
imul ecx, ecx, 0x208
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
lea ecx, [eax + ecx + 0x100]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040ee80
add esp, 8
push eax
call fcn.0040ee90
add esp, 8
mov ecx, dword [ebp + 0x14]
sub ecx, 1
imul ecx, ecx, 0x208
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
lea ecx, [eax + ecx + 0x100]
push ecx
push 0x44219c
call fcn.0040f5db
add esp, 8
push 0x442134
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040eb28
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
jmp 0x40237a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
sub ecx, 1
imul ecx, ecx, 0x208
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov edx, dword [ebp - 4]
cmp edx, dword [eax + ecx + 0x204]
jge 0x4023b8
mov eax, dword [ebp - 8]
push eax
call fcn.0040f9ad
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040f72f
add esp, 8
jmp 0x402371
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040e6d6
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004114e9
add esp, 4
jmp 0x4023e8
mov edx, dword [ebp + 0x14]
push edx
push 0x4421d4
call fcn.0040f5db
add esp, 8
or eax, 0xffffffff
jmp 0x4023f9
mov eax, dword [ebp - 8]
push eax
call fcn.0040e6d6
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10