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

Disassembly:
sub esp, 0x114
mov eax, dword [0x49b470]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
mov edi, ecx
cmp ebp, 0xff
jne 0x42b4c3
cmp dword [edi + 0x40c], ebp
je 0x42b6f8
push 1
push ebp
mov esi, edi
call fcn.0042b940
jmp 0x42b6f8
push ebx
lea ebx, [ebp*8]
sub ebx, ebp
mov ecx, dword [ebx*8 + 0x4a40f4]
mov edx, dword [ebx*8 + 0x4a40f0]
mov eax, dword [ebx*8 + 0x4a40fc]
lea ebx, [ebx*8 + 0x4a40f0]
push ecx
push edx
push eax
mov eax, dword [ebx + 8]
push eax
push ecx
lea esi, [edi + 0x100]
push edx
lea eax, [edi + 0x220]
mov ecx, esi
call fcn.00408dc0
cmp ebp, dword [edi + 0x408]
je 0x42b52d
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
push ecx
mov ecx, dword [ebx + 0xc]
push edx
mov edx, dword [ebx + 8]
lea eax, [edi + 0x280]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
jmp 0x42b6bf
cmp dword [esp + 0x12c], 0
jne 0x42b6a4
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
push ecx
mov ecx, dword [ebx + 0xc]
push edx
mov edx, dword [ebx + 8]
lea eax, [edi + 0x280]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
mov eax, dword [ebx]
mov ecx, esi
call fcn.0040a1b0
cmp ebp, 9
jg 0x42b580
mov eax, dword [edi + 0x404]
lea ecx, [eax + eax*4]
push 1
lea edx, [ebp + ecx*2]
push edx
mov esi, edi
call fcn.0042b940
jmp 0x42b6c8
cmp ebp, 0x17
jne 0x42b6c8
push 0x65
push 0x4b3848
lea eax, [esp + 0x20]
push str._s_save_file_02dc.dat
push eax
xor ebp, ebp
call fcn.0045f116
add esp, 0x10
push ebp
push 0x80
push 3
push ebp
push 1
push DirectSoundCreate
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42b63f
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [edi + 0x3b0]
push ebp
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b62c
cmp dword [esp + 0x10], ebp
je 0x42b62c
mov eax, dword [0x4a45d4]
mov ecx, dword [0x4a45d0]
mov edx, dword [0x4a45cc]
push eax
push ecx
mov ecx, dword [0x4a45c8]
push edx
mov edx, dword [0x4a45c4]
push ecx
mov ecx, dword [0x4a45c0]
push edx
push ecx
lea eax, [edi + 0x3a0]
mov ecx, esi
call fcn.00408dc0
mov ebp, 1
test ebx, ebx
je 0x42b637
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x42b6f0
mov edx, dword [0x4a45c4]
mov eax, dword [0x4a45c0]
mov ecx, dword [0x4a45cc]
push edx
mov edx, dword [0x4a45c8]
push eax
push ecx
push edx
push 0
lea ebx, [edi + 0x3a0]
push 0
lea eax, [edi + 0x220]
mov ecx, ebx
call fcn.00408dc0
mov eax, dword [0x4a45d4]
mov ecx, dword [0x4a45d0]
mov edx, dword [0x4a45cc]
push eax
mov eax, dword [0x4a45c8]
push ecx
mov ecx, dword [0x4a45c4]
push edx
mov edx, dword [0x4a45c0]
push eax
push ecx
push edx
mov eax, ebx
mov ecx, esi
call fcn.00408dc0
jmp 0x42b6f0
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
push eax
mov eax, dword [ebx + 0xc]
push ecx
mov ecx, dword [ebx + 8]
lea edx, [edi + 0x280]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
mov eax, dword [ebx]
mov ecx, esi
call fcn.0040a1b0
cmp ebp, 9
jg 0x42b6d0
push ebp
jmp 0x42b6f2
cmp ebp, 0x13
jg 0x42b6eb
add ebp, 0xfffffff6
cmp dword [edi + 0x404], ebp
jne 0x42b6f7
mov esi, ebx
mov eax, edi
call fcn.0042bae0
jmp 0x42b6f7
cmp ebp, 0x17
jne 0x42b6f7
push 0x17
call fcn.0042b340
pop ebx
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0045f0aa
add esp, 0x114
ret 8