Function at 0x49e3e8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
mov dword [0x4f3440], ebx
jl 0x49e9a7
mov esi, dword [esp + 0x14]
cmp esi, 0xfa0
jl 0x49e9a7
cmp esi, 0xffff
jg 0x49e9a7
cmp edi, 0x400
jg 0x49e9a7
call fcn.0049e0ae
mov eax, dword [0x4e3fd8]
mov byte [eax + 0x20], bl
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [0x4e3fd8]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x4e3fd8]
mov ecx, dword [esp + 0x1c]
mov dword [0x4f3440], ebx
mov dword [eax + 0x14f8], 0x100
mov eax, dword [0x4e3fd8]
mov dword [eax + 0x14d8], edi
mov eax, dword [0x4e3fd8]
mov dword [eax + 0x38], esi
mov eax, dword [0x4e3fd8]
mov dword [eax + 8], ecx
mov eax, dword [0x4e3fd8]
mov dword [eax + 0x14ec], 0x10
mov eax, dword [0x4e3fd8]
mov edi, 0xff
mov dword [eax + 0x10], edi
call fcn.004a1fa0
mov eax, dword [0x4e3fd8]
push dword [eax + 4]
call fcn.0049dfc3
mov eax, dword [0x4e3fd8]
mov eax, dword [eax]
xor ebp, ebp
inc ebp
mov dword [eax], ebp
mov eax, dword [0x4e3fd8]
mov eax, dword [eax]
mov dword [eax + 4], ebp
mov eax, dword [0x4e3fd8]
mov byte [eax + 0xc], bl
mov eax, dword [0x4e3fd8]
mov eax, dword [eax]
push esi
call dword [eax + 0x10]
test al, al
pop ecx
je 0x49e9b1
mov eax, dword [0x4e3fd8]
mov ecx, dword [eax]
cmp dword [ecx], ebx
je 0x49e4ff
call dword [ecx + 0x30]
cmp al, bl
mov eax, dword [0x4e3fd8]
je 0x49e4ff
cmp dword [eax + 4], 2
jne 0x49e4ff
dec dword [eax + 0x14dc]
mov eax, dword [0x4e3fd8]
mov edx, dword [eax + 0x14e8]
lea ecx, [eax + 0x14dc]
cmp dword [ecx], edx
jle 0x49e516
mov dword [ecx], edx
mov eax, dword [0x4e3fd8]
lea ecx, [eax + 0x14dc]
mov edx, dword [ecx]
cmp edx, dword [eax + 0x14e4]
jge 0x49e52d
mov dword [ecx], ebx
mov eax, dword [0x4e3fd8]
mov edx, dword [eax + 0x14e8]
lea ecx, [eax + 0x14e0]
cmp dword [ecx], edx
jle 0x49e544
mov dword [ecx], edx
mov eax, dword [0x4e3fd8]
lea ecx, [eax + 0x14e0]
mov edx, dword [ecx]
cmp edx, dword [eax + 0x14e4]
jge 0x49e55b
mov dword [ecx], ebx
mov eax, dword [0x4e3fd8]
cmp dword [eax + 0x14dc], ebp
jge 0x49e56c
mov eax, dword [eax]
mov dword [eax], ebx
mov eax, dword [0x4e3fd8]
cmp dword [eax + 0x14e0], ebp
jge 0x49e57e
mov eax, dword [eax]
mov dword [eax + 4], ebx
mov eax, dword [0x4e3fd8]
cmp dword [eax + 0x3c], 0xffffffff
jne 0x49e5a3
cmp dword [eax + 4], ebp
je 0x49e597
cmp byte [eax + 0xc], bl
jne 0x49e597
mov dword [eax + 0x3c], 0x32
jmp 0x49e59e
mov dword [eax + 0x3c], 0x64
mov eax, dword [0x4e3fd8]
mov ecx, dword [eax + 0x3c]
mov dword [eax + 0x4c], ecx
mov eax, dword [0x4e3fd8]
shl dword [eax + 0x3c], 1
call fcn.004a1b6e
test al, al
je 0x49e9b1
mov eax, dword [0x4e3fd8]
mov ecx, dword [eax + 0x14e0]
add ecx, dword [eax + 0x14dc]
push 0x3de
add ecx, dword [eax + 0x14d8]
mov esi, str.src_fsound.c
mov dword [eax + 0x14d4], ecx
mov eax, dword [0x4e3fd8]
mov eax, dword [eax + 0x14f8]
push esi
shl eax, 2
push eax
push ebx
call fcn.004a2379
mov ecx, dword [0x4e3fd8]
mov dword [ecx + 0x14f0], eax
mov eax, dword [0x4e3fd8]
add esp, 0x10
cmp dword [eax + 0x14f0], ebx
je 0x49e652
mov ecx, dword [eax + 0x14ec]
add ecx, dword [eax + 0x14d4]
push 0x3ea
imul ecx, ecx, 0x1dc
push esi
push ecx
push ebx
call fcn.004a2379
mov ecx, dword [0x4e3fd8]
mov dword [ecx + 0x14a8], eax
mov eax, dword [0x4e3fd8]
add esp, 0x10
cmp dword [eax + 0x14a8], ebx
jne 0x49e661
mov dword [0x4f3440], 0xc
jmp 0x49e9b1
mov dword [eax + 0x14c8], ebx
mov eax, dword [0x4e3fd8]
mov ecx, dword [eax + 0x14d8]
dec ecx
mov dword [eax + 0x14cc], ecx
mov eax, dword [0x4e3fd8]
mov ecx, dword [eax + 0x14cc]
inc ecx
mov dword [eax + 0x14b0], ecx
mov eax, dword [0x4e3fd8]
mov edx, dword [eax + 0x14b0]
mov ecx, dword [eax + 0x14dc]
lea ecx, [ecx + edx - 1]
mov dword [eax + 0x14b4], ecx
mov eax, dword [0x4e3fd8]
mov ecx, dword [eax + 0x14b4]
inc ecx
mov dword [eax + 0x14bc], ecx
mov eax, dword [0x4e3fd8]
mov ecx, dword [eax + 0x14e0]
mov edx, dword [eax + 0x14bc]
lea ecx, [ecx + edx - 1]
mov dword [eax + 0x14c0], ecx
mov eax, dword [0x4e3fd8]
mov ecx, dword [eax + 0x14bc]
mov dword [eax + 0x14c4], ecx
mov eax, dword [0x4e3fd8]
mov ecx, dword [eax + 0x14b0]
mov dword [eax + 0x14b8], ecx
mov eax, dword [0x4e3fd8]
mov ecx, dword [eax + 0x14c8]
mov dword [eax + 0x14d0], ecx
mov eax, dword [0x4e3fd8]
xor ebp, ebp
cmp dword [eax + 0x14d4], ebx
jle 0x49e7f2
mov dword [esp + 0x18], ebx
mov esi, dword [eax + 0x14a8]
add esi, dword [esp + 0x18]
push esi
mov dword [esi + 0x10], ebp
call fcn.004ab39a
mov eax, dword [0x4e3fd8]
cmp ebp, dword [eax + 0x14d8]
pop ecx
push esi
jge 0x49e746
call fcn.004a1eea
jmp 0x49e74b
mov eax, dword [eax]
call dword [eax + 0x1c]
fld1
xor eax, eax
fstp dword [esi + 0x7c]
pop ecx
inc eax
fld1
push esi
fstp dword [esi + 0xbc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x20], 0xac44
mov dword [esi + 0x1c], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x24], 0x80
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], eax
mov dword [esi + 0xc0], 0x49742400
call dword [esi + 0x180]
push esi
call dword [esi + 0x190]
push edi
push esi
call dword [esi + 0x19c]
push 0xac44
push esi
call dword [esi + 0x194]
push ebx
push 0x80
push esi
call dword [esi + 0x1a0]
mov eax, dword [0x4e3fd8]
add dword [esp + 0x3c], 0x1dc
add esp, 0x24
inc ebp
cmp ebp, dword [eax + 0x14d4]
jl 0x49e71d
mov esi, str.src_fsound.c
cmp dword [eax + 0x14d8], ebx
je 0x49e916
push 0x472
push esi
push 0x1dc
push ebx
call fcn.004a2379
mov ecx, dword [0x4e3fd8]
mov dword [ecx + 0x14ac], eax
mov eax, dword [0x4e3fd8]
mov esi, dword [eax + 0x14ac]
mov ebp, 0xfffffc18
push esi
mov dword [esi + 0x10], ebp
call fcn.004ab39a
mov eax, dword [0x4e3fd8]
push dword [eax + 0x14ac]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push esi
call dword [esi + 0x180]
push esi
call dword [esi + 0x190]
push edi
push esi
call dword [esi + 0x19c]
push dword [esp + 0x3c]
push esi
call dword [esi + 0x194]
push ebx
push 0xffffffffffffffff
push esi
call dword [esi + 0x1a0]
fld1
mov eax, dword [esp + 0x58]
fstp dword [esi + 0xbc]
and eax, 4
shl eax, 0x12
or eax, 0x80084012
mov dword [esi + 0xc0], 0x49742400
add esp, 0x3c
mov esi, eax
call fcn.0049e2d4
cmp eax, 9
je 0x49e8ae
call fcn.0049e2d4
cmp eax, 8
je 0x49e8ae
or esi, 0x40
jmp 0x49e8b1
or esi, 0x20
mov eax, dword [0x4e3fd8]
push edi
push 0xffffffffffffffff
push edi
push dword [esp + 0x20]
push esi
push dword [eax + 0x40]
push 0xfffffffffffffffe
call fcn.0049f5aa
mov esi, eax
cmp esi, ebx
jne 0x49e8dc
mov eax, dword [0x4e3fd8]
mov byte [eax + 0x20], bl
jmp 0x49e9b1
push edi
push str.FSOUND_Primary_MixBuffer
push esi
call fcn.004a4850
mov byte [esi + 0xff], bl
mov eax, dword [0x4e3fd8]
add esp, 0xc
mov dword [eax + 0x14f4], esi
mov eax, dword [0x4e3fd8]
push esi
push ebp
mov byte [eax + 0x20], 1
call fcn.0049a4f5
push 1
push ebp
call fcn.00499aa1
jmp 0x49e930
mov dword [eax + 0x14f4], ebx
mov eax, dword [0x4e3fd8]
mov dword [eax + 0x14ac], ebx
mov eax, dword [0x4e3fd8]
mov byte [eax + 0x20], 1
call fcn.004a7080
call fcn.004a8b50
mov eax, dword [0x4e3fd8]
lea ecx, [eax + 0x153c]
mov esi, dword [ecx]
jmp 0x49e964
push dword [esi + 0x5d8]
push esi
call fcn.0049a631
mov eax, dword [0x4e3fd8]
mov esi, dword [esi]
pop ecx
pop ecx
lea ecx, [eax + 0x153c]
cmp esi, ecx
jne 0x49e949
cmp dword [eax + 0x14ac], ebx
je 0x49e975
call fcn.004a0885
call fcn.004a494e
mov eax, dword [0x4e3fd8]
cmp dword [eax + 4], 0xc
jne 0x49e989
or byte [eax + 9], 2
call fcn.0049d2c5
test al, al
jne 0x49e99e
mov dword [0x4f3440], 3
jmp 0x49e9b1
call fcn.0049e23d
mov al, 1
jmp 0x49e9b3
mov dword [0x4f3440], 0xe
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 0xc