Function at 0x468c70
Capabilities:
Create thread

Disassembly:
sub esp, 0x40
mov ecx, 0x190
xor eax, eax
push ebp
xor ebp, ebp
push edi
mov edi, 0x786970
push ebp
push 0x7870a0
rep stosd dword es:[edi], eax
push ebp
call sub.DSOUND.dll_DirectSoundCreate8
cmp eax, ebp
mov dword [0x7886c8], eax
jge 0x468cdf
push eax
call fcn.004767b4
push eax
mov eax, dword [0x7886c8]
push str.DirectSoundCreate8_NULL__m_pDS__NULL_
push eax
push eax
call fcn.00473e26
push eax
push 0x2f
push 0x606528
push str._____________________________________DXLOG______________________________________nfile___s__d__ncode___s_0x_08X__nfunc___s_ndesc___s_n________________________________________________________________________________n
call fcn.0046cc10
add esp, 0x1c
push str.DirectSoundCreate8_NULL__m_pDS__NULL_
push 0x788648
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
xor eax, eax
pop ebp
add esp, 0x40
ret
mov eax, dword [0x7870a0]
mov edx, dword [esp + 0x4c]
push 2
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
cmp eax, ebp
mov dword [0x7886c8], eax
jge 0x468d3f
push eax
call fcn.004767b4
push eax
mov eax, dword [0x7886c8]
push str.m_pDS__SetCooperativeLevel_hWnd__DSSCL_PRIORITY_
push eax
push eax
call fcn.00473e26
push eax
push 0x32
push 0x606528
push str._____________________________________DXLOG______________________________________nfile___s__d__ncode___s_0x_08X__nfunc___s_ndesc___s_n________________________________________________________________________________n
call fcn.0046cc10
add esp, 0x1c
push str.m_pDS__SetCooperativeLevel_hWnd__DSSCL_PRIORITY_
push 0x788648
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
xor eax, eax
pop ebp
add esp, 0x40
ret
mov eax, 1
mov ecx, 0x2b11
mov word [esp + 0x10], ax
mov word [esp + 0x12], ax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov word [esp + 0x1c], ax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebp
mov dword [esp + 0x38], eax
mov eax, dword [0x7870a0]
lea edx, [esp + 0x28]
mov word [esp + 0x22], 8
mov word [esp + 0x24], bp
mov dword [esp + 0x28], 0x24
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], 0xb7
mov ecx, dword [eax]
push 0x7870a4
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebp
mov dword [0x7886c8], eax
jge 0x468dfd
push eax
call fcn.004767b4
push eax
mov eax, dword [0x7886c8]
push str.CSound::m_pDS__CreateSoundBuffer_dsbd__m_pDSB__NULL_
push eax
push eax
call fcn.00473e26
push eax
push 0x40
push 0x606528
push str._____________________________________DXLOG______________________________________nfile___s__d__ncode___s_0x_08X__nfunc___s_ndesc___s_n________________________________________________________________________________n
call fcn.0046cc10
add esp, 0x1c
push str.CSound::m_pDS__CreateSoundBuffer_dsbd__m_pDSB__NULL_
push 0x788648
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
xor eax, eax
pop ebp
add esp, 0x40
ret
mov eax, dword [0x7870a4]
push ebp
push ebp
lea edx, [esp + 0x10]
push ebp
push edx
lea edx, [esp + 0x5c]
mov dword [esp + 0x5c], ebp
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x40]
push edx
push ebp
push eax
call dword [ecx + 0x2c]
cmp eax, ebp
mov dword [0x7886c8], eax
jge 0x468e6d
push eax
call fcn.004767b4
push eax
mov eax, dword [0x7886c8]
push str.m_pDSB__Lock_0__dsbd.dwBufferBytes___LPVOID_pLock__dwLockSize__NULL__NULL__0L_
push eax
push eax
call fcn.00473e26
push eax
push 0x45
push 0x606528
push str._____________________________________DXLOG______________________________________nfile___s__d__ncode___s_0x_08X__nfunc___s_ndesc___s_n________________________________________________________________________________n
call fcn.0046cc10
add esp, 0x1c
push str.m_pDSB__Lock_0__dsbd.dwBufferBytes___LPVOID_pLock__dwLockSize__NULL__NULL__0L_
push 0x788648
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
xor eax, eax
pop ebp
add esp, 0x40
ret
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0x4c]
mov edx, ecx
mov eax, 0x80808080
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x10]
mov eax, dword [0x7870a4]
push edx
mov edx, dword [esp + 0x58]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x4c]
cmp eax, ebp
mov dword [0x7886c8], eax
jge 0x468eed
push eax
call fcn.004767b4
push eax
mov eax, dword [0x7886c8]
push str.m_pDSB__Unlock_pLock__dwLockSize__NULL__0_
push eax
push eax
call fcn.00473e26
push eax
push 0x47
push 0x606528
push str._____________________________________DXLOG______________________________________nfile___s__d__ncode___s_0x_08X__nfunc___s_ndesc___s_n________________________________________________________________________________n
call fcn.0046cc10
add esp, 0x1c
push str.m_pDSB__Unlock_pLock__dwLockSize__NULL__0_
push 0x788648
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
xor eax, eax
pop ebp
add esp, 0x40
ret
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push esi
mov esi, 0x786998
push esi
call edi
add esi, 0x40
cmp esi, 0x786fd8
jl 0x468efa
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, 0x786fd4
mov edi, 0x19
push ebp
push ebp
push ebp
push ebp
call ebx
mov dword [esi], eax
add esi, 4
dec edi
jne 0x468f18
cmp esi, 0x78709c
jl 0x468f13
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x10], 0x469270
mov dword [esp + 0x14], 0x469360
mov esi, 0x786fb0
lea edi, [esp + 0x10]
mov ecx, dword [edi]
lea eax, [esi + 4]
push eax
push 0
push 0
push ecx
push 0
push 0
call ebx
push 1
push eax
mov dword [esi], eax
call ebp
add esi, 8
add edi, 4
cmp esi, 0x786fc0
jl 0x468f53
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x40
ret