Function at 0x40e450
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
mov eax, 0x47dff8
call fcn.0046a008
mov dword [ebp - 0x14], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00473ee4
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov edx, dword [eax]
call dword [edx + 0x44]
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x14], eax
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp + 0xc]
call fcn.00401fd8
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40e4de
xor eax, eax
push eax
dec dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00473f7c
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40e778
push 0
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x114
jae 0x40e51f
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
push eax
dec dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00473f7c
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40e778
push dword [ebp - 0x38]
call fcn.0046937c
pop ecx
mov dword [ebp - 0x3c], eax
xor ecx, ecx
mov dword [ebp - 0x40], ecx
push 0
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_ReadFile
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x38]
je 0x40e580
push dword [ebp - 0x3c]
call fcn.004691b4
pop ecx
xor eax, eax
push eax
dec dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00473f7c
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40e778
push 0x47deb0
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.0040e174
push 0x114
push 0
lea ecx, [ebp - 0x168]
push ecx
call fcn.00469cbc
add esp, 0xc
push 0x114
push dword [ebp - 0x3c]
lea eax, [ebp - 0x168]
push eax
call fcn.00469c4c
add esp, 0xc
cmp byte [ebp - 0x168], 0x71
jne 0x40e5ea
cmp byte [ebp - 0x167], 0x7a
jne 0x40e5ea
cmp byte [ebp - 0x166], 0x6e
jne 0x40e5ea
cmp byte [ebp - 0x165], 0x65
jne 0x40e5ea
cmp byte [ebp - 0x164], 0x74
je 0x40e616
push dword [ebp - 0x3c]
call fcn.004691b4
pop ecx
xor eax, eax
push eax
dec dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00473f7c
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40e778
mov word [ebp - 0x20], 0x14
lea edx, [ebp - 0x15c]
lea eax, [ebp - 4]
call fcn.00473eac
inc dword [ebp - 0x14]
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
add eax, 0x24
call fcn.00473fac
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00473f7c
mov ecx, dword [ebp - 0x38]
sub ecx, 0x114
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x20], 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x40e67a
mov edx, dword [ebp + 8]
push dword [edx + 0x20]
call fcn.004691b4
pop ecx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x20], eax
push dword [ebp - 0x44]
call fcn.0046937c
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
push dword [ebp - 0x44]
mov ecx, dword [ebp - 0x3c]
add ecx, 0x114
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call fcn.00469c4c
add esp, 0xc
push dword [ebp - 0x3c]
call fcn.004691b4
pop ecx
xor edx, edx
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x44]
xor ecx, ecx
mov dword [ebp - 0x54], ecx
jmp 0x40e748
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
add edx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], edx
add dword [ebp - 0x4c], 0xa8
mov word [ebp - 0x20], 0x20
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x48]
call fcn.00473eac
inc dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00473f7c
mov word [ebp - 0x20], 0x2c
mov edx, dword [ebp - 0x48]
add edx, 0x80
lea eax, [ebp - 0xc]
call fcn.00473eac
inc dword [ebp - 0x14]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00473f7c
inc dword [ebp - 0x54]
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x160]
jl 0x40e6c7
mov eax, 1
push eax
dec dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00473f7c
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret