Function at 0x10035823
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 [0x100befa8], ebx
jl 0x10035e66
mov esi, dword [esp + 0x14]
cmp esi, 0xfa0
jl 0x10035e66
cmp esi, 0xffff
jg 0x10035e66
cmp edi, 0x400
jg 0x10035e66
call fcn.10035e79
mov eax, dword [0x10099d1c]
mov byte [eax + 0x20], bl
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [0x10099d1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x10099d1c]
mov ecx, dword [esp + 0x1c]
mov dword [0x100befa8], ebx
mov dword [eax + 0x14f8], 0x100
mov eax, dword [0x10099d1c]
mov dword [eax + 0x14d8], edi
mov eax, dword [0x10099d1c]
mov dword [eax + 0x38], esi
mov eax, dword [0x10099d1c]
mov dword [eax + 8], ecx
mov eax, dword [0x10099d1c]
mov dword [eax + 0x14ec], 0x10
mov eax, dword [0x10099d1c]
mov edi, 0xff
mov dword [eax + 0x10], edi
call fcn.1004458e
call fcn.1004432d
mov eax, dword [0x10099d1c]
push dword [eax + 4]
call fcn.10035797
mov eax, dword [0x10099d1c]
mov eax, dword [eax]
push 1
pop ebp
mov dword [eax], ebp
mov eax, dword [0x10099d1c]
mov eax, dword [eax]
mov dword [eax + 4], ebp
mov eax, dword [0x10099d1c]
mov byte [eax + 0xc], bl
mov eax, dword [0x10099d1c]
mov eax, dword [eax]
push esi
call dword [eax + 0x10]
test al, al
pop ecx
je 0x10035e70
mov eax, dword [0x10099d1c]
mov ecx, dword [eax]
cmp dword [ecx], ebx
je 0x1003593f
call dword [ecx + 0x30]
cmp al, bl
mov eax, dword [0x10099d1c]
je 0x1003593f
cmp dword [eax + 4], 2
jne 0x1003593f
dec dword [eax + 0x14dc]
mov eax, dword [0x10099d1c]
mov edx, dword [eax + 0x14e8]
cmp dword [eax + 0x14dc], edx
lea ecx, [eax + 0x14dc]
jle 0x1003595a
mov dword [ecx], edx
mov eax, dword [0x10099d1c]
mov edx, dword [eax + 0x14dc]
cmp edx, dword [eax + 0x14e4]
lea ecx, [eax + 0x14dc]
jge 0x10035975
mov dword [ecx], ebx
mov eax, dword [0x10099d1c]
mov edx, dword [eax + 0x14e8]
cmp dword [eax + 0x14e0], edx
lea ecx, [eax + 0x14e0]
jle 0x10035990
mov dword [ecx], edx
mov eax, dword [0x10099d1c]
mov edx, dword [eax + 0x14e0]
cmp edx, dword [eax + 0x14e4]
lea ecx, [eax + 0x14e0]
jge 0x100359ab
mov dword [ecx], ebx
mov eax, dword [0x10099d1c]
cmp dword [eax + 0x14dc], ebp
jge 0x100359bc
mov eax, dword [eax]
mov dword [eax], ebx
mov eax, dword [0x10099d1c]
cmp dword [eax + 0x14e0], ebp
jge 0x100359ce
mov eax, dword [eax]
mov dword [eax + 4], ebx
mov eax, dword [0x10099d1c]
cmp dword [eax + 0x3c], 0xffffffff
jne 0x100359f3
cmp dword [eax + 4], ebp
je 0x100359e7
cmp byte [eax + 0xc], bl
jne 0x100359e7
mov dword [eax + 0x3c], 0x32
jmp 0x100359ee
mov dword [eax + 0x3c], 0x64
mov eax, dword [0x10099d1c]
mov ecx, dword [eax + 0x3c]
mov dword [eax + 0x4c], ecx
mov eax, dword [0x10099d1c]
shl dword [eax + 0x3c], 1
call fcn.10040e09
test al, al
je 0x10035e70
mov eax, dword [0x10099d1c]
mov ecx, dword [eax + 0x14e0]
add ecx, dword [eax + 0x14dc]
push 0x3fa
add ecx, dword [eax + 0x14d8]
mov esi, str.F:dev_fmodsrc375win_src_fsound.c
mov dword [eax + 0x14d4], ecx
mov eax, dword [0x10099d1c]
mov eax, dword [eax + 0x14f8]
push esi
shl eax, 2
push eax
push ebx
call fcn.1004417b
mov ecx, dword [0x10099d1c]
mov dword [ecx + 0x14f0], eax
mov eax, dword [0x10099d1c]
add esp, 0x10
cmp dword [eax + 0x14f0], ebx
je 0x10035aa2
mov ecx, dword [eax + 0x14ec]
add ecx, dword [eax + 0x14d4]
push 0x406
imul ecx, ecx, 0x1dc
push esi
push ecx
push ebx
call fcn.1004417b
mov ecx, dword [0x10099d1c]
mov dword [ecx + 0x14a8], eax
mov eax, dword [0x10099d1c]
add esp, 0x10
cmp dword [eax + 0x14a8], ebx
jne 0x10035ab1
mov dword [0x100befa8], 0xc
jmp 0x10035e70
mov dword [eax + 0x14c8], ebx
mov eax, dword [0x10099d1c]
mov ecx, dword [eax + 0x14d8]
dec ecx
mov dword [eax + 0x14cc], ecx
mov eax, dword [0x10099d1c]
mov ecx, dword [eax + 0x14cc]
inc ecx
mov dword [eax + 0x14b0], ecx
mov eax, dword [0x10099d1c]
mov edx, dword [eax + 0x14b0]
mov ecx, dword [eax + 0x14dc]
lea ecx, [ecx + edx - 1]
mov dword [eax + 0x14b4], ecx
mov eax, dword [0x10099d1c]
mov ecx, dword [eax + 0x14b4]
inc ecx
mov dword [eax + 0x14bc], ecx
mov eax, dword [0x10099d1c]
mov ecx, dword [eax + 0x14e0]
mov edx, dword [eax + 0x14bc]
lea ecx, [ecx + edx - 1]
mov dword [eax + 0x14c0], ecx
mov eax, dword [0x10099d1c]
mov ecx, dword [eax + 0x14bc]
mov dword [eax + 0x14c4], ecx
mov eax, dword [0x10099d1c]
mov ecx, dword [eax + 0x14b0]
mov dword [eax + 0x14b8], ecx
mov eax, dword [0x10099d1c]
mov ecx, dword [eax + 0x14c8]
mov dword [eax + 0x14d0], ecx
mov eax, dword [0x10099d1c]
xor ebp, ebp
cmp dword [eax + 0x14d4], ebx
jle 0x10035c3e
mov dword [esp + 0x18], ebx
mov esi, dword [eax + 0x14a8]
add esi, dword [esp + 0x18]
push esi
mov dword [esi + 0x10], ebp
call fcn.10040192
mov eax, dword [0x10099d1c]
cmp ebp, dword [eax + 0x14d8]
pop ecx
jge 0x10035b96
push esi
call fcn.1004130a
jmp 0x10035b9c
mov eax, dword [eax]
push esi
call dword [eax + 0x1c]
pop ecx
fld1
fstp dword [esi + 0x7c]
push 1
pop 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 [0x10099d1c]
add dword [esp + 0x3c], 0x1dc
add esp, 0x24
inc ebp
cmp ebp, dword [eax + 0x14d4]
jl 0x10035b6d
mov ebp, dword [eax + 0x14d4]
mov ecx, dword [eax + 0x14ec]
add ecx, ebp
cmp ebp, ecx
jge 0x10035ca5
mov ecx, ebp
imul ecx, ecx, 0x1dc
mov dword [esp + 0x18], ecx
jmp 0x10035c62
mov ecx, dword [esp + 0x18]
mov esi, dword [eax + 0x14a8]
add esi, ecx
push esi
call fcn.10040192
push esi
call fcn.10043978
and dword [esi + 0x3c], 0xffffffbf
push esi
mov dword [esi + 0x10], ebp
call dword [esi + 0x180]
mov eax, dword [0x10099d1c]
mov ecx, dword [eax + 0x14ec]
add ecx, dword [eax + 0x14d4]
add dword [esp + 0x24], 0x1dc
add esp, 0xc
inc ebp
cmp ebp, ecx
jl 0x10035c5e
cmp dword [eax + 0x14d8], ebx
je 0x10035dcc
push 0x48e
push str.F:dev_fmodsrc375win_src_fsound.c
push 0x1dc
push ebx
call fcn.1004417b
mov ecx, dword [0x10099d1c]
mov dword [ecx + 0x14ac], eax
mov eax, dword [0x10099d1c]
mov esi, dword [eax + 0x14ac]
mov ebp, 0xfffffc18
push esi
mov dword [esi + 0x10], ebp
call fcn.10040192
mov eax, dword [0x10099d1c]
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, 0x84012
mov dword [esi + 0xc0], 0x49742400
add esp, 0x3c
mov esi, eax
call fcn.100360c3
cmp eax, 9
je 0x10035d65
call fcn.100360c3
cmp eax, 8
je 0x10035d65
or esi, 0x40
jmp 0x10035d68
or esi, 0x20
mov eax, dword [0x10099d1c]
push edi
push 0xffffffffffffffff
push edi
push dword [esp + 0x20]
push esi
push dword [eax + 0x40]
push ebp
call fcn.100364d2
mov esi, eax
cmp esi, ebx
jne 0x10035d92
mov eax, dword [0x10099d1c]
mov byte [eax + 0x20], bl
jmp 0x10035e70
push edi
push str.FSOUND_Primary_MixBuffer
push esi
call fcn.1004375b
mov byte [esi + 0xff], bl
mov eax, dword [0x10099d1c]
mov dword [eax + 0x14f4], esi
mov eax, dword [0x10099d1c]
add esp, 0xc
mov byte [eax + 0x20], 1
push esi
push ebp
call fcn.1003c69e
push 1
push ebp
call fcn.1003cdf4
jmp 0x10035de6
mov dword [eax + 0x14f4], ebx
mov eax, dword [0x10099d1c]
mov dword [eax + 0x14ac], ebx
mov eax, dword [0x10099d1c]
mov byte [eax + 0x20], 1
call fcn.10042cf0
call fcn.100427d4
call fcn.10042662
mov eax, dword [0x10099d1c]
mov esi, dword [eax + 0x299c]
lea ecx, [eax + 0x299c]
cmp esi, ecx
je 0x10035e27
push dword [esi + 0x5d8]
push esi
call fcn.10037890
mov eax, dword [0x10099d1c]
mov esi, dword [esi]
pop ecx
pop ecx
lea ecx, [eax + 0x299c]
jmp 0x10035e06
cmp dword [eax + 0x14ac], ebx
je 0x10035e34
call fcn.1004115a
call fcn.10040582
mov eax, dword [0x10099d1c]
cmp dword [eax + 4], 0xd
jne 0x10035e48
or byte [eax + 9], 2
call fcn.10038ba3
test al, al
jne 0x10035e5d
mov dword [0x100befa8], 3
jmp 0x10035e70
call fcn.10036027
mov al, 1
jmp 0x10035e72
mov dword [0x100befa8], 0xe
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 0xc