Function at 0x40c4e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 0xeb7bf6
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c52b
mov ecx, dword [ebp + 0xc]
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push 2
push ebx
mov edi, 0xfffffffc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 4]
push edx
push 4
lea eax, [ebp - 0x10]
push eax
push esi
call ebx
cmp dword [ebp - 0x10], 0xeb7bf6
je 0x40c591
push 2
push 0
dec edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp edi, 0xfffe7960
jg 0x40c542
cmp dword [ebp - 0x10], 0xeb7bf6
je 0x40c591
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [ecx], 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
push 2
push 0
sub edi, 4
push edi
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 4]
push edx
push 4
lea eax, [ebp + 8]
push eax
push esi
call ebx
sub edi, dword [ebp + 8]
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
push 0
lea ecx, [ebp - 4]
push ecx
push edx
add eax, 0x14
push eax
push esi
call ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
push 2
xor edx, edx
push edx
sub edi, 4
push edi
shr ecx, 1
push esi
mov word [eax + ecx*2 + 0x14], dx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 8]
push 0
lea ecx, [ebp - 4]
push ecx
push 4
add edx, 0x48
push edx
push esi
call ebx
push 2
push 0
sub edi, 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [ebp + 8]
push ecx
push esi
call ebx
sub edi, dword [ebp + 8]
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push 0
lea edx, [ebp - 4]
push edx
push eax
add ecx, 0x4c
push ecx
push esi
call ebx
push 2
push 0
sub edi, 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
xor ecx, ecx
push ecx
add eax, 4
lea edx, [ebp - 4]
push edx
push 0x10
mov dword [eax], ecx
mov dword [eax + 4], ecx
push eax
mov dword [eax + 8], ecx
push esi
mov dword [eax + 0xc], ecx
call ebx
push 2
push 0
sub edi, 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
push 0
lea ecx, [ebp - 4]
push ecx
push 4
add eax, 0x1376c
push eax
push esi
call ebx
push 2
push 0
sub edi, 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 4]
push edx
push 4
lea eax, [ebp - 0x18]
push eax
push esi
call ebx
sub edi, dword [ebp - 0x18]
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
cmp dword [eax + 0x1376c], ecx
jle 0x40c782
mov dword [ebp - 0x14], ecx
mov ecx, eax
add ecx, 0xb50
mov dword [ebp - 0xc], ecx
push 0
lea edx, [ebp - 4]
push edx
push 4
lea eax, [ebp - 0x1c]
push eax
push esi
call ebx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
push 0
lea ecx, [ebp - 4]
push ecx
push edx
add eax, 0xfffffcfc
push eax
push esi
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
shr ecx, 1
add ecx, dword [ebp - 0x14]
xor edx, edx
push edx
mov word [eax + ecx*2 + 0x84c], dx
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push 4
push edx
push esi
call ebx
mov ecx, dword [ebp - 0xc]
push 0
lea eax, [ebp - 4]
push eax
push 4
add ecx, 0xfffffffc
push ecx
push esi
call ebx
mov edx, dword [ebp - 0xc]
push 0x41768c
add edx, 0xfffffdfc
push 0x100
push edx
call fcn.0040dce2
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
add dword [ebp - 0x14], 0x184
add dword [ebp - 0xc], 0x308
inc eax
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp eax, dword [ecx + 0x1376c]
jl 0x40c6e8
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8