Function at 0x401190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e5c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
je 0x401487
mov eax, dword [esi]
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401487
push 4
lea edi, [esi + 4]
push edi
push ebx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00401140
mov ecx, dword [edi]
shl ecx, 2
push ecx
call fcn.004219de
mov edx, dword [edi]
shl edx, 2
add esp, 4
push edx
mov dword [esi + 8], eax
call fcn.004219de
mov dword [esi + 0x10], eax
mov eax, dword [edi]
shl eax, 2
add esp, 4
push eax
call fcn.004219de
add esp, 4
mov dword [esi + 0xc], eax
mov dword [ebp + 8], 0
mov ecx, dword [ebp + 8]
cmp ecx, dword [edi]
jae 0x401248
push 0x104
call fcn.004219de
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0xc]
add esp, 4
mov dword [edx + ecx*4], eax
inc ecx
mov dword [ebp + 8], ecx
jmp 0x401225
mov eax, dword [edi]
mov ecx, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 0x14]
push edx
shl eax, 2
push eax
push ecx
push ebx
mov dword [ebp + 8], eax
call edi
test eax, eax
je 0x40146c
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x14], eax
jb 0x40146c
xor eax, eax
mov dword [ebp + 8], eax
lea ecx, [ecx]
cmp eax, dword [esi + 4]
lea edx, [ebp - 0x14]
push 0
push edx
jae 0x4012c5
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4]
push 0x104
push eax
push ebx
call edi
test eax, eax
je 0x4012b0
cmp dword [ebp - 0x14], 0x104
jb 0x4012b0
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
jmp 0x401280
push 0x43846c
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0
call fcn.00410b0d
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
shl eax, 2
push eax
push ecx
push ebx
mov dword [ebp + 8], eax
call edi
test eax, eax
je 0x401457
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x14], eax
jb 0x401457
push 0
lea ecx, [ebp + 8]
push ecx
push 0x104
lea edx, [esi + 0x14]
push edx
push ebx
call edi
test eax, eax
je 0x401442
cmp dword [ebp + 8], 0x104
jb 0x401442
push 0
lea eax, [ebp + 8]
push eax
push 1
lea ecx, [esi + 0x118]
push ecx
push ebx
call edi
test eax, eax
je 0x40142d
cmp dword [ebp + 8], 1
jb 0x40142d
push 0
lea edx, [ebp + 8]
push edx
push 0x104
lea eax, [esi + 0x119]
push eax
push ebx
call edi
test eax, eax
je 0x401418
cmp dword [ebp + 8], 0x104
jb 0x401418
push 0
lea ecx, [ebp + 8]
push ecx
push 4
lea edx, [esi + 0x220]
push edx
push ebx
call edi
test eax, eax
je 0x401403
cmp dword [ebp + 8], 4
jb 0x401403
push 0
lea eax, [ebp + 8]
push eax
push 4
lea ecx, [esi + 0x224]
push ecx
push ebx
call edi
test eax, eax
je 0x4013ee
cmp dword [ebp + 8], 4
jb 0x4013ee
push 0
lea edx, [ebp - 0x1c]
push edx
push 0x104
add esi, 0x228
push esi
push ebx
call edi
test eax, eax
je 0x4013d9
cmp dword [ebp - 0x1c], 0x104
jb 0x4013d9
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x43846c
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0
call fcn.00410b0d
push 0x43846c
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], 0
call fcn.00410b0d
push 0x43846c
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], 0
call fcn.00410b0d
push 0x43846c
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0
call fcn.00410b0d
push 0x43846c
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], 0
call fcn.00410b0d
push 0x43846c
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], 0
call fcn.00410b0d
push 0x43846c
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0
call fcn.00410b0d
push 0x43846c
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], 0
call fcn.00410b0d
mov eax, 0x401487
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4