Function at 0x4c16c8
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 0x4c1763
cmp ebp, 8
je 0x4c1dd3
lea edx, [esi + 1]
test eax, eax
jbe 0x4c1dcc
xor edi, edi
xor ecx, ecx
movzx ebx, byte [edx]
cmp ebx, 0x80
jl 0x4c1741
neg ebx
add ebx, 0x100
add edi, ebx
add edx, 1
add ecx, 1
cmp ecx, eax
jb 0x4c172e
mov ebx, dword [esp + 0x5c]
movzx ecx, byte [ebx + 0x1f8]
cmp ecx, 2
je 0x4c1d34
jmp 0x4c1768
mov edi, DirectSoundCreate
cmp ebp, 0x10
je 0x4c26f0
test ebp, 0x10
je 0x4c1894
movzx ecx, byte [ebx + 0x1f8]
mov dword [esp + 0x40], edi
cmp ecx, 2
je 0x4c1ec5
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 0x4c1ebc
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 0x4c17e3
neg eax
add eax, 0x100
add edx, eax
add ecx, 1
add ebx, 1
add ebp, 1
cmp ecx, edi
jb 0x4c17cf
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 0x4c1878
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 0x4c1846
neg eax
add eax, 0x100
add edx, eax
mov eax, dword [esp + 0x40]
cmp edx, eax
ja 0x4c1ea3
mov eax, dword [esp + 0x1c]
add ecx, 1
add ebp, 1
add esi, 1
add ebx, 1
cmp ecx, eax
jb 0x4c182a
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 0x4c1ddd
cmp edx, edi
jae 0x4c1894
mov esi, dword [ebx + 0xf0]
mov edi, edx
cmp ebp, 0x20
je 0x4c2685
test ebp, 0x20
je 0x4c1975
movzx edx, byte [ebx + 0x1f8]
mov dword [esp + 0x40], edi
cmp edx, 2
je 0x4c2073
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 0x4c206c
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 0x4c1933
neg eax
add eax, 0x100
add ecx, eax
mov eax, dword [esp + 0x40]
cmp ecx, eax
ja 0x4c204c
mov eax, dword [esp + 0x1c]
cmp edx, eax
jb 0x4c1908
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 0x4c1f88
cmp ecx, edi
jae 0x4c1975
mov esi, dword [ebx + 0xf4]
mov edi, ecx
cmp ebp, 0x40
je 0x4c2596
test ebp, 0x40
je 0x4c1af6
movzx ecx, byte [ebx + 0x1f8]
mov dword [esp + 0x40], edi
cmp ecx, 2
je 0x4c2239
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 0x4c2230
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 0x4c1a1a
neg eax
add eax, 0x100
add edx, eax
mov eax, dword [esp + 0x38]
add ecx, 1
cmp ecx, eax
jb 0x4c19f1
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 0x4c1ada
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 0x4c1ab1
neg eax
add eax, 0x100
add edx, eax
mov eax, dword [esp + 0x40]
cmp edx, eax
ja 0x4c2217
mov eax, dword [esp + 0x1c]
add ecx, 1
cmp ecx, eax
jb 0x4c1a67
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 0x4c2152
cmp edx, edi
jae 0x4c1af6
mov esi, dword [ebx + 0xf8]
mov edi, edx
cmp ebp, 0x80
je 0x4c246c
test ebp, 0x80
je 0x4c1ce3
movzx ecx, byte [ebx + 0x1f8]
mov ebp, edi
cmp ecx, 2
je 0x4c23c1
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 0x4c23b8
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 0x4c1b9e
neg eax
add eax, 0x100
add edx, eax
mov eax, dword [esp + 0x38]
add ecx, 1
cmp ecx, eax
jb 0x4c1b77
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 0x4c1cc9
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 0x4c23a4
mov dword [esp + 0x2c], ebp
test ebx, ebx
jl 0x4c2397
mov dword [esp + 0x28], ebx
add ebp, ebx
test ebp, ebp
jl 0x4c23b1
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
cmp ebx, edi
jg 0x4c1c59
cmp ebx, ebp
jg 0x4c1c59
mov esi, dword [esp + 0x38]
jmp 0x4c1c63
mov ebx, edi
cmp ebx, ebp
jle 0x4c1c63
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 0x4c1c8c
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 0x4c2384
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x1c]
add ebx, 1
mov dword [esp + 0x30], ebx
cmp ebx, ebp
jb 0x4c1bf7
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 0x4c22fc
cmp edx, edi
jae 0x4c1ce3
mov esi, dword [ebx + 0xfc]
mov eax, ebx
mov edx, esi
call fcn.004c2840
movzx ecx, byte [ebx + 0x1f9]
test ecx, ecx
jle 0x4c1d2c
mov ecx, dword [esp + 0x10]
cmp ecx, 1
jle 0x4c2462
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 0x4c1d0b
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 0x4c1d9a
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 0x4c1d8a
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 0x4c1d68
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 0x4c1dc1
mov edi, DirectSoundCreate
jmp 0x4c1768
shl ecx, 0xa
lea edi, [edx + ecx]
jmp 0x4c1768
xor edi, edi
jmp 0x4c1751
mov edi, DirectSoundCreate
jmp 0x4c1768
movzx ecx, dx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
shr edx, 0xa
and edx, 0x3fffc0
test ecx, ecx
jle 0x4c1e56
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 0x4c1e3e
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 0x4c1e1b
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 0x4c1e92
mov edx, DirectSoundCreate
jmp 0x4c1888
mov edx, ecx
mov ecx, dword [esp + 8]
shl edx, 0xa
lea edx, [ecx + edx]
jmp 0x4c1888
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 0x4c1878
xor edx, edx
xor ecx, ecx
jmp 0x4c180a
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 0x4c1f46
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 0x4c1f2a
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 0x4c1f07
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 0x4c1f7c
mov ecx, DirectSoundCreate
mov dword [esp + 0x40], ecx
jmp 0x4c1791
shl edx, 0xa
add dword [esp + 0x40], edx
jmp 0x4c1791
movzx edx, cx
mov dword [esp + 8], edx
mov edx, dword [esp + 0x10]
shr ecx, 0xa
and ecx, 0x3fffc0
test edx, edx
jle 0x4c2001
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 0x4c1fe9
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 0x4c1fc6
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 0x4c203d
mov ecx, DirectSoundCreate
jmp 0x4c1969
mov ecx, dword [esp + 8]
shl edx, 0xa
lea ecx, [ecx + edx]
jmp 0x4c1969
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 0x4c1960
xor ecx, ecx
jmp 0x4c1960
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 0x4c2104
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 0x4c20e4
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 0x4c20c1
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 0x4c2146
mov ecx, DirectSoundCreate
mov dword [esp + 0x40], ecx
jmp 0x4c18bd
shl ecx, 0xa
add dword [esp + 0x40], ecx
jmp 0x4c18bd
movzx ecx, dx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
shr edx, 0xa
and edx, 0x3fffc0
test ecx, ecx
jle 0x4c21ca
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 0x4c21b2
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 0x4c2190
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 0x4c2206
mov edx, DirectSoundCreate
jmp 0x4c1aea
mov edx, ecx
mov ecx, dword [esp + 8]
shl edx, 0xa
lea edx, [ecx + edx]
jmp 0x4c1aea
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 0x4c1ada
xor edx, edx
xor ecx, ecx
jmp 0x4c1a47
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 0x4c22ba
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 0x4c229e
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 0x4c227b
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 0x4c22f0
mov ecx, DirectSoundCreate
mov dword [esp + 0x40], ecx
jmp 0x4c199e
shl edx, 0xa
add dword [esp + 0x40], edx
jmp 0x4c199e
mov ecx, dword [esp + 0x10]
movzx eax, dx
shr edx, 0xa
and edx, 0x3fffc0
test ecx, ecx
jle 0x4c2351
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 0x4c2345
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 0x4c2322
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 0x4c2379
mov edx, DirectSoundCreate
jmp 0x4c1cd9
shl ecx, 0xa
lea edx, [eax + ecx]
jmp 0x4c1cd9
mov esi, dword [esp + 0x14]
mov edx, ebp
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x5c]
jmp 0x4c1cc9
mov edi, ebx
neg edi
mov dword [esp + 0x28], edi
jmp 0x4c1c39
mov edi, ebp
neg edi
mov dword [esp + 0x2c], edi
jmp 0x4c1c2d
neg ebp
jmp 0x4c1c43
xor edx, edx
xor ecx, ecx
jmp 0x4c1bcb
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 0x4c242e
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 0x4c241a
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 0x4c23f7
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 0x4c2458
mov ebp, DirectSoundCreate
jmp 0x4c1b20
shl ecx, 0xa
add ebp, ecx
jmp 0x4c1b20
mov ecx, 1
jmp 0x4c1d20
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 0x4c258f
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 0x4c249f
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x5c]
cmp ecx, eax
jae 0x4c2570
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 0x4c2589
mov esi, eax
test ecx, ecx
jl 0x4c257f
mov dword [esp + 0x20], ecx
add eax, ecx
test eax, eax
jl 0x4c257b
mov ecx, dword [esp + 0x20]
cmp esi, ecx
jg 0x4c2538
cmp esi, eax
jg 0x4c2538
mov ebp, dword [esp + 0x18]
jmp 0x4c2540
cmp ecx, eax
jle 0x4c2540
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 0x4c24e0
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0xfc]
jmp 0x4c1ce3
neg eax
jmp 0x4c2526
mov edi, ecx
neg edi
mov dword [esp + 0x20], edi
jmp 0x4c2520
mov esi, eax
neg esi
jmp 0x4c2518
xor ecx, ecx
jmp 0x4c24c4
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 0x4c2681
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 0x4c25db
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 0x4c2676
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 0x4c262e
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0xf8]
jmp 0x4c1af6
xor edx, edx
jmp 0x4c2616
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 0x4c1975
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 0x4c26bc
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0xf4]
jmp 0x4c1975
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 0x4c27c2
mov ecx, dword [esp + 0x38]
sub ecx, 1
mov ecx, 0
sbb ecx, 0
jl 0x4c275d
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 0x4c2739
or ecx, edx
je 0x4c2739
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 0x4c27b7
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 0x4c2791
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0xf0]
jmp 0x4c1894
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 0x4c2711
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x44]
push edx
push ecx
mov dword [esp + 0x28], eax
call fcn.00468bf4
mov eax, dword [esp + 0x28]
add esp, 0xc
jmp 0x4c275d