Function at 0x418140
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f81a
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x5750c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
push str.Sound_Win32Project_Win_FruitNinja
push str._s.xwb
lea edx, [ebp - 0x114]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], ebx
call fcn.004166b0
add esp, 8
test byte [0x5bd5d8], 1
jne 0x4181c7
or dword [0x5bd5d8], 1
mov dword [ebp - 4], 0
call fcn.0042f9f0
push 0x52b6f0
call fcn.0045f177
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5bd2a8]
mov esi, dword [eax]
mov edi, eax
cmp esi, eax
je 0x4181ef
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x114]
push eax
call edx
test al, al
jne 0x4181f9
mov esi, dword [esi]
cmp esi, edi
jne 0x4181d4
mov eax, 0x80004005
jmp 0x418498
push 0
push 0
push 3
push 0
push 1
push Ordinal_3
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x418299
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x41828c
push 0
push edi
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov dword [ebp - 0x120], ebx
test ebx, ebx
je 0x41828c
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0x118]
mov dword [edx + 0xc], eax
test eax, eax
je 0x418285
mov ecx, dword [ebp - 0x11c]
mov ecx, dword [ecx + 0x30]
mov ebx, dword [ecx]
add edx, 8
push edx
mov edx, dword [ebx + 0x28]
push 0
push 0
push edi
push eax
push ecx
call edx
mov ebx, dword [ebp - 0x120]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x118]
push str.Sound_Win32Project_Win_FruitNinja
push str._sstream.xwb
lea edx, [ebp - 0x114]
call fcn.004166b0
add esp, 8
test byte [0x5bd5d8], 1
jne 0x4182e1
mov eax, 1
or dword [0x5bd5d8], eax
mov dword [ebp - 4], eax
call fcn.0042f9f0
push 0x52b6f0
call fcn.0045f177
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5bd2a8]
mov esi, dword [eax]
mov edi, eax
cmp esi, eax
je 0x418384
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x114]
push edx
call eax
test al, al
jne 0x41830f
mov esi, dword [esi]
cmp esi, edi
jne 0x4182f2
jmp 0x418384
push 0
push 0x60000000
push 3
push 0
push 1
push Ordinal_3
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx + 0x1c], eax
cmp eax, 0xffffffff
je 0x418384
xor ecx, ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x124], ecx
mov edx, 0x40
mov word [ebp - 0x124], dx
add ebx, 0x14
push ebx
mov dword [ebp - 0x12c], ecx
lea edx, [ebp - 0x130]
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x12c], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
push str.Sound_Win32Project_Win_FruitNinja
push str._s.xsb
lea edx, [ebp - 0x114]
call fcn.004166b0
add esp, 8
test byte [0x5bd5d8], 1
jne 0x4183cc
or dword [0x5bd5d8], 1
mov dword [ebp - 4], 2
call fcn.0042f9f0
push 0x52b6f0
call fcn.0045f177
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5bd2a8]
mov esi, dword [eax]
mov edi, eax
cmp esi, eax
je 0x4183fb
lea esp, [esp]
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x114]
push eax
call edx
test al, al
jne 0x418405
mov esi, dword [esi]
cmp esi, edi
jne 0x4183e0
mov eax, 0x80004005
jmp 0x418498
push 0
push 0
push 3
push 0
push 1
push Ordinal_3
lea eax, [ebp - 0x114]
push eax
mov ebx, 0x80004005
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x418496
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x41848f
push esi
call fcn.0045f05c
mov ecx, dword [ebp - 0x118]
add esp, 4
mov dword [ecx + 0x10], eax
test eax, eax
je 0x41848f
push 0
lea edx, [ebp - 0x134]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41848f
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ebx, [ecx + 4]
mov ecx, dword [ecx + 0x10]
push ebx
push 0
push 0
push esi
push ecx
push eax
call edx
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret 4