Function at 0x40c16f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 0xa
xor edx, edx
mov ecx, dword [edi + 0x14]
pop esi
mov eax, ecx
xor ebx, ebx
div esi
mov edx, 0x186a0
mov dword [ebp - 0xc], ebx
cmp eax, edx
jae 0x40c199
mov dword [ebp - 0x1c], edx
jmp 0x40c19f
shr ecx, 2
mov dword [ebp - 0x1c], ecx
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
push ebx
push dword [ebp + 0xc]
call fcn.0042bd20
add esp, 0xc
lea eax, [ebp - 4]
push ebx
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 4
mov ecx, edi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call fcn.0040d11a
cmp dword [ebp - 0x10], ebx
je 0x40c371
cmp dword [ebp - 4], 4
jne 0x40c371
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x1c]
ja 0x40c371
push 1
push ebx
push 0xfffffffffffffffd
push dword [ebp + 8]
call esi
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, edi
call fcn.0040bfc1
test eax, eax
je 0x40c1b3
push 1
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
call esi
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, edi
call fcn.0040c781
push dword [edi + 0x11c]
call fcn.0043d181
pop ecx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 4]
push ebx
push ecx
mov ecx, dword [edi + 0x11c]
sub ecx, 5
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
add eax, 0xfffffffc
test eax, eax
jbe 0x40c2ae
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push 4
push str.Xing
push dword [ebp - 8]
call fcn.0042c760
add esp, 0xc
test eax, eax
je 0x40c357
push 4
push str.VBRI
push dword [ebp - 8]
call fcn.0042c760
add esp, 0xc
test eax, eax
je 0x40c357
mov eax, dword [ebp - 4]
inc dword [ebp - 0x10]
inc dword [ebp - 8]
add eax, 0xfffffffc
cmp dword [ebp - 0x10], eax
jb 0x40c269
push dword [ebp - 0x18]
call fcn.0043d1aa
mov eax, dword [ebp - 4]
pop ecx
push 1
push ebx
neg eax
push eax
push dword [ebp + 8]
call esi
mov eax, dword [edi + 0x11c]
push 1
dec eax
push ebx
push eax
push dword [ebp + 8]
call esi
mov dword [ebp - 8], ebx
push 4
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0042bd20
add esp, 0xc
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 4
push eax
mov ecx, edi
call fcn.0040d11a
cmp dword [ebp - 0x10], ebx
je 0x40c371
cmp dword [ebp - 4], 4
jne 0x40c371
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.0040bfc1
test eax, eax
jne 0x40c360
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi + 0x11c]
push ebx
push ebx
add eax, dword [ecx]
add eax, dword [ebp - 8]
push eax
push dword [ebp + 8]
call esi
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jl 0x40c2d8
mov eax, dword [ebp + 0x10]
push ebx
push ebx
mov eax, dword [eax]
inc eax
push eax
push dword [ebp + 8]
call esi
jmp 0x40c1a5
push dword [ebp - 0x18]
call fcn.0043d1aa
pop ecx
mov eax, dword [ebp + 0x10]
push ebx
push ebx
push dword [eax]
push dword [ebp + 8]
call esi
push 1
pop eax
jmp 0x40c373
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc