Function at 0x438a90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475924
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x49d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ecx, dword [edi]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
test ecx, ecx
je 0x438ad7
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi], 0
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
call dword [eax + 0x34]
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push 0xc
push ecx
mov ecx, esi
mov eax, dword [eax + 0x28]
call eax
cmp eax, 0xc
jne 0x438b9d
cmp dword [ebp - 0x1c], 0x46464952
jne 0x438b9d
cmp dword [ebp - 0x14], 0x45564157
jne 0x438b9d
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
call dword [eax + 0x34]
cmp dword [0x4a1e58], 0x70
jl 0x438b54
push 0x4a1e5c
call fcn.00440560
mov esi, dword [0x4a1e54]
add esp, 4
test esi, esi
je 0x438b46
mov eax, dword [esi]
mov dword [0x4a1e54], eax
mov dword [0x4a1e5c], 1
test esi, esi
jne 0x438b6f
push 0x70
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x438ec9
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.004373a0
mov byte [ebp - 4], 1
mov dword [esi], vtable.CVolWavSound.0
mov dword [esi + 0x68], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x438e1e
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
call dword [eax + 0x34]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4b1da8]
cmp eax, dword [ecx + 4]
jg 0x438e76
push 0x4a1efc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4a1f34]
xor edi, edi
mov esi, eax
shr esi, 2
test esi, esi
je 0x438c2f
nop dword [eax]
mov ecx, dword [0x4a1f2c]
xor edx, edx
test eax, eax
push 0x4b1dbc
cmove ecx, edx
mov ecx, dword [ecx + edi*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
jne 0x438c0c
inc edi
cmp edi, esi
jge 0x438c2f
mov eax, dword [0x4a1f34]
jmp 0x438be0
mov eax, dword [0x4a1f2c]
xor ecx, ecx
cmp dword [0x4a1f34], ecx
push 0x4a1efc
cmove eax, ecx
mov edi, dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x438d43
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4a1efc
call esi
mov eax, dword [0x4b1dbc]
cmp eax, method.CVolSoundEnv.virtual_28
jne 0x438cf2
cmp dword [0x4a1e58], 0x30
jl 0x438c81
push 0x4a1e5c
call fcn.00440560
mov edi, dword [0x4a1e54]
add esp, 4
test edi, edi
je 0x438c73
mov eax, dword [edi]
mov dword [0x4a1e54], eax
mov dword [0x4a1e5c], 1
test edi, edi
jne 0x438c9e
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x30
push 0
call eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call eax
mov edi, eax
test edi, edi
je 0x438ec9
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 3
mov dword [edi], vtable.CVolObject.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 4
lea eax, [edi + 0xc]
push eax
mov dword [edi], vtable.CVolSoundEnv.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 5
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x438cf6
call eax
mov edi, eax
push 0x4a1efc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4a1f34]
mov ecx, dword [0x4a1f30]
sub ecx, edx
mov dword [ebp - 0x20], edx
cmp ecx, 4
jl 0x438d28
mov eax, dword [0x4a1f2c]
mov dword [edx + eax], edi
add dword [0x4a1f34], 4
jmp 0x438d3c
lea eax, [edx + 4]
mov ecx, 0x4a1f20
push eax
call fcn.0043fce0
mov ecx, dword [ebp - 0x20]
mov dword [eax + ecx], edi
push 0x4a1efc
call esi
lea esi, [edi + 0xc]
push esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 6
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x438d82
call fcn.0042ceb0
test eax, eax
jne 0x438d76
mov dword [edi + 0x2c], 1
lea edi, [eax + 1]
jmp 0x438d85
mov dword [edi + 0x2c], 0xffffffff
or edi, 0xffffffff
jmp 0x438d85
mov edi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jle 0x438e42
cmp dword [0x4a1e58], 0x70
jl 0x438dd0
push 0x4a1e5c
call fcn.00440560
mov esi, dword [0x4a1e54]
add esp, 4
test esi, esi
je 0x438dc2
mov eax, dword [esi]
mov dword [0x4a1e54], eax
mov dword [0x4a1e5c], 1
test esi, esi
jne 0x438deb
push 0x70
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x438ec9
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 7
mov ecx, esi
call fcn.004373a0
mov byte [ebp - 4], 8
mov dword [esi], vtable.CVolMP3Sound.0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x24]
push dword [ebp + 0xc]
mov dword [edi], esi
mov ecx, esi
push dword [ebp - 0x28]
movsd xmm3, qword [edi + 0x10]
movsd xmm2, qword [edi + 8]
call fcn.00438300
test eax, eax
je 0x438e45
mov eax, 1
jmp 0x438e59
mov edi, dword [ebp - 0x24]
mov ecx, dword [edi]
test ecx, ecx
je 0x438e57
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452408
mov esp, ebp
pop ebp
ret 8
push 0x4b1da8
call fcn.0045254c
add esp, 4
cmp dword [0x4b1da8], 0xffffffff
jne 0x438bc1
mov dword [ebp - 4], 2
mov ecx, 0x4b1dc0
push str.CVolSoundEnv
mov dword [0x4b1dbc], 0x436f00
call fcn.00402b50
mov dword [ebp - 4], 0xffffffff
push 0x4b1da8
call fcn.00452502
add esp, 4
jmp 0x438bc1
push 0xffffffffffffffff
call fcn.00457262
int3