Function at 0x1002e980
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 0x1006d5e0
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.100050c0
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.10005690
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 0x1002ebca
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.10005a90
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x1002ea78
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ea6e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ebcf
push ecx
push edx
call fcn.10046823
add esp, 8
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x1002eab2
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002eaa8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ebcf
push ecx
push edx
call fcn.10046823
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 0x1002eaed
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x45], 0
jmp 0x1002eb29
imul esi, dword [ebp - 0x50], 0x32
push 0x32
push 0
add esi, eax
push esi
call fcn.1004bd60
mov ecx, dword [ebp - 0x54]
add esp, 0xc
movzx eax, word [ecx + 0x10]
add eax, 0x14
push eax
push ecx
push esi
call fcn.1004bec0
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 0x1002eb5f
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002eb55
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ebd4
push ecx
push edx
call fcn.10046823
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 0x1002eba9
mov edx, dword [ebx + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002eb9f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ebd4
push ecx
push edx
call fcn.10046823
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.100462d6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10003d20
call fcn.1004f161
call fcn.1004f161
int3