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

Disassembly:
sub esp, 0x110
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
push esi
mov esi, ecx
add dword [esi + 0xf0], 1
mov ebx, 0
push edi
adc dword [esi + 0xf4], ebx
cmp byte [esi + 0x160], bl
mov dword [esp + 0x10], 0x927c0
je 0x484967
mov byte [esi + 0x160], bl
call fcn.00483df0
mov eax, dword [esi + 0x84]
sub eax, ebx
je 0x484ed5
sub eax, 1
je 0x484983
sub eax, 2
jne 0x484fb5
mov ecx, dword [esi + 0x8c]
cmp dword [ecx + 0x5c], ebx
jle 0x484b75
mov eax, dword [esi + 0x194]
mov edx, dword [esi + 0x190]
push eax
push edx
call fcn.00402220
mov ecx, dword [esi + 0x8c]
cmp eax, dword [ecx + 0x5c]
jg 0x4849ec
mov edx, dword [esi + 0x1ec]
cmp edx, 0xbb8
jle 0x4849c5
cmp eax, 0x7d0
jg 0x4849ec
cmp edx, 0x3e8
jle 0x4849d4
cmp eax, 0x1388
jg 0x4849ec
cmp dword [esi + 0x1dc], 2
jge 0x484b50
cmp eax, 0x2710
jle 0x484b50
mov edi, dword [esi + 0x1dc]
cmp edi, ebx
jle 0x484a01
mov eax, dword [esi + 0x1d8]
cdq
idiv edi
mov ebx, eax
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 7
call fcn.0040167c
movzx eax, ax
mov byte [esp + 0x1e], ah
mov byte [esp + 0x1f], al
mov eax, dword [esi + 0x1ec]
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x20], cl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x21], dl
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x22], cl
mov byte [esp + 0x23], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x25], al
mov eax, dword [esi + 0x1e0]
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x24], dl
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x28], dl
mov ecx, ebx
shr ecx, 8
mov byte [esp + 0x26], cl
mov ecx, eax
shr ecx, 0x10
mov byte [esp + 0x29], cl
mov edx, eax
shr edx, 8
mov byte [esp + 0x2b], al
mov eax, dword [esi + 0x1e4]
mov byte [esp + 0x2a], dl
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x2c], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
mov byte [esp + 0x2d], dl
shr ecx, 8
mov byte [esp + 0x2f], al
mov eax, dword [esi + 0x1e8]
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x2e], cl
mov ecx, eax
mov byte [esp + 0x30], dl
shr ecx, 0x10
mov edx, eax
mov byte [esp + 0x33], al
mov eax, dword [esi + 0xa8]
shr edx, 8
mov byte [esp + 0x31], cl
mov ecx, dword [esi + 0xac]
add eax, 1
adc ecx, 0
push ecx
mov byte [esp + 0x36], dl
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x33], bl
call fcn.004817f0
mov ecx, dword [esi + 0xb0]
lea edi, [esp + eax + 0x40]
mov eax, dword [esi + 0xb4]
push eax
push ecx
push edi
call fcn.004817f0
add esp, 0x18
add edi, eax
lea edx, [esp + 0x1c]
push 1
sub edi, edx
push edi
mov eax, edx
push eax
mov ecx, esi
call fcn.00483360
mov edi, dword [esi + 0x8c]
lea ebx, [edi + 0x240]
mov ecx, ebx
call fcn.004808e0
mov ebp, dword [edi + 0x238]
mov edi, dword [edi + 0x23c]
mov ecx, ebx
call fcn.004808f0
mov dword [esi + 0x190], ebp
mov dword [esi + 0x194], edi
xor eax, eax
mov ecx, dword [esi + 0x8c]
mov ecx, dword [ecx + 0x5c]
sub ecx, eax
cmp ecx, 0x927c0
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x14]
jl 0x484b6f
lea eax, [esp + 0x10]
mov edx, dword [eax]
mov dword [esp + 0x10], edx
xor ebp, ebp
xor ebx, ebx
lea edi, [esi + 0x164]
nop
cmp dword [edi], 0
je 0x484bb9
mov ecx, dword [edi]
mov eax, dword [ecx + 0x74]
add eax, dword [ecx + 0x70]
add ebp, eax
call fcn.0048b910
cmp dword [esi + 0x8c], 0
mov dword [esp + 0x14], eax
je 0x48500b
cmp eax, dword [esp + 0x10]
lea eax, [esp + 0x14]
jl 0x484bb3
lea eax, [esp + 0x10]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
add ebx, 1
add edi, 4
cmp ebx, 4
jl 0x484b80
mov ebx, dword [esi + 0x8c]
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x484be5
cmp ebp, eax
jl 0x484be5
push 0xd
push 0
mov ecx, esi
call fcn.00483870
jmp 0x48500b
mov edx, dword [esi + 0x1bc]
sub edx, dword [esi + 0x1b8]
cmp edx, 2
jle 0x484c7b
mov ecx, dword [esi + 0x19c]
mov eax, dword [esi + 0x198]
mov dword [esp + 0x18], ecx
lea ebp, [ebx + 0x240]
mov ecx, ebp
mov dword [esp + 0x14], eax
call fcn.004808e0
mov edi, dword [ebx + 0x238]
mov ebx, dword [ebx + 0x23c]
mov ecx, ebp
call fcn.004808f0
sub edi, dword [esp + 0x14]
sbb ebx, dword [esp + 0x18]
mov dword [esp + 0x18], ebx
js 0x484c4b
jg 0x484c46
cmp edi, 0x7fffffff
jbe 0x484c4b
mov edi, DirectSoundCreate
mov edx, dword [esi + 0x8c]
mov eax, dword [edx + 0x48]
cmp edi, eax
jl 0x484c61
mov ecx, esi
call fcn.00483560
jmp 0x484c7b
sub eax, edi
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
jl 0x484c75
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x1a0]
mov edi, dword [esi + 0x8c]
mov edx, dword [esi + 0x1a4]
mov dword [esp + 0x14], ecx
lea ebp, [edi + 0x240]
mov ecx, ebp
mov dword [esp + 0x18], edx
call fcn.004808e0
mov ebx, dword [edi + 0x238]
mov edi, dword [edi + 0x23c]
mov ecx, ebp
call fcn.004808f0
sub ebx, dword [esp + 0x14]
sbb edi, dword [esp + 0x18]
mov dword [esp + 0x18], edi
js 0x484cd4
jg 0x484ccd
cmp ebx, 0x7fffffff
jbe 0x484cd4
mov ecx, DirectSoundCreate
jmp 0x484cd6
mov ecx, ebx
mov eax, dword [esi + 0x200]
test eax, eax
jle 0x484d20
cmp ecx, eax
jl 0x484d00
push 1
push 2
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 6
call fcn.00483360
xor ecx, ecx
mov eax, dword [esi + 0x200]
sub eax, ecx
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
jl 0x484d1a
lea eax, [esp + 0x10]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edi, dword [esi + 0x8c]
cmp dword [edi + 0x30], 0
jle 0x484dfc
mov edx, dword [esi + 0x1b0]
mov eax, dword [esi + 0x1b4]
lea ebp, [edi + 0x240]
mov ecx, ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.004808e0
mov ebx, dword [edi + 0x238]
mov edi, dword [edi + 0x23c]
mov ecx, ebp
call fcn.004808f0
sub ebx, dword [esp + 0x14]
sbb edi, dword [esp + 0x18]
mov dword [esp + 0x18], edi
js 0x484d83
jg 0x484d7c
cmp ebx, 0x7fffffff
jbe 0x484d83
mov ecx, DirectSoundCreate
jmp 0x484d85
mov ecx, ebx
mov edi, dword [esi + 0x8c]
cmp ecx, dword [edi + 0x30]
jl 0x484dd9
lea ebx, [edi + 0x240]
mov ecx, ebx
call fcn.004808e0
mov ebp, dword [edi + 0x238]
mov edi, dword [edi + 0x23c]
mov ecx, ebx
call fcn.004808f0
mov ecx, dword [esi + 0x6c]
push ecx
push ecx
lea edx, [esi + 0x68]
mov ecx, esp
push edx
mov dword [esi + 0x1b0], ebp
mov dword [esi + 0x1b4], edi
call fcn.00480980
mov ecx, dword [esi + 0x8c]
call fcn.004864f0
xor ecx, ecx
mov edi, dword [esi + 0x8c]
mov eax, dword [edi + 0x30]
sub eax, ecx
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
jl 0x484df6
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x84], 3
jne 0x484e87
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x21c]
mov dword [esp + 0x14], ecx
lea ebp, [edi + 0x240]
mov ecx, ebp
mov dword [esp + 0x18], edx
call fcn.004808e0
mov ebx, dword [edi + 0x238]
mov edi, dword [edi + 0x23c]
mov ecx, ebp
call fcn.004808f0
sub ebx, dword [esp + 0x14]
sbb edi, dword [esp + 0x18]
mov dword [esp + 0x18], edi
js 0x484e5a
jg 0x484e55
cmp ebx, 0x7fffffff
jbe 0x484e5a
mov ebx, DirectSoundCreate
mov edi, dword [esi + 0x220]
sub edi, ebx
mov dword [esp + 0x14], edi
js 0x484eb5
mov ecx, esi
call fcn.00482350
test eax, eax
je 0x484eb5
cmp edi, dword [esp + 0x10]
lea eax, [esp + 0x14]
jl 0x484e81
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x154], 0
jle 0x484fb5
mov ecx, esi
call fcn.0040137a
mov ecx, dword [esi + 0x154]
cmp eax, ecx
jl 0x484eca
push 2
push 0
mov ecx, esi
call fcn.00483870
jmp 0x48500b
mov ecx, dword [esi + 0x158]
push ecx
push 0
mov ecx, esi
call fcn.00483870
jmp 0x48500b
sub ecx, eax
cmp ecx, dword [esp + 0x10]
jmp 0x484fa1
cmp dword [esi + 0x150], ebx
jle 0x484efb
mov ecx, esi
call fcn.00481e80
cmp eax, dword [esi + 0x150]
jle 0x484efb
push 5
push ebx
mov ecx, esi
call fcn.00483870
jmp 0x48500b
mov eax, dword [esi + 0x1a4]
mov ecx, dword [esi + 0x1a0]
push eax
push ecx
mov ecx, dword [esi + 0x8c]
call fcn.00402220
mov ecx, dword [esi + 0x8c]
cmp eax, dword [ecx + 0x78]
jl 0x484f90
mov eax, dword [esi + 0x90]
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x22], dl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x23], dl
mov edx, eax
shr edx, 8
mov byte [esp + 0x24], dl
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 1
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 2
mov byte [esp + 0x25], al
mov eax, dword [ecx + 0x50]
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x26], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x27], dl
push 0xe
lea edx, [esp + 0x20]
mov byte [esp + 0x2c], cl
push edx
mov ecx, esi
mov byte [esp + 0x31], al
call fcn.00483270
xor eax, eax
mov ecx, dword [esi + 0x8c]
mov ecx, dword [ecx + 0x78]
sub ecx, eax
cmp ecx, 0x927c0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
jl 0x484faf
lea eax, [esp + 0x10]
mov edx, dword [eax]
mov dword [esp + 0x10], edx
mov edi, dword [esi + 0x8c]
test edi, edi
je 0x48500b
cmp dword [esp + 0x10], 0
jge 0x484fce
mov dword [esp + 0x10], 0
lea ebx, [edi + 0x240]
mov ecx, ebx
call fcn.004808e0
mov ebp, dword [edi + 0x238]
mov edi, dword [edi + 0x23c]
mov ecx, ebx
call fcn.004808f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x8c]
cdq
add eax, ebp
adc edx, edi
add eax, 5
adc edx, 0
push edx
push eax
push esi
call fcn.00485c50
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c118f
add esp, 0x110
ret