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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x628d00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea edi, [esi + 0x3004]
push edi
push 0
call fcn.0040294b
test eax, eax
js 0x480765
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0x80004005
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x480762
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x480603
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x480603
mov edx, dword [ebp - 0x34]
push 0
lea ecx, [ebp - 0x68]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x480603
mov dword [ebp - 0x30], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0
jl 0x480762
mov ecx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov eax, dword [edi]
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x48], 0x4030c6
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x64], 0xfa
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push ecx
push eax
call edx
test eax, eax
js 0x480765
mov ecx, dword [edi]
lea eax, [esi + 0x3260]
push eax
push ecx
call fcn.004036a2
add esp, 8
mov dword [ebp - 0x30], eax
test eax, eax
js 0x480765
mov eax, dword [edi]
mov edx, dword [eax]
push str.Global
push eax
mov eax, dword [edx + 0x44]
call eax
mov word [esi + 0x34a8], ax
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push str.Sound_FX
push eax
call edx
mov word [esi + 0x34aa], ax
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push str.Loop_Sound_FX
push eax
call edx
mov word [esi + 0x34ac], ax
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push str.Music
push eax
call edx
mov word [esi + 0x34ae], ax
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push str.Dialog
push eax
call edx
push 0x30
lea ebx, [esi + 0x3274]
push 0
push ebx
mov word [esi + 0x34b0], ax
call fcn.00531690
mov edi, dword [edi]
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
push edi
call edx
movzx eax, word [ebp - 0x2a]
mov dword [esi + 0x3280], eax
xor ecx, ecx
add eax, eax
mov edx, 4
mul edx
seto cl
mov dword [esi + 0x327c], 2
neg ecx
or ecx, eax
push ecx
call fcn.00531bf4
mov ecx, dword [esi + 0x327c]
imul ecx, dword [esi + 0x3280]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push eax
mov dword [ebx], eax
call fcn.00531690
add esp, 0x10
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00531be5
mov esp, ebp
pop ebp
ret 4