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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 1
jne 0x421f42
cmp dword [ebp + 0xc], 1
jne 0x421f36
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
jmp 0x421f3d
mov dword [ebp - 0xc], 0
jmp 0x422290
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 2
jne 0x421ff5
cmp dword [ebp + 0xc], 1
jne 0x421f65
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
jmp 0x421ff0
cmp dword [ebp + 0xc], 2
jne 0x421f79
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
jmp 0x421ff0
cmp dword [ebp + 0xc], 0x100
jne 0x421f90
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
jmp 0x421ff0
cmp dword [ebp + 0xc], 0x200
jne 0x421fa7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x421ff0
cmp dword [ebp + 0xc], 0x400
jne 0x421fbe
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
jmp 0x421ff0
cmp dword [ebp + 0xc], 0x40
jne 0x421fd2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xc], eax
jmp 0x421ff0
cmp dword [ebp + 0xc], 0x80
jne 0x421fe9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x421ff0
mov dword [ebp - 0xc], 0
jmp 0x422290
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 3
jne 0x42209a
cmp dword [ebp + 0xc], 1
jne 0x422016
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x422095
cmp dword [ebp + 0xc], 2
jne 0x42202a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], ecx
jmp 0x422095
cmp dword [ebp + 0xc], 4
jne 0x42203e
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
jmp 0x422095
cmp dword [ebp + 0xc], 8
jne 0x422052
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0xc], ecx
jmp 0x422095
cmp dword [ebp + 0xc], 0x10
jne 0x422066
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0xc], ecx
jmp 0x422095
cmp dword [ebp + 0xc], 0x20
jne 0x42207a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0xc], ecx
jmp 0x422095
cmp dword [ebp + 0xc], 0x40
jne 0x42208e
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc], ecx
jmp 0x422095
mov dword [ebp - 0xc], 0
jmp 0x422290
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 4
jne 0x422290
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00421ee1
add esp, 8
test eax, eax
jne 0x4220c2
xor eax, eax
jmp 0x4223ad
cmp dword [ebp + 0xc], 1
jne 0x4220d9
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 2
jne 0x4220f0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 4
jne 0x422107
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 8
jne 0x42211e
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x10
jne 0x422135
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x20
jne 0x42214c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x40
jne 0x422163
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x800
jne 0x42217d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x1000
jne 0x422197
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x2000
jne 0x4221b1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x4000
jne 0x4221cb
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x100000
jne 0x4221e5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x200000
jne 0x4221ff
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x400000
jne 0x422216
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x8000
jne 0x42222d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x10000
jne 0x422244
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x20000
jne 0x42225b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x40000
jne 0x422272
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0xc], ecx
jmp 0x422290
cmp dword [ebp + 0xc], 0x80000
jne 0x422289
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0xc], ecx
jmp 0x422290
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x54], 0
cmp dword [ebp - 0xc], 0
je 0x42235b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x78], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ecx + 0x54], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x10], 0
je 0x422317
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
and eax, 0x80000000
test eax, eax
jne 0x4222f9
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
call dword [ecx + 0x4c]
add esp, 0xc
jmp 0x422317
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
and eax, 0x7fffffff
push eax
push DirectSoundCreate
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
call dword [edx + 0x4c]
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x422352
push 0xc0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
sar ecx, 0x10
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
sar eax, 0x10
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
sar edx, 0x10
push edx
call fcn.0046a420
add esp, 0x14
mov dword [ebp - 8], 1
jmp 0x42236a
mov eax, dword [ebp + 8]
mov dword [eax + 0x6c], 0
or eax, 0xffffffff
jmp 0x4223ad
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x54], 0
je 0x4222a1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
and eax, 0x20000
test eax, eax
je 0x4223aa
push 5
call fcn.00450378
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x54]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret