Function at 0x40eae0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7fe4
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x4f4320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401670
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40eb3f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401640
jmp 0x40f088
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
lea ecx, [ebp + 8]
call fcn.00401670
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40eb7d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401640
jmp 0x40f088
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
add eax, 2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00459a30
add esp, 4
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40ebd4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401640
jmp 0x40f088
mov ecx, dword [ebp - 0x34]
add ecx, 2
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.00479a10
add esp, 0xc
push 0
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
movzx eax, word [edx]
cmp eax, 0xfeff
jne 0x40ec22
mov ecx, dword [ebp - 0x30]
add ecx, 2
mov dword [ebp - 0x48], ecx
jmp 0x40ecc0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x34]
add eax, 2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00459a30
add esp, 4
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x40ec70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401640
jmp 0x40f088
mov ecx, dword [ebp - 0x34]
add ecx, 2
push ecx
push 0
mov edx, dword [ebp - 0x50]
push edx
call fcn.00479a10
add esp, 0xc
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00414670
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x14c], edx
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00459a2b
add esp, 4
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x48], edx
lea ecx, [ebp - 0x2c]
call fcn.00435d50
mov byte [ebp - 4], 1
mov eax, dword [0x4d0298]
mov dword [ebp - 0x3c], eax
mov cx, word [0x4d029c]
mov word [ebp - 0x38], cx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.0047bd84
add esp, 8
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x40ed3c
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x168]
call fcn.00401600
mov byte [ebp - 4], 2
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040f140
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.00401640
lea eax, [ebp - 0x3c]
push eax
push 0
call fcn.0047bd84
add esp, 8
mov dword [ebp - 0x44], eax
jmp 0x40ecf2
lea ecx, [ebp - 0x2c]
call fcn.00437470
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004376d0
jmp 0x40ed6d
push 0
lea edx, [ebp - 0x170]
push edx
lea ecx, [ebp - 0x58]
call fcn.0040f1d0
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041f110
push eax
lea ecx, [ebp - 0x58]
call fcn.0041ed70
movzx ecx, al
test ecx, ecx
je 0x40f06d
push str.sign
lea ecx, [ebp - 0xe4]
call fcn.00457110
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.0040f1b0
mov ecx, eax
call fcn.00401670
push eax
lea ecx, [ebp - 0x140]
call fcn.00401600
mov byte [ebp - 4], 4
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x74]
push eax
call fcn.00414a40
add esp, 8
mov byte [ebp - 4], 5
push 0
push 0x4d02a8
lea ecx, [ebp - 0x74]
call fcn.0040f0d0
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
cmp ecx, dword [0x4e234c]
jne 0x40ee2c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.004015d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x140]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.004571d0
jmp 0x40ed5c
mov edx, dword [ebp - 0x120]
push edx
push 0
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040f100
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x11c]
call fcn.004017e0
push eax
push str.code
lea ecx, [ebp - 0xe4]
call fcn.00457240
mov ecx, dword [ebp - 0x120]
add ecx, 1
push ecx
push 0x4d02b4
lea ecx, [ebp - 0x74]
call fcn.0040f0d0
mov dword [ebp - 0x124], eax
mov edx, dword [ebp - 0x124]
cmp edx, dword [0x4e234c]
jne 0x40eecd
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x11c]
call fcn.004015d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.004015d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x140]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.004571d0
jmp 0x40ed5c
mov eax, dword [ebp - 0x124]
sub eax, dword [ebp - 0x120]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x120]
add ecx, 1
push ecx
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x74]
call fcn.0040f100
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x90]
call fcn.004017e0
push eax
push str.text
lea ecx, [ebp - 0xe4]
call fcn.00457240
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
add ecx, 1
push ecx
push 0x4d02c0
lea ecx, [ebp - 0x74]
call fcn.0040f0d0
mov dword [ebp - 0x124], eax
mov edx, dword [ebp - 0x124]
cmp edx, dword [0x4e234c]
jne 0x40efb9
lea ecx, [ebp - 0x74]
call fcn.00441060
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x120]
add eax, 1
cmp dword [ebp - 0x124], eax
jg 0x40efb9
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
call fcn.004015d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x11c]
call fcn.004015d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.004015d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x140]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.004571d0
jmp 0x40ed5c
mov ecx, dword [ebp - 0x124]
sub ecx, dword [ebp - 0x120]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x120]
add edx, 1
push edx
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040f100
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x100]
call fcn.004017e0
push eax
push 0x4d02c4
lea ecx, [ebp - 0xe4]
call fcn.00457240
lea ecx, [ebp - 0xe4]
push ecx
mov ecx, dword [ebp + 0x24]
call fcn.00455ba0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x100]
call fcn.004015d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
call fcn.004015d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x11c]
call fcn.004015d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.004015d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x140]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.004571d0
jmp 0x40ed5c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040d070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047a020
mov esp, ebp
pop ebp
ret 0x20