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

Disassembly:
push 0xffffffffffffffff
push 0x54b8e1
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5a5084]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov eax, dword [esp + 0x254]
mov edx, dword [0x5b06b0]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, 0x5b06b0
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
xor esi, esi
push 0x206
lea ecx, [esp + 0x3a]
push esi
mov dword [esp + 0x250], esi
push ecx
mov word [esp + 0x40], si
call fcn.00472a32
add esp, 0xc
push 0x104
lea edx, [esp + 0x38]
push edx
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x34]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40ecb0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x34]
mov ebx, eax
push ecx
lea eax, [esp + 0x1c]
call fcn.00412c00
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
jne 0x40ece2
xor ecx, ecx
jmp 0x40ecf6
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40ece7
sub ecx, esi
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x1c]
call fcn.00412c00
mov edi, dword [esp + 0x18]
push 0x2e
push edi
call dword [sym.imp.MSVCR80.dll_wcsrchr]
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x40ed6a
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x40ed6a
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
call fcn.00412b30
lea edi, [esp + 0x18]
mov byte [esp + 0x248], 1
call fcn.00412ba0
mov byte [esp + 0x248], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
mov edx, dword [0x5b06b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5b06b0
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x250]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x250], 2
fld1
push eax
fstp qword [esp + 0x38]
lea ecx, [esp + 0x24]
push ecx
call fcn.0040ef80
test eax, eax
jne 0x40ee04
mov byte [esp + 0x248], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40edd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x248], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40edfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40ef41
mov esi, dword [esp + 0x1c]
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40ee3e
lea eax, [esi - 0x10]
mov byte [esp + 0x248], bl
lea ecx, [eax + 0xc]
or edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40edca
push ebx
push ebp
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40eee6
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x20], ebx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 0xa]
sub eax, ecx
or eax, edx
jge 0x40ee7a
mov eax, esi
call fcn.00408a10
mov eax, dword [esi]
push ebx
lea ecx, [esp + 0x24]
push ecx
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
cmp esi, ebx
je 0x40eed0
cmp dword [esp + 0x20], edi
jne 0x40eed0
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40eea5
fld qword [esp + 0x2c]
fstp qword [eax]
mov esi, dword [esp + 0x24]
mov eax, edi
call fcn.00407fb0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x1c]
call fcn.0044dd60
lea eax, [esp + 0x18]
call fcn.0044dd60
mov eax, 1
jmp 0x40ef41
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
cmp dword [eax - 8], ebx
jl 0x40ef6b
mov dword [eax - 0xc], ebx
mov edx, dword [ecx]
mov byte [edx], bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x248], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ef14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ef3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004726a1
add esp, 0x238
ret 8
push 0x80070057
call fcn.00408b10
int3