Function at 0x1102f00
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push 0x1001bcc
push 0x1009bc4
add eax, 0x237a4
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], esi
call fcn.01061570
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x1103112
mov ecx, dword [esi]
push ebx
push eax
push ecx
xor ebx, ebx
call fcn.010dc080
cmp eax, 0x40000000
jbe 0x110305f
sub eax, 0x40000000
mov dword [ebp + 8], eax
je 0x1102fcb
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebx, eax
cmp ebx, edi
je 0x1103062
mov ecx, dword [ebp - 0x10]
mov edi, dword [esi]
xor eax, eax
push 1
push eax
push 3
push 7
push DirectSoundEnumerateW
push ecx
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.010c8140
test eax, eax
je 0x1102fd2
cmp eax, 0xffffffff
je 0x1102fd2
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
jmp 0x1102ffb
xor ebx, ebx
jmp 0x1103062
mov edx, dword [ebp - 4]
push 0xc800000
push edx
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.010dbf20
test eax, eax
jne 0x1102ffb
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x2c]
push edx
push edi
call fcn.010b1120
test eax, eax
je 0x1103051
mov eax, dword [ebp - 0x2c]
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
push ecx
push ebx
lea edx, [ebp - 0x2c]
push edx
push eax
call fcn.010b1160
test eax, eax
je 0x1103046
push 0xa
push ebx
call fcn.0101d1f0
test eax, eax
je 0x1103051
inc eax
mov byte [eax], 0
mov edx, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
sub eax, ebx
push edx
mov dword [ebp + 8], eax
call fcn.010b1240
jmp 0x1103062
push ebx
call fcn.010608a0
xor ebx, ebx
mov dword [ebp + 8], ebx
mov edx, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.010b1240
jmp 0x1103062
mov dword [ebp + 8], edi
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
push 1
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call fcn.010dc240
mov edi, eax
test edi, edi
je 0x110309b
push 0
lea eax, [ebp - 0x18]
push eax
push 0x1102d80
push edi
call fcn.01029a70
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
test ebx, ebx
je 0x11030b8
mov eax, dword [ebp + 8]
test eax, eax
je 0x11030b8
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi]
push 1
push 1
push eax
push ebx
push ecx
push edx
call fcn.010c8310
mov edi, dword [esi]
lea eax, [ebp + 8]
push eax
push 0
push esi
push fcn.010fdd70
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebx
test eax, eax
je 0x11030de
mov ecx, dword [edi + 0x1bc]
push eax
call ecx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x11030f5
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov edx, dword [esi]
push 0x10051ec
push 0x1005298
push DirectSoundEnumerateW
push edx
call fcn.01089dc0
push esi
call fcn.010930f0
cmp dword [ebp - 8], 0
pop edi
pop esi
je 0x1103127
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x810], 1
mov esp, ebp
pop ebp
ret 8