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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4bc1f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x28]
call fcn.0047ddc0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0047fb00
mov byte [ebp - 4], 1
push 0x4b0d5d
lea ecx, [ebp - 0x44]
call fcn.00480250
mov ecx, 0x4c5778
call fcn.00408a60
push eax
lea ecx, [ebp - 0x44]
call fcn.00480340
push 0x4b5348
lea ecx, [ebp - 0x44]
call fcn.00480340
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
call fcn.00480340
push 0
push 0x86
push 3
push 0
push 0
push 0x80000000
lea ecx, [ebp - 0x44]
call fcn.00401020
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffff
jne 0x40a41b
jmp 0x40a4af
push 0
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0048424f
add esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
push 0
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.0040a240
mov eax, dword [ebp + 0xc]
add eax, 0x2e8
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0xc]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.00483ea0
add esp, 4
jmp 0x40a518
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0x4c5778
call fcn.00408180
movzx edx, al
cmp edx, 1
je 0x40a4cb
jmp 0x40a518
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.0044f710
push eax
lea ecx, [ebp - 0x28]
call fcn.00408a40
push eax
mov ecx, dword [ebp - 0x54]
call fcn.0040a240
mov ecx, dword [ebp + 0xc]
add ecx, 0x2e8
push ecx
lea ecx, [ebp - 0x28]
call fcn.0044f710
push eax
lea ecx, [ebp - 0x28]
call fcn.00408a40
push eax
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0xc]
mov edx, dword [eax]
mov eax, dword [edx + 0x24]
call eax
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x2e8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2e8]
mov edx, dword [edx]
mov eax, dword [edx + 0x34]
call eax
push ecx
fldz
fstp dword [esp]
push ecx
fldz
fstp dword [esp]
push ecx
fld dword [ebp + 0x10]
fstp dword [esp]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x2e8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2e8]
mov edx, dword [edx]
mov eax, dword [edx + 0x5c]
call eax
push ecx
fldz
fstp dword [esp]
push ecx
fldz
fstp dword [esp]
push ecx
fldz
fstp dword [esp]
push ecx
fldz
fstp dword [esp]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x2e8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2e8]
mov edx, dword [edx]
mov eax, dword [edx + 0x54]
call eax
mov ecx, dword [ebp + 0xc]
fldz
fstp dword [ecx + 0x2ec]
mov edx, dword [ebp + 0xc]
fldz
fstp dword [edx + 0x2f0]
mov eax, dword [ebp + 0xc]
fldz
fstp dword [eax + 0x2f4]
mov ecx, dword [ebp + 0xc]
fldz
fstp dword [ecx + 0x2f8]
mov edx, dword [ebp + 0xc]
fldz
fstp dword [edx + 0x2fc]
push ecx
fld1
fstp dword [esp]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2e8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x2e8]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x108]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x2e8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2e8]
mov edx, dword [edx]
mov eax, dword [edx + 0xfc]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x2e8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2e8]
mov edx, dword [edx]
mov eax, dword [edx + 0x18]
call eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0047fd10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0047de30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10