Function at 0x5de4e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4228c0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x42bb54]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42bb54]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x40], eax
xor edi, edi
push 0x12
push edi
push edi
push 0x4266bc
mov dword [esp + 0xa0], edi
xor ebx, ebx
mov dword [esp + 0x38], edi
call dword [fcn.004232a8]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
jne 0x5de579
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x98]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5de572
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x5dea7f
mov ebp, dword [fcn.004232a4]
lea ecx, [esp + 0x4c]
push ecx
push edi
push esi
mov dword [esp + 0x58], 0x1c
call ebp
test eax, eax
je 0x5dea46
test ebx, ebx
jne 0x5de63c
lea edx, [esp + 0x50]
push 0x426630
push edx
call fcn.005de310
add esp, 8
test eax, eax
je 0x5de61f
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x4c]
push eax
push esi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x28]
call fcn.005de450
mov esi, dword [esp + 0x20]
test esi, esi
je 0x5de61b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5de5e0
sub eax, edx
sar eax, 1
add eax, 1
push eax
push esi
call fcn.005ed23a
push 0x4266ec
push esi
call fcn.005ecf85
add esp, 0x10
test eax, eax
je 0x5de610
mov ebx, 1
push esi
call dword [fcn.00423264]
test ebx, ebx
jne 0x5de638
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
push ecx
add edi, 1
push edi
push esi
call ebp
test eax, eax
jne 0x5de598
jmp 0x5dea46
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push edx
push edi
push esi
call ebp
lea eax, [esp + 0x68]
push eax
xor ebp, ebp
push ebp
push 0x4266bc
lea ecx, [esp + 0x58]
push ecx
push esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x7c], 0x1c
call dword [0x423298]
cmp eax, ebp
je 0x5dea46
mov ebx, dword [0x423294]
push 0
lea edx, [esp + 0x24]
push edx
push 0
push 0
lea eax, [esp + 0x78]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x20]
push ecx
push 0x40
call dword [fcn.00423268]
mov edi, eax
test edi, edi
je 0x5de9b5
push 0
push 0
mov dword [edi], 6
mov edx, dword [esp + 0x28]
push edx
push edi
lea eax, [esp + 0x78]
push eax
push esi
call ebx
test eax, eax
je 0x5de9e0
lea esi, [edi + 4]
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5de6d0
sub eax, edx
sar eax, 1
add eax, 1
push eax
push esi
call fcn.005ed23a
push 0x426740
push esi
call fcn.005ecf85
add esp, 0x10
test eax, eax
je 0x5de9b1
mov ecx, dword [esp + 0x98]
push ecx
push esi
call fcn.005ecf85
add esp, 8
test eax, eax
je 0x5de9b1
push esi
lea ecx, [esp + 0x18]
call fcn.005ddb40
mov byte [esp + 0x90], 1
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
add eax, 0xfffffffc
push eax
push 4
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
call fcn.005dec00
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 2
call fcn.005dd990
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5de77f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x5de7b4
push 0x426750
push eax
call fcn.005ecf85
add esp, 8
test eax, eax
je 0x5de7b4
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x5de7b4
add eax, 1
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.005deb40
push 0x426758
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.005ded70
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 3
call fcn.005dd990
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5de805
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x6c]
lea ebx, [esp + 0x1c]
call fcn.005deab0
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
mov byte [esp + 0x94], 4
call fcn.005dee50
add esp, 4
push eax
mov ecx, ebx
mov byte [esp + 0x94], 5
call fcn.005dd990
mov byte [esp + 0x90], 4
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5de861
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4267e0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.005ded70
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x50]
mov bl, 6
push edx
mov byte [esp + 0xa8], bl
call fcn.005decb0
add esp, 0x18
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 7
call fcn.005dd990
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5de8ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 4
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5de8f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push edx
push reloc.DSOUND.dll_DirectSoundCreate
call dword [0x423014]
test eax, eax
jne 0x5de95d
push 0x100
call fcn.005e20a6
mov edx, dword [esp + 0x28]
add esp, 4
mov esi, eax
lea eax, [esp + 0x30]
push eax
push esi
lea ecx, [esp + 0x40]
push ecx
push 0
push 0x4267ec
mov ebx, 1
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], 0x80
call dword [0x423024]
test eax, eax
je 0x5de9e9
mov eax, dword [esp + 0x24]
push eax
call dword [0x423020]
jmp 0x5de962
mov ebx, 1
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5de989
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5de9b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push edi
call dword [fcn.00423264]
lea ecx, [esp + 0x68]
push ecx
add ebp, 1
push ebp
push 0x4266bc
lea edx, [esp + 0x58]
push edx
push esi
call dword [0x423298]
test eax, eax
jne 0x5de672
jmp 0x5dea46
push edi
call dword [fcn.00423264]
jmp 0x5dea46
mov eax, dword [esp + 0x40]
mov dword [eax], esi
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x28], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5dea1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5dea42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push esi
call dword [fcn.004232ac]
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x98]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5dea7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005ed24d
add esp, 0x80
ret 8