Function at 0x4adf74
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x48
mov ebx, dword [esp + 0x5c]
movzx ebp, byte [ebx + 0x125]
movzx edx, byte [ebx + 0x1f9]
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + 4]
mov esi, dword [ebx + 0xec]
mov dword [esp + 0x10], edx
movzx edx, byte [ecx + 0xb]
mov dword [esp + 0x34], esi
add edx, 7
sar edx, 3
test ebp, 8
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 0xe8]
mov dword [esp + 0xc], edx
je 0x4ae00f
cmp ebp, 8
je 0x4ae67f
lea edx, [esi + 1]
test eax, eax
jbe 0x4ae678
xor edi, edi
xor ecx, ecx
movzx ebx, byte [edx]
cmp ebx, 0x80
jl 0x4adfed
neg ebx
add ebx, 0x100
add edi, ebx
add edx, 1
add ecx, 1
cmp ecx, eax
jb 0x4adfda
mov ebx, dword [esp + 0x5c]
movzx ecx, byte [ebx + 0x1f8]
cmp ecx, 2
je 0x4ae5e0
jmp 0x4ae014
mov edi, DirectSoundCreate
cmp ebp, 0x10
je 0x4aef9c
test ebp, 0x10
je 0x4ae140
movzx ecx, byte [ebx + 0x1f8]
mov dword [esp + 0x40], edi
cmp ecx, 2
je 0x4ae771
lea ecx, [esi + 1]
mov dword [esp + 0x24], ecx
mov dword [esp + 8], ecx
mov ecx, dword [ebx + 0xf0]
add ecx, 1
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4ae768
mov ebx, dword [esp + 8]
mov dword [esp + 0x18], edi
mov edi, ecx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x3c]
movzx eax, byte [ebx]
mov byte [ebp], al
cmp eax, 0x80
jl 0x4ae08f
neg eax
add eax, 0x100
add edx, eax
add ecx, 1
add ebx, 1
add ebp, 1
cmp ecx, edi
jb 0x4ae07b
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x5c]
cmp ecx, eax
jae 0x4ae124
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 8]
movzx eax, byte [ebp]
movzx edi, byte [esi]
sub eax, edi
movzx eax, al
mov byte [ebx], al
cmp eax, 0x80
jl 0x4ae0f2
neg eax
add eax, 0x100
add edx, eax
mov eax, dword [esp + 0x40]
cmp edx, eax
ja 0x4ae74f
mov eax, dword [esp + 0x1c]
add ecx, 1
add ebp, 1
add esi, 1
add ebx, 1
cmp ecx, eax
jb 0x4ae0d6
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
movzx ecx, byte [ebx + 0x1f8]
cmp ecx, 2
je 0x4ae689
cmp edx, edi
jae 0x4ae140
mov esi, dword [ebx + 0xf0]
mov edi, edx
cmp ebp, 0x20
je 0x4aef31
test ebp, 0x20
je 0x4ae221
movzx edx, byte [ebx + 0x1f8]
mov dword [esp + 0x40], edi
cmp edx, 2
je 0x4ae91f
mov ecx, dword [esp + 0x34]
lea ecx, [ecx + 1]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0xf4]
add ecx, 1
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xc]
lea ecx, [ecx + 1]
test eax, eax
mov dword [esp + 8], ecx
jbe 0x4ae918
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x24]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 8]
add ebp, 1
movzx edi, byte [ebp - 1]
add esi, 1
movzx eax, byte [esi - 1]
sub eax, edi
movzx eax, al
mov edi, ebx
add ebx, 1
mov byte [edi], al
add edx, 1
cmp eax, 0x80
jl 0x4ae1df
neg eax
add eax, 0x100
add ecx, eax
mov eax, dword [esp + 0x40]
cmp ecx, eax
ja 0x4ae8f8
mov eax, dword [esp + 0x1c]
cmp edx, eax
jb 0x4ae1b4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
movzx edx, byte [ebx + 0x1f8]
cmp edx, 2
je 0x4ae834
cmp ecx, edi
jae 0x4ae221
mov esi, dword [ebx + 0xf4]
mov edi, ecx
cmp ebp, 0x40
je 0x4aee42
test ebp, 0x40
je 0x4ae3a2
movzx ecx, byte [ebx + 0x1f8]
mov dword [esp + 0x40], edi
cmp ecx, 2
je 0x4aeae5
mov ecx, dword [esp + 0x34]
lea ecx, [ecx + 1]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0xf8]
add ecx, 1
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xc]
lea ecx, [ecx + 1]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4aeadc
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x24]
movzx edi, byte [esi]
movzx eax, byte [ebp]
sar edi, 1
sub eax, edi
movzx eax, al
mov edi, ebx
add ebx, 1
mov byte [edi], al
add ebp, 1
add esi, 1
cmp eax, 0x80
jl 0x4ae2c6
neg eax
add eax, 0x100
add edx, eax
mov eax, dword [esp + 0x38]
add ecx, 1
cmp ecx, eax
jb 0x4ae29d
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x20]
cmp ecx, eax
jae 0x4ae386
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
movzx ebx, byte [esi]
mov edi, eax
add eax, 1
add esi, 1
mov dword [esp + 0x3c], eax
movzx eax, byte [edi]
add ebx, eax
movzx eax, byte [ebp]
mov edi, ebx
shr edi, 0x1f
add ebx, edi
sar ebx, 1
sub eax, ebx
movzx eax, al
add ebp, 1
mov ebx, dword [esp + 0x30]
mov edi, ebx
add ebx, 1
mov dword [esp + 0x30], ebx
mov byte [edi], al
cmp eax, 0x80
jl 0x4ae35d
neg eax
add eax, 0x100
add edx, eax
mov eax, dword [esp + 0x40]
cmp edx, eax
ja 0x4aeac3
mov eax, dword [esp + 0x1c]
add ecx, 1
cmp ecx, eax
jb 0x4ae313
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
movzx ecx, byte [ebx + 0x1f8]
cmp ecx, 2
je 0x4ae9fe
cmp edx, edi
jae 0x4ae3a2
mov esi, dword [ebx + 0xf8]
mov edi, edx
cmp ebp, 0x80
je 0x4aed18
test ebp, 0x80
je 0x4ae58f
movzx ecx, byte [ebx + 0x1f8]
mov ebp, edi
cmp ecx, 2
je 0x4aec6d
mov ecx, dword [esp + 0x34]
add ecx, 1
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + 0xfc]
add ecx, 1
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xc]
add ecx, 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4aec64
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebp]
movzx edi, byte [esi]
sub eax, edi
movzx eax, al
mov edi, ebx
add ebx, 1
mov byte [edi], al
add ebp, 1
add esi, 1
cmp eax, 0x80
jl 0x4ae44a
neg eax
add eax, 0x100
add edx, eax
mov eax, dword [esp + 0x38]
add ecx, 1
cmp ecx, eax
jb 0x4ae423
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x40]
cmp ecx, eax
jae 0x4ae575
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 8]
mov ebp, dword [esp + 0x34]
movzx esi, byte [eax]
movzx edi, byte [edx]
mov dword [esp + 0x44], edi
mov ebx, ebp
movzx ebx, byte [ebx]
mov dword [esp + 0x38], ebx
add ebp, 1
mov dword [esp + 0x34], ebp
mov ebp, esi
sub ebp, edi
sub ebx, edi
add eax, 1
add edx, 1
test ebp, ebp
jl 0x4aec50
mov dword [esp + 0x2c], ebp
test ebx, ebx
jl 0x4aec43
mov dword [esp + 0x28], ebx
add ebp, ebx
test ebp, ebp
jl 0x4aec5d
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
cmp ebx, edi
jg 0x4ae505
cmp ebx, ebp
jg 0x4ae505
mov esi, dword [esp + 0x38]
jmp 0x4ae50f
mov ebx, edi
cmp ebx, ebp
jle 0x4ae50f
mov esi, dword [esp + 0x44]
mov ebp, dword [esp + 0x24]
movzx ebx, byte [ecx]
sub ebx, esi
movzx ebx, bl
mov byte [ebp], bl
add ecx, 1
add ebp, 1
mov dword [esp + 0x24], ebp
cmp ebx, 0x80
jl 0x4ae538
neg ebx
add ebx, 0x100
mov ebp, dword [esp + 0x20]
add ebp, ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x20], ebp
cmp ebp, ebx
ja 0x4aec30
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x1c]
add ebx, 1
mov dword [esp + 0x30], ebx
cmp ebx, ebp
jb 0x4ae4a3
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x5c]
movzx ecx, byte [ebx + 0x1f8]
cmp ecx, 2
je 0x4aeba8
cmp edx, edi
jae 0x4ae58f
mov esi, dword [ebx + 0xfc]
mov eax, ebx
mov edx, esi
call fcn.004af0ec
movzx ecx, byte [ebx + 0x1f9]
test ecx, ecx
jle 0x4ae5d8
mov ecx, dword [esp + 0x10]
cmp ecx, 1
jle 0x4aed0e
mov edi, ecx
mov ecx, 1
mov ebp, dword [ebx + 0x1fc]
movzx eax, byte [ecx + ebp - 1]
mov byte [ecx + ebp], al
add ecx, 1
cmp ecx, edi
jl 0x4ae5b7
mov ebx, dword [ebx + 0x1fc]
movzx eax, byte [esi]
mov byte [ecx + ebx], al
add esp, 0x48
pop ebx
pop ebp
pop esi
pop edi
ret
mov ecx, dword [esp + 0x10]
movzx edx, di
shr edi, 0xa
and edi, 0x3fffc0
test ecx, ecx
jle 0x4ae646
mov ecx, dword [ebx + 0x1fc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
xor ecx, ecx
mov ebp, dword [esp + 0x24]
movzx eax, byte [ecx + ebp]
add ecx, 1
test eax, eax
jne 0x4ae636
mov eax, dword [ebx + 0x200]
movzx eax, word [eax + ecx*2 - 2]
imul edx, eax
imul edi, eax
shr edx, 8
shr edi, 8
cmp ecx, esi
jl 0x4ae614
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov ecx, dword [ebx + 0x208]
movzx ecx, word [ecx]
imul edx, ecx
imul ecx, edi
shr edx, 3
shr ecx, 3
cmp ecx, 0x3fffc0
jbe 0x4ae66d
mov edi, DirectSoundCreate
jmp 0x4ae014
shl ecx, 0xa
lea edi, [edx + ecx]
jmp 0x4ae014
xor edi, edi
jmp 0x4adffd
mov edi, DirectSoundCreate
jmp 0x4ae014
movzx ecx, dx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
shr edx, 0xa
and edx, 0x3fffc0
test ecx, ecx
jle 0x4ae702
mov ecx, dword [ebx + 0x1fc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], esi
mov esi, ecx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 8]
movzx eax, byte [ecx + esi]
add ecx, 1
cmp eax, 1
jne 0x4ae6ea
mov eax, dword [ebx + 0x204]
movzx eax, word [eax + ecx*2 - 2]
imul ebp, eax
imul edx, eax
shr ebp, 8
shr edx, 8
cmp ecx, edi
jl 0x4ae6c7
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x20]
mov ecx, dword [ebx + 0x20c]
movzx ecx, word [ecx + 2]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
imul esi, ecx
imul ecx, edx
shr esi, 3
shr ecx, 3
mov dword [esp + 8], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
cmp ecx, 0x3fffc0
jbe 0x4ae73e
mov edx, DirectSoundCreate
jmp 0x4ae134
mov edx, ecx
mov ecx, dword [esp + 8]
shl edx, 0xa
lea edx, [ecx + edx]
jmp 0x4ae134
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
jmp 0x4ae124
xor edx, edx
xor ecx, ecx
jmp 0x4ae0b6
movzx ecx, di
mov dword [esp + 0x40], ecx
mov ecx, edi
shr ecx, 0xa
and ecx, 0x3fffc0
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x4ae7f2
mov edx, dword [ebx + 0x1fc]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x40]
movzx eax, byte [ecx + edx]
add ecx, 1
cmp eax, 1
jne 0x4ae7d6
mov eax, dword [ebx + 0x204]
movzx eax, word [eax + ecx*2 - 2]
imul ebp, eax
imul esi, eax
shr ebp, 8
shr esi, 8
cmp ecx, edi
jl 0x4ae7b3
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x20]
mov ecx, dword [ebx + 0x20c]
movzx edx, word [ecx + 2]
mov ecx, dword [esp + 0x40]
imul ecx, edx
imul edx, dword [esp + 8]
shr ecx, 3
mov dword [esp + 0x40], ecx
shr edx, 3
cmp edx, 0x3fffc0
jbe 0x4ae828
mov ecx, DirectSoundCreate
mov dword [esp + 0x40], ecx
jmp 0x4ae03d
shl edx, 0xa
add dword [esp + 0x40], edx
jmp 0x4ae03d
movzx edx, cx
mov dword [esp + 8], edx
mov edx, dword [esp + 0x10]
shr ecx, 0xa
and ecx, 0x3fffc0
test edx, edx
jle 0x4ae8ad
mov edx, dword [ebx + 0x1fc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], esi
mov esi, edx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 8]
movzx eax, byte [edx + esi]
add edx, 1
cmp eax, 2
jne 0x4ae895
mov eax, dword [ebx + 0x200]
movzx eax, word [eax + edx*2 - 2]
imul ebp, eax
imul ecx, eax
shr ebp, 8
shr ecx, 8
cmp edx, edi
jl 0x4ae872
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x20]
mov edx, dword [ebx + 0x208]
movzx edx, word [edx + 4]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
imul esi, edx
imul edx, ecx
shr esi, 3
shr edx, 3
mov dword [esp + 8], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], edx
cmp edx, 0x3fffc0
jbe 0x4ae8e9
mov ecx, DirectSoundCreate
jmp 0x4ae215
mov ecx, dword [esp + 8]
shl edx, 0xa
lea ecx, [ecx + edx]
jmp 0x4ae215
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
movzx edx, byte [ebx + 0x1f8]
jmp 0x4ae20c
xor ecx, ecx
jmp 0x4ae20c
movzx ecx, di
mov dword [esp + 0x40], ecx
mov ecx, edi
shr ecx, 0xa
and ecx, 0x3fffc0
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x4ae9b0
mov ecx, dword [ebx + 0x1fc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x24]
movzx eax, byte [ecx + ebp]
add ecx, 1
cmp eax, 2
jne 0x4ae990
mov eax, dword [ebx + 0x204]
movzx eax, word [eax + ecx*2 - 2]
imul edx, eax
imul esi, eax
shr edx, 8
shr esi, 8
cmp ecx, edi
jl 0x4ae96d
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x30]
mov ecx, dword [ebx + 0x20c]
movzx ecx, word [ecx + 4]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x40]
imul esi, ecx
imul ecx, dword [esp + 8]
shr esi, 3
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x14]
shr ecx, 3
mov dword [esp + 0x3c], ecx
cmp ecx, 0x3fffc0
jbe 0x4ae9f2
mov ecx, DirectSoundCreate
mov dword [esp + 0x40], ecx
jmp 0x4ae169
shl ecx, 0xa
add dword [esp + 0x40], ecx
jmp 0x4ae169
movzx ecx, dx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
shr edx, 0xa
and edx, 0x3fffc0
test ecx, ecx
jle 0x4aea76
mov ecx, dword [ebx + 0x1fc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], esi
mov esi, ecx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 8]
movzx eax, byte [ecx + esi]
add ecx, 1
test eax, eax
jne 0x4aea5e
mov eax, dword [ebx + 0x200]
movzx eax, word [eax + ecx*2 - 2]
imul ebp, eax
imul edx, eax
shr ebp, 8
shr edx, 8
cmp ecx, edi
jl 0x4aea3c
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x20]
mov ecx, dword [ebx + 0x208]
movzx ecx, word [ecx + 6]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
imul esi, ecx
imul ecx, edx
shr esi, 3
shr ecx, 3
mov dword [esp + 8], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
cmp ecx, 0x3fffc0
jbe 0x4aeab2
mov edx, DirectSoundCreate
jmp 0x4ae396
mov edx, ecx
mov ecx, dword [esp + 8]
shl edx, 0xa
lea edx, [ecx + edx]
jmp 0x4ae396
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
jmp 0x4ae386
xor edx, edx
xor ecx, ecx
jmp 0x4ae2f3
movzx ecx, di
mov dword [esp + 0x40], ecx
mov ecx, edi
shr ecx, 0xa
and ecx, 0x3fffc0
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x4aeb66
mov edx, dword [ebx + 0x1fc]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x40]
movzx eax, byte [ecx + edx]
add ecx, 1
cmp eax, 3
jne 0x4aeb4a
mov eax, dword [ebx + 0x204]
movzx eax, word [eax + ecx*2 - 2]
imul ebp, eax
imul esi, eax
shr ebp, 8
shr esi, 8
cmp ecx, edi
jl 0x4aeb27
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x20]
mov ecx, dword [ebx + 0x20c]
movzx edx, word [ecx + 6]
mov ecx, dword [esp + 0x40]
imul ecx, edx
imul edx, dword [esp + 8]
shr ecx, 3
mov dword [esp + 0x40], ecx
shr edx, 3
cmp edx, 0x3fffc0
jbe 0x4aeb9c
mov ecx, DirectSoundCreate
mov dword [esp + 0x40], ecx
jmp 0x4ae24a
shl edx, 0xa
add dword [esp + 0x40], edx
jmp 0x4ae24a
mov ecx, dword [esp + 0x10]
movzx eax, dx
shr edx, 0xa
and edx, 0x3fffc0
test ecx, ecx
jle 0x4aebfd
mov ebp, dword [ebx + 0x1fc]
mov dword [esp + 0x14], esi
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x18], edi
movzx edi, byte [ecx + ebp]
add ecx, 1
cmp edi, 4
jne 0x4aebf1
mov edi, dword [ebx + 0x200]
movzx edi, word [edi + ecx*2 - 2]
imul eax, edi
imul edx, edi
shr eax, 8
shr edx, 8
cmp ecx, esi
jl 0x4aebce
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x208]
movzx ecx, word [ecx + 8]
imul eax, ecx
imul ecx, edx
shr eax, 3
shr ecx, 3
cmp ecx, 0x3fffc0
jbe 0x4aec25
mov edx, DirectSoundCreate
jmp 0x4ae585
shl ecx, 0xa
lea edx, [eax + ecx]
jmp 0x4ae585
mov esi, dword [esp + 0x14]
mov edx, ebp
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x5c]
jmp 0x4ae575
mov edi, ebx
neg edi
mov dword [esp + 0x28], edi
jmp 0x4ae4e5
mov edi, ebp
neg edi
mov dword [esp + 0x2c], edi
jmp 0x4ae4d9
neg ebp
jmp 0x4ae4ef
xor edx, edx
xor ecx, ecx
jmp 0x4ae477
movzx ebp, di
mov ecx, edi
shr ecx, 0xa
and ecx, 0x3fffc0
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x4aecda
mov edx, dword [ebx + 0x1fc]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
movzx eax, byte [ecx + edx]
add ecx, 1
cmp eax, 4
jne 0x4aecc6
mov eax, dword [ebx + 0x204]
movzx eax, word [eax + ecx*2 - 2]
imul ebp, eax
imul esi, eax
shr ebp, 8
shr esi, 8
cmp ecx, edi
jl 0x4aeca3
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x20c]
movzx ecx, word [ecx + 8]
imul ebp, ecx
imul ecx, dword [esp + 8]
shr ebp, 3
shr ecx, 3
cmp ecx, 0x3fffc0
jbe 0x4aed04
mov ebp, DirectSoundCreate
jmp 0x4ae3cc
shl ecx, 0xa
add ebp, ecx
jmp 0x4ae3cc
mov ecx, 1
jmp 0x4ae5cc
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
mov esi, dword [ebx + 0xfc]
add edx, 1
add esi, 1
mov dword [esp + 0x34], edx
add ebp, 1
mov dword [esp + 0xc], ebp
test ecx, ecx
je 0x4aee3b
mov ebx, ecx
mov dword [esp + 0x1c], eax
xor ecx, ecx
movzx eax, byte [edx]
movzx edi, byte [ebp]
sub eax, edi
mov edi, esi
add esi, 1
mov byte [edi], al
add ecx, 1
add edx, 1
add ebp, 1
cmp ecx, ebx
jb 0x4aed4b
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x5c]
cmp ecx, eax
jae 0x4aee1c
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
movzx ebp, byte [edi]
movzx esi, byte [ebx]
mov ecx, eax
movzx ecx, byte [ecx]
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], ecx
add eax, 1
mov dword [esp + 0x34], eax
mov eax, ebp
sub eax, esi
sub ecx, esi
add edi, 1
add ebx, 1
mov dword [esp + 0x24], edi
test eax, eax
jl 0x4aee35
mov esi, eax
test ecx, ecx
jl 0x4aee2b
mov dword [esp + 0x20], ecx
add eax, ecx
test eax, eax
jl 0x4aee27
mov ecx, dword [esp + 0x20]
cmp esi, ecx
jg 0x4aede4
cmp esi, eax
jg 0x4aede4
mov ebp, dword [esp + 0x18]
jmp 0x4aedec
cmp ecx, eax
jle 0x4aedec
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
movzx eax, byte [edx]
sub eax, ebp
mov ebp, dword [esp + 0x30]
mov byte [ecx], al
add ebp, 1
mov dword [esp + 0x30], ebp
add edx, 1
add ecx, 1
cmp ebp, esi
mov dword [esp + 0x14], ecx
jb 0x4aed8c
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0xfc]
jmp 0x4ae58f
neg eax
jmp 0x4aedd2
mov edi, ecx
neg edi
mov dword [esp + 0x20], edi
jmp 0x4aedcc
mov esi, eax
neg esi
jmp 0x4aedc4
xor ecx, ecx
jmp 0x4aed70
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
lea esi, [ecx + 1]
mov ecx, dword [ebx + 0xf8]
add ecx, 1
lea edx, [edx + 1]
mov dword [esp + 0x14], esi
mov dword [esp + 8], edx
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4aef2d
mov ebx, esi
mov dword [esp + 0x24], esi
mov esi, edx
xor edx, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 8]
movzx edi, byte [ebp]
movzx eax, byte [ebx]
sar edi, 1
sub eax, edi
mov edi, ecx
add ecx, 1
mov byte [edi], al
add edx, 1
add ebx, 1
add ebp, 1
cmp edx, esi
jb 0x4aee87
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x5c]
cmp edx, eax
jae 0x4aef22
mov ebx, dword [esp + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x14]
mov edi, esi
movzx eax, byte [edi]
add esi, 1
mov dword [esp + 0x24], esi
movzx esi, byte [ebx]
add esi, eax
movzx eax, byte [ebp]
mov edi, esi
shr edi, 0x1f
add esi, edi
sar esi, 1
sub eax, esi
mov esi, ecx
add ecx, 1
mov byte [esi], al
mov eax, dword [esp + 0x1c]
add edx, 1
add ebp, 1
mov esi, dword [esp + 0x24]
add ebx, 1
cmp edx, eax
jb 0x4aeeda
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0xf8]
jmp 0x4ae3a2
xor edx, edx
jmp 0x4aeec2
mov ecx, dword [esp + 0x34]
mov esi, dword [ebx + 0xf4]
lea ecx, [ecx + 1]
lea edx, [esi + 1]
test eax, eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0xc]
lea edx, [edx + 1]
mov dword [esp + 0x40], edx
jbe 0x4ae221
mov esi, edx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x3c]
xor edx, edx
mov dword [esp + 0x20], ebp
add edi, 1
add esi, 1
movzx ebp, byte [esi - 1]
add ecx, 1
movzx ebx, byte [ecx - 1]
sub ebx, ebp
mov byte [edi - 1], bl
add edx, 1
cmp edx, eax
jb 0x4aef68
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0xf4]
jmp 0x4ae221
mov ecx, dword [ebx + 0xf0]
mov dword [esp + 8], ecx
lea ecx, [ecx + 1]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 0xc80
jg 0x4af06e
mov ecx, dword [esp + 0x38]
sub ecx, 1
mov ecx, 0
sbb ecx, 0
jl 0x4af009
mov ebx, dword [esp + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov edx, 1
mov ebp, dword [esp + 0x38]
mov eax, edx
movzx ecx, byte [eax + esi]
mov byte [eax + ebx], cl
add eax, 1
cdq
mov ecx, eax
sub ecx, ebp
sbb edx, 0
jl 0x4aefe5
or ecx, edx
je 0x4aefe5
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, ecx
add edx, 0xffffffff
add edx, 1
mov dword [esp + 0x30], edx
mov edx, ecx
add edx, esi
add edx, 1
add ecx, 0xffffffff
add ecx, 1
add esi, 1
cmp ecx, eax
jae 0x4af063
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], ebp
movzx ebx, byte [edx]
movzx ebp, byte [esi]
sub ebx, ebp
mov byte [edi], bl
add ecx, 1
add edx, 1
add esi, 1
add edi, 1
cmp ecx, eax
jb 0x4af03d
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0xf0]
jmp 0x4ae140
mov edx, ecx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x14], esi
add edi, 1
add edi, 0xffffffff
mov dword [esp + 0x2c], edi
add esi, 1
mov dword [esp + 0x40], esi
mov ecx, edi
sub ecx, esi
cmp ecx, edx
mov ecx, 0
setg cl
mov dword [esp + 0x28], ecx
sub esi, edi
mov edi, dword [esp + 0x18]
xor ecx, ecx
cmp esi, edx
mov esi, dword [esp + 0x14]
mov edx, ecx
setg dl
mov ecx, dword [esp + 0x28]
or ecx, edx
mov ecx, dword [esp + 0x2c]
je 0x4aefbd
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x44]
push edx
push ecx
mov dword [esp + 0x28], eax
call fcn.00456bd8
mov eax, dword [esp + 0x28]
add esp, 0xc
jmp 0x4af009