Function at 0x409060
Capabilities:
Create thread

Disassembly:
sub esp, 0x40
mov ecx, 0x190
xor eax, eax
push ebp
xor ebp, ebp
push edi
mov edi, 0x670b08
push ebp
push 0x67122c
rep stosd dword es:[edi], eax
push ebp
call sub.DSOUND.dll_DirectSoundCreate8
cmp eax, ebp
mov dword [0x672fcc], eax
jge 0x4090cf
push eax
call fcn.00486ab4
push eax
mov eax, dword [0x672fcc]
push str.DirectSoundCreate8_NULL__m_pDS__NULL_
push eax
push eax
call fcn.00484126
push eax
push 0x31
push str.F:WorkperfectperfectunbSound.cpp
push str._____________________________________DXLOG______________________________________nfile___s__d__ncode___s_0x_08X__nfunc___s_ndesc___s_n________________________________________________________________________________n
call fcn.0040d0b0
add esp, 0x1c
push str.DirectSoundCreate8_NULL__m_pDS__NULL_
push 0x672f4c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
xor eax, eax
pop ebp
add esp, 0x40
ret
mov eax, dword [0x67122c]
mov edx, dword [esp + 0x4c]
push 2
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
cmp eax, ebp
mov dword [0x672fcc], eax
jge 0x40912f
push eax
call fcn.00486ab4
push eax
mov eax, dword [0x672fcc]
push str.m_pDS__SetCooperativeLevel_hWnd__DSSCL_PRIORITY_
push eax
push eax
call fcn.00484126
push eax
push 0x33
push str.F:WorkperfectperfectunbSound.cpp
push str._____________________________________DXLOG______________________________________nfile___s__d__ncode___s_0x_08X__nfunc___s_ndesc___s_n________________________________________________________________________________n
call fcn.0040d0b0
add esp, 0x1c
push str.m_pDS__SetCooperativeLevel_hWnd__DSSCL_PRIORITY_
push 0x672f4c
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 [0x67122c]
lea edx, [esp + 0x28]
mov word [esp + 0x22], 8
mov word [esp + 0x24], bp
mov dword [esp + 0x28], 0x24
mov dword [esp + 0x2c], 0x8a
mov dword [esp + 0x30], 0xb7
mov ecx, dword [eax]
push 0x671230
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebp
mov dword [0x672fcc], eax
jge 0x4091ed
push eax
call fcn.00486ab4
push eax
mov eax, dword [0x672fcc]
push str.CSound::m_pDS__CreateSoundBuffer_dsbd__m_pDSB__NULL_
push eax
push eax
call fcn.00484126
push eax
push 0x41
push str.F:WorkperfectperfectunbSound.cpp
push str._____________________________________DXLOG______________________________________nfile___s__d__ncode___s_0x_08X__nfunc___s_ndesc___s_n________________________________________________________________________________n
call fcn.0040d0b0
add esp, 0x1c
push str.CSound::m_pDS__CreateSoundBuffer_dsbd__m_pDSB__NULL_
push 0x672f4c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
xor eax, eax
pop ebp
add esp, 0x40
ret
mov eax, dword [0x671230]
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 [0x672fcc], eax
jge 0x40925d
push eax
call fcn.00486ab4
push eax
mov eax, dword [0x672fcc]
push str.m_pDSB__Lock_0__dsbd.dwBufferBytes___LPVOID_pLock__dwLockSize__NULL__NULL__0L_
push eax
push eax
call fcn.00484126
push eax
push 0x46
push str.F:WorkperfectperfectunbSound.cpp
push str._____________________________________DXLOG______________________________________nfile___s__d__ncode___s_0x_08X__nfunc___s_ndesc___s_n________________________________________________________________________________n
call fcn.0040d0b0
add esp, 0x1c
push str.m_pDSB__Lock_0__dsbd.dwBufferBytes___LPVOID_pLock__dwLockSize__NULL__NULL__0L_
push 0x672f4c
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 [0x671230]
push edx
mov edx, dword [esp + 0x58]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x4c]
cmp eax, ebp
mov dword [0x672fcc], eax
jge 0x4092dd
push eax
call fcn.00486ab4
push eax
mov eax, dword [0x672fcc]
push str.m_pDSB__Unlock_pLock__dwLockSize__NULL__0_
push eax
push eax
call fcn.00484126
push eax
push 0x48
push str.F:WorkperfectperfectunbSound.cpp
push str._____________________________________DXLOG______________________________________nfile___s__d__ncode___s_0x_08X__nfunc___s_ndesc___s_n________________________________________________________________________________n
call fcn.0040d0b0
add esp, 0x1c
push str.m_pDSB__Unlock_pLock__dwLockSize__NULL__0_
push 0x672f4c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
xor eax, eax
pop ebp
add esp, 0x40
ret
mov eax, dword [0x671230]
push 0xffffd8f0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp eax, ebp
mov dword [0x672fcc], eax
jge 0x40933b
push eax
call fcn.00486ab4
push eax
mov eax, dword [0x672fcc]
push str.m_pDSB__SetVolume_DSBVOLUME_MIN_
push eax
push eax
call fcn.00484126
push eax
push 0x49
push str.F:WorkperfectperfectunbSound.cpp
push str._____________________________________DXLOG______________________________________nfile___s__d__ncode___s_0x_08X__nfunc___s_ndesc___s_n________________________________________________________________________________n
call fcn.0040d0b0
add esp, 0x1c
push str.m_pDSB__SetVolume_DSBVOLUME_MIN_
push 0x672f4c
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, 0x670b30
push esi
call edi
add esi, 0x40
cmp esi, 0x671170
jl 0x409348
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, 0x671148
mov edi, 0x19
push ebp
push ebp
push ebp
push ebp
call ebx
mov dword [esi], eax
add esi, 4
dec edi
jne 0x409366
cmp esi, 0x671210
jl 0x409361
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x671224
push ebp
push ebp
push 0x409790
push ebp
push ebp
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x671220], eax
mov dword [esp + 0x10], 0x409800
mov dword [esp + 0x14], 0x4098f0
mov esi, 0x671210
lea edi, [esp + 0x10]
mov eax, dword [edi]
lea edx, [esi + 4]
push edx
push 0
push 0
push eax
push 0
push 0
call ebx
push 1
push eax
mov dword [esi], eax
call ebp
add esi, 8
add edi, 4
cmp esi, 0x671220
jl 0x4093b6
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x40
ret