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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46f883
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov edi, dword [esi + 0x2c]
cmp edi, ebx
je 0x42192c
mov eax, edi
mov edi, dword [edi + 4]
push eax
call fcn.00461db1
add esp, 4
cmp edi, ebx
jne 0x42191a
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov eax, dword [esi + 0x38]
cmp eax, ebx
jne 0x4219ae
mov eax, ebx
mov dword [esp + 0x10], 1
cmp eax, ebx
jne 0x4219a1
push 0xc
call fcn.00461d88
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x108], ebx
je 0x421971
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00422730
jmp 0x421973
xor eax, eax
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0x2c]
inc edi
cmp ecx, ebx
mov dword [esi + 0x34], edi
jne 0x42198e
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
xor al, al
jmp 0x421fe5
mov dword [ecx + 8], eax
mov edx, dword [esi + 0x2c]
mov dword [eax + 4], edx
mov dword [esi + 0x2c], eax
xor al, al
jmp 0x421fe5
mov dword [eax], 1
xor al, al
jmp 0x421fe5
mov edx, dword [esp + 0x110]
mov ecx, dword [eax]
push 2
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
je 0x421a57
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x10], 4
cmp eax, ebx
jne 0x421a31
push 0xc
call fcn.00461d88
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x108], 1
je 0x421a00
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00422730
jmp 0x421a02
xor eax, eax
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0x2c]
inc edi
cmp ecx, ebx
mov dword [esp + 0x108], 0xffffffff
mov dword [esi + 0x34], edi
jne 0x421a23
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
jmp 0x421a37
mov dword [ecx + 8], eax
mov edx, dword [esi + 0x2c]
mov dword [eax + 4], edx
mov dword [esi + 0x2c], eax
jmp 0x421a37
mov dword [eax], 4
push str.err_
call fcn.00418070
mov eax, dword [esi + 0x38]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x38], ebx
xor al, al
jmp 0x421fe5
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x64]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x38]
lea edi, [esi + 0x3c]
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], 0x24
mov dword [esp + 0x6c], 1
mov edx, dword [eax]
push edi
push ecx
push eax
call dword [edx + 0xc]
test eax, eax
je 0x421b20
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x10], 5
cmp eax, ebx
jne 0x421afa
push 0xc
call fcn.00461d88
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x108], 2
je 0x421ac9
lea edx, [esp + 0x10]
mov ecx, eax
push edx
call fcn.00422730
jmp 0x421acb
xor eax, eax
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0x2c]
inc edi
cmp ecx, ebx
mov dword [esp + 0x108], 0xffffffff
mov dword [esi + 0x34], edi
jne 0x421aec
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
jmp 0x421b00
mov dword [ecx + 8], eax
mov ecx, dword [esi + 0x2c]
mov dword [eax + 4], ecx
mov dword [esi + 0x2c], eax
jmp 0x421b00
mov dword [eax], 5
push str.err__Primary_Sound_Buffer
call fcn.00418070
mov eax, dword [esi + 0x38]
add esp, 4
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 0x38], ebx
xor al, al
jmp 0x421fe5
mov ebp, dword [edi]
push ebx
lea ecx, [esp + 0x90]
push 0x12
mov eax, dword [ebp]
push ecx
push ebp
call dword [eax + 0x14]
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x38]
lea ecx, [esp + 0xa0]
mov dword [esp + 0xa0], 0x60
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x10]
cmp eax, ebx
jne 0x421bdb
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xac]
mov edx, ecx
and dl, 2
neg dl
sbb edx, edx
neg edx
inc edx
cmp eax, 0xac44
jb 0x421b8a
mov eax, 0xac44
and cl, 8
neg cl
sbb ecx, ecx
xor edi, edi
neg ecx
mov dword [esp + 0x1c], edi
inc ecx
mov dword [esp + 0x20], edi
and eax, 0xffff
push ecx
mov dword [esp + 0x28], edi
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x30], edi
push edx
push eax
mov word [esp + 0x3c], di
mov word [esp + 0x2c], 1
call fcn.00421230
mov ecx, dword [ebp]
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
push ebp
call dword [ecx + 0x38]
cmp eax, ebx
je 0x421d2e
xor eax, eax
mov edi, 0x10
mov dword [esp + 0x1c], eax
mov word [esp + 0x1c], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.00421290
mov edx, dword [ebp]
add esp, 8
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [edx + 0x38]
cmp eax, ebx
jl 0x421c4d
xor ecx, ecx
mov edx, dword [ebp]
mov dword [esp + 0x30], ecx
push ebx
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], ecx
push 0x12
mov dword [esp + 0x44], ecx
push eax
push ebp
mov word [esp + 0x50], cx
mov word [esp + 0x40], 1
call dword [edx + 0x14]
cmp eax, ebx
jge 0x421c52
dec edi
jns 0x421bfe
cmp eax, ebx
je 0x421d2e
xor ecx, ecx
mov edx, dword [ebp]
mov dword [esp + 0x30], ecx
push ebx
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], ecx
push 0x12
mov dword [esp + 0x44], ecx
push eax
push ebp
mov word [esp + 0x50], cx
mov word [esp + 0x40], 1
call dword [edx + 0x14]
cmp eax, ebx
je 0x421d2e
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x10], 7
cmp eax, ebx
jne 0x421cf0
push 0xc
call fcn.00461d88
add esp, 4
mov dword [esp + 0x88], eax
cmp eax, ebx
mov dword [esp + 0x108], 3
je 0x421cca
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00422730
jmp 0x421ccc
xor eax, eax
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0x2c]
inc edi
cmp ecx, ebx
mov dword [esi + 0x34], edi
jne 0x421ce2
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
jmp 0x421cf6
mov dword [ecx + 8], eax
mov edx, dword [esi + 0x2c]
mov dword [eax + 4], edx
mov dword [esi + 0x2c], eax
jmp 0x421cf6
mov dword [eax], 7
mov eax, dword [0x48b194]
mov dword [esp + 0x14], eax
push ebx
push str.DirectSound
mov ecx, 0x48efa8
mov dword [esp + 0x110], 4
call fcn.00401b40
lea ecx, [esp + 0x14]
mov dword [esp + 0x108], 0xffffffff
call fcn.00462047
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x4c], ecx
lea edi, [esp + 0x64]
mov dword [esp + 0x50], ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x54], ecx
lea ebp, [esi + 0x40]
mov dword [esp + 0x58], ecx
push ebx
mov word [esp + 0x60], cx
mov ecx, 9
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x78], edx
lea edx, [esp + 0x68]
mov word [esp + 0x50], 1
mov word [esp + 0x52], 2
mov dword [esp + 0x54], 0xac44
mov word [esp + 0x5e], 0x10
mov word [esp + 0x5c], 4
mov dword [esp + 0x58], 0x2b110
mov dword [esp + 0x68], 0x24
mov dword [esp + 0x6c], 0x8002
mov dword [esp + 0x70], 0x190
mov ecx, dword [eax]
push ebp
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x421e40
mov eax, dword [esi + 0x2c]
cmp eax, ebx
jne 0x421e26
push 0xc
call fcn.00461d88
add esp, 4
cmp eax, ebx
je 0x421ddc
mov dword [eax], 8
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x421dde
xor eax, eax
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0x2c]
inc edi
cmp ecx, ebx
mov dword [esi + 0x34], edi
jne 0x421e06
push 0x489034
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
call fcn.00418070
add esp, 4
xor al, al
jmp 0x421fe5
mov dword [ecx + 8], eax
mov ecx, dword [esi + 0x2c]
mov dword [eax + 4], ecx
push 0x489034
mov dword [esi + 0x2c], eax
call fcn.00418070
add esp, 4
xor al, al
jmp 0x421fe5
push 0x489034
mov dword [eax], 8
call fcn.00418070
add esp, 4
xor al, al
jmp 0x421fe5
lea ecx, [esp + 0x48]
push ebx
push ecx
lea ecx, [esp + 0x68]
mov eax, dword [ebp]
push ecx
lea ecx, [esp + 0x50]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push ecx
push ebx
push eax
call dword [edx + 0x2c]
test eax, eax
je 0x421ef6
mov eax, dword [esi + 0x2c]
cmp eax, ebx
jne 0x421edc
push 0xc
call fcn.00461d88
add esp, 4
cmp eax, ebx
je 0x421e92
mov dword [eax], 9
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x421e94
xor eax, eax
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0x2c]
inc edi
cmp ecx, ebx
mov dword [esi + 0x34], edi
jne 0x421ebc
push 0x489018
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
call fcn.00418070
add esp, 4
xor al, al
jmp 0x421fe5
mov dword [ecx + 8], eax
mov edx, dword [esi + 0x2c]
mov dword [eax + 4], edx
push 0x489018
mov dword [esi + 0x2c], eax
call fcn.00418070
add esp, 4
xor al, al
jmp 0x421fe5
push 0x489018
mov dword [eax], 9
call fcn.00418070
add esp, 4
xor al, al
jmp 0x421fe5
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x421f3a
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
je 0x421f1a
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x421f3a
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
je 0x421f3a
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
mov eax, dword [ebp]
push edx
mov edx, dword [esp + 0x64]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x4c]
push edx
push edi
push eax
call dword [ecx + 0x4c]
test eax, eax
je 0x421fd5
mov eax, dword [esi + 0x2c]
cmp eax, ebx
jne 0x421fbe
push 0xc
call fcn.00461d88
add esp, 4
cmp eax, ebx
je 0x421f7a
mov dword [eax], 0xa
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x421f7c
xor eax, eax
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0x2c]
inc edi
cmp ecx, ebx
mov dword [esi + 0x34], edi
jne 0x421fa1
push 0x488ffc
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
call fcn.00418070
add esp, 4
xor al, al
jmp 0x421fe5
mov dword [ecx + 8], eax
mov ecx, dword [esi + 0x2c]
mov dword [eax + 4], ecx
push 0x488ffc
mov dword [esi + 0x2c], eax
call fcn.00418070
add esp, 4
xor al, al
jmp 0x421fe5
push 0x488ffc
mov dword [eax], 0xa
call fcn.00418070
add esp, 4
xor al, al
jmp 0x421fe5
mov ebp, dword [ebp]
push 1
push ebx
push ebx
mov edx, dword [ebp]
push ebp
call dword [edx + 0x30]
mov al, 1
mov ecx, dword [esp + 0x100]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xfc
ret 4