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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527f91
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
mov dword [ebp - 0x254], ecx
lea ecx, [ebp - 0x230]
call fcn.0040c630
mov dword [ebp - 4], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.004b3d60
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x230]
call fcn.0040ae00
lea ecx, [ebp - 0x230]
call fcn.00423af0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040ae00
push 0x2e
lea ecx, [ebp - 0x230]
call fcn.0040b2a0
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
je 0x47d9a8
mov eax, dword [ebp - 0x228]
push eax
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040b4a0
mov dword [ebp - 0x258], eax
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x230]
call fcn.00408510
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.0040c650
lea ecx, [ebp - 0x238]
call fcn.0040c630
mov byte [ebp - 4], 2
fld1
fstp qword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp - 0x254]
call fcn.0047d470
test eax, eax
jne 0x47da1b
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.0040c650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040c650
mov eax, dword [ebp - 0x244]
jmp 0x47db9c
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x238]
call fcn.00423af0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0xffffffff
jne 0x47da84
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.0040c650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040c650
mov eax, dword [ebp - 0x248]
jmp 0x47db9c
mov dword [ebp - 0x234], 0
push 0
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x47db5c
mov dword [ebp - 0x23c], 0
push 0
lea ecx, [ebp - 0x23c]
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.0040e4b0
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x47db52
mov edx, dword [ebp - 0x23c]
cmp edx, dword [ebp - 0x10]
jne 0x47db52
cmp dword [ebp + 0x14], 0
je 0x47db06
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.00416780
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.0040c650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040c650
mov eax, dword [ebp - 0x24c]
jmp 0x47db9c
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00416780
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x250], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.0040c650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040c650
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10