Function at 0x5d84b0
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 [0x4232a8]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
jne 0x5d8549
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 0x5d8542
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x5d8a4f
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 0x5d8a16
test ebx, ebx
jne 0x5d860c
lea edx, [esp + 0x50]
push 0x426630
push edx
call fcn.005d82e0
add esp, 8
test eax, eax
je 0x5d85ef
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.005d8420
mov esi, dword [esp + 0x20]
test esi, esi
je 0x5d85eb
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5d85b0
sub eax, edx
sar eax, 1
add eax, 1
push eax
push esi
call fcn.005e720a
push 0x4266ec
push esi
call fcn.005e6f55
add esp, 0x10
test eax, eax
je 0x5d85e0
mov ebx, 1
push esi
call dword [fcn.00423264]
test ebx, ebx
jne 0x5d8608
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
push ecx
add edi, 1
push edi
push esi
call ebp
test eax, eax
jne 0x5d8568
jmp 0x5d8a16
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 [fcn.00423298]
cmp eax, ebp
je 0x5d8a16
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 0x5d8985
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 0x5d89b0
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 0x5d86a0
sub eax, edx
sar eax, 1
add eax, 1
push eax
push esi
call fcn.005e720a
push 0x426740
push esi
call fcn.005e6f55
add esp, 0x10
test eax, eax
je 0x5d8981
mov ecx, dword [esp + 0x98]
push ecx
push esi
call fcn.005e6f55
add esp, 8
test eax, eax
je 0x5d8981
push esi
lea ecx, [esp + 0x18]
call fcn.005d7b10
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.005d8bd0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 2
call fcn.005d7960
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 0x5d874f
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 0x5d8784
push 0x426750
push eax
call fcn.005e6f55
add esp, 8
test eax, eax
je 0x5d8784
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x5d8784
add eax, 1
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.005d8b10
push 0x426758
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.005d8d40
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 3
call fcn.005d7960
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 0x5d87d5
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.005d8a80
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
mov byte [esp + 0x94], 4
call fcn.005d8e20
add esp, 4
push eax
mov ecx, ebx
mov byte [esp + 0x94], 5
call fcn.005d7960
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 0x5d8831
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.005d8d40
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x50]
mov bl, 6
push edx
mov byte [esp + 0xa8], bl
call fcn.005d8c80
add esp, 0x18
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 7
call fcn.005d7960
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 0x5d889a
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 0x5d88c2
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 0x5d892d
push 0x100
call fcn.005dc076
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 0x5d89b9
mov eax, dword [esp + 0x24]
push eax
call dword [fcn.00423020]
jmp 0x5d8932
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 0x5d8959
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 0x5d8981
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 [fcn.00423298]
test eax, eax
jne 0x5d8642
jmp 0x5d8a16
push edi
call dword [fcn.00423264]
jmp 0x5d8a16
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 0x5d89ea
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 0x5d8a12
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 0x5d8a4b
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.005e721d
add esp, 0x80
ret 8