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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f191
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5f30a8]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], ecx
lea ecx, [ebp - 0x238]
call fcn.0041e820
mov dword [ebp - 4], 0
mov word [ebp - 0x22c], 0
push 0x206
push 0
lea eax, [ebp - 0x22a]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0x238]
call fcn.0041e5a0
lea ecx, [ebp - 0x238]
call fcn.00472880
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x238]
call fcn.0041e5a0
push 0x2e
lea ecx, [ebp - 0x238]
call fcn.0041cc80
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0xffffffff
je 0x416325
mov eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x238]
call fcn.0041cc00
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x264], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x264]
push eax
lea ecx, [ebp - 0x238]
call fcn.00409010
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.0041e800
lea ecx, [ebp - 0x240]
call fcn.0041e820
mov byte [ebp - 4], 2
fld1
fstp qword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x238]
push edx
mov ecx, dword [ebp - 0x25c]
call fcn.00416540
test eax, eax
jne 0x416398
mov dword [ebp - 0x24c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.0041e800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0041e800
mov eax, dword [ebp - 0x24c]
jmp 0x416519
push 0
push 0x80
push 3
push 0
push 1
push bind
lea ecx, [ebp - 0x240]
call fcn.00472880
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x416401
mov dword [ebp - 0x250], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.0041e800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0041e800
mov eax, dword [ebp - 0x250]
jmp 0x416519
mov dword [ebp - 0x23c], 0
push 0
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4164d9
mov dword [ebp - 0x244], 0
push 0
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xa
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0041d270
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x4164cf
mov edx, dword [ebp - 0x244]
cmp edx, dword [ebp - 0x10]
jne 0x4164cf
cmp dword [ebp + 0x14], 0
je 0x416483
mov eax, dword [ebp + 0x14]
fld qword [ebp - 0x1c]
fstp qword [eax]
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0041d240
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x254], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.0041e800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0041e800
mov eax, dword [ebp - 0x254]
jmp 0x416519
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0041d240
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x258], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.0041e800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0041e800
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004a1f8d
mov esp, ebp
pop ebp
ret 0x10