Function at 0x1002a830
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068ded
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x1008600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x60]
call fcn.10003b10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0x12
xor eax, eax
mov dword [ebp - 0x28], 0
push str.G_AudioFormatInfo_
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10003e30
mov byte [ebp - 4], 2
mov eax, bind
mov edx, dword [ebp - 0x18]
sub eax, edx
mov esi, dword [ebp - 0x50]
cmp eax, esi
jb 0x1002aa63
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
cmovae eax, dword [ebp - 0x60]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.10004390
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1002a91b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002a911
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002aa68
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x1002a955
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002a94b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002aa68
push edx
push ecx
call fcn.10041ac4
add esp, 8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
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 ebx, eax
test ebx, ebx
jne 0x1002a98d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x1002a9c5
imul esi, dword [ebp - 0x48], 0x32
push 0x32
push 0
add esi, ebx
push esi
call fcn.100472b0
mov ecx, dword [ebp - 0x44]
add esp, 0xc
movzx eax, word [ecx + 0x10]
add eax, 0x14
push eax
push ecx
push esi
call fcn.10047500
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x1002a9fb
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002a9f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002aa6d
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x1002aa45
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002aa3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002aa6d
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004144e
mov esp, ebp
pop ebp
ret
call fcn.100028a0
call fcn.1004a021
call fcn.1004a021
int3