Function at 0x1002e6f0
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d040
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x10086040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
lea eax, [ebx + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x70]
call fcn.100051f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 0x12
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.G_AudioFormatInfo_
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.10005600
mov byte [ebp - 4], 2
mov eax, bind
mov edx, dword [ebp - 0x1c]
sub eax, edx
mov esi, dword [ebp - 0x60]
cmp eax, esi
jb 0x1002e93a
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
push esi
cmova ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 7
cmova eax, dword [ebp - 0x70]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
call fcn.100059c0
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x1002e7e8
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002e7de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002e93f
push ecx
push edx
call fcn.1004633f
add esp, 8
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x1002e822
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002e818
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002e93f
push ecx
push edx
call fcn.1004633f
add esp, 8
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 0
push 0
push 0
mov edi, eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x1002e85d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x45], 0
jmp 0x1002e899
imul esi, dword [ebp - 0x50], 0x32
push 0x32
push 0
add esi, eax
push esi
call fcn.1004b6f0
mov ecx, dword [ebp - 0x54]
add esp, 0xc
movzx eax, word [ecx + 0x10]
add eax, 0x14
push eax
push ecx
push esi
call fcn.1004b850
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp - 0x45], 1
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x1002e8cf
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002e8c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002e944
push ecx
push edx
call fcn.1004633f
add esp, 8
mov ecx, dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 7
jbe 0x1002e919
mov edx, dword [ebx + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002e90f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002e944
push ecx
push edx
call fcn.1004633f
add esp, 8
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10045df2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10003d20
call fcn.1004eae1
call fcn.1004eae1
int3