Function at 0x8531e0
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 0x853279
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 0x853272
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x85377f
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 0x853746
test ebx, ebx
jne 0x85333c
lea edx, [esp + 0x50]
push 0x426630
push edx
call fcn.00853010
add esp, 8
test eax, eax
je 0x85331f
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.00853150
mov esi, dword [esp + 0x20]
test esi, esi
je 0x85331b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x8532e0
sub eax, edx
sar eax, 1
add eax, 1
push eax
push esi
call fcn.00861f3a
push 0x4266ec
push esi
call fcn.00861c85
add esp, 0x10
test eax, eax
je 0x853310
mov ebx, 1
push esi
call dword [fcn.00423264]
test ebx, ebx
jne 0x853338
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
push ecx
add edi, 1
push edi
push esi
call ebp
test eax, eax
jne 0x853298
jmp 0x853746
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 0x853746
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 0x8536b5
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 0x8536e0
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 0x8533d0
sub eax, edx
sar eax, 1
add eax, 1
push eax
push esi
call fcn.00861f3a
push 0x426740
push esi
call fcn.00861c85
add esp, 0x10
test eax, eax
je 0x8536b1
mov ecx, dword [esp + 0x98]
push ecx
push esi
call fcn.00861c85
add esp, 8
test eax, eax
je 0x8536b1
push esi
lea ecx, [esp + 0x18]
call fcn.00852840
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.00853900
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 2
call fcn.00852690
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 0x85347f
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 0x8534b4
push 0x426750
push eax
call fcn.00861c85
add esp, 8
test eax, eax
je 0x8534b4
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x8534b4
add eax, 1
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00853840
push 0x426758
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00853a70
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 3
call fcn.00852690
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 0x853505
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.008537b0
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
mov byte [esp + 0x94], 4
call fcn.00853b50
add esp, 4
push eax
mov ecx, ebx
mov byte [esp + 0x94], 5
call fcn.00852690
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 0x853561
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.00853a70
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x50]
mov bl, 6
push edx
mov byte [esp + 0xa8], bl
call fcn.008539b0
add esp, 0x18
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 7
call fcn.00852690
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 0x8535ca
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 0x8535f2
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 0x85365d
push pe_nt_image_headers32
call fcn.00856da6
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 0x8536e9
mov eax, dword [esp + 0x24]
push eax
call dword [0x423020]
jmp 0x853662
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 0x853689
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 0x8536b1
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 0x853372
jmp 0x853746
push edi
call dword [fcn.00423264]
jmp 0x853746
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 0x85371a
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 0x853742
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 0x85377b
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.00861f4d
add esp, 0x80
ret 8