Function at 0x4c3478
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 0x4c3513
cmp ebp, 8
je 0x4c3b83
lea edx, [esi + 1]
test eax, eax
jbe 0x4c3b7c
xor edi, edi
xor ecx, ecx
movzx ebx, byte [edx]
cmp ebx, 0x80
jl 0x4c34f1
neg ebx
add ebx, 0x100
add edi, ebx
add edx, 1
add ecx, 1
cmp ecx, eax
jb 0x4c34de
mov ebx, dword [esp + 0x5c]
movzx ecx, byte [ebx + 0x1f8]
cmp ecx, 2
je 0x4c3ae4
jmp 0x4c3518
mov edi, DirectSoundCreate
cmp ebp, 0x10
je 0x4c44a0
test ebp, 0x10
je 0x4c3644
movzx ecx, byte [ebx + 0x1f8]
mov dword [esp + 0x40], edi
cmp ecx, 2
je 0x4c3c75
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 0x4c3c6c
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 0x4c3593
neg eax
add eax, 0x100
add edx, eax
add ecx, 1
add ebx, 1
add ebp, 1
cmp ecx, edi
jb 0x4c357f
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 0x4c3628
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 0x4c35f6
neg eax
add eax, 0x100
add edx, eax
mov eax, dword [esp + 0x40]
cmp edx, eax
ja 0x4c3c53
mov eax, dword [esp + 0x1c]
add ecx, 1
add ebp, 1
add esi, 1
add ebx, 1
cmp ecx, eax
jb 0x4c35da
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 0x4c3b8d
cmp edx, edi
jae 0x4c3644
mov esi, dword [ebx + 0xf0]
mov edi, edx
cmp ebp, 0x20
je 0x4c4435
test ebp, 0x20
je 0x4c3725
movzx edx, byte [ebx + 0x1f8]
mov dword [esp + 0x40], edi
cmp edx, 2
je 0x4c3e23
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 0x4c3e1c
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 0x4c36e3
neg eax
add eax, 0x100
add ecx, eax
mov eax, dword [esp + 0x40]
cmp ecx, eax
ja 0x4c3dfc
mov eax, dword [esp + 0x1c]
cmp edx, eax
jb 0x4c36b8
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 0x4c3d38
cmp ecx, edi
jae 0x4c3725
mov esi, dword [ebx + 0xf4]
mov edi, ecx
cmp ebp, 0x40
je 0x4c4346
test ebp, 0x40
je 0x4c38a6
movzx ecx, byte [ebx + 0x1f8]
mov dword [esp + 0x40], edi
cmp ecx, 2
je 0x4c3fe9
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 0x4c3fe0
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 0x4c37ca
neg eax
add eax, 0x100
add edx, eax
mov eax, dword [esp + 0x38]
add ecx, 1
cmp ecx, eax
jb 0x4c37a1
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 0x4c388a
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 0x4c3861
neg eax
add eax, 0x100
add edx, eax
mov eax, dword [esp + 0x40]
cmp edx, eax
ja 0x4c3fc7
mov eax, dword [esp + 0x1c]
add ecx, 1
cmp ecx, eax
jb 0x4c3817
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 0x4c3f02
cmp edx, edi
jae 0x4c38a6
mov esi, dword [ebx + 0xf8]
mov edi, edx
cmp ebp, 0x80
je 0x4c421c
test ebp, 0x80
je 0x4c3a93
movzx ecx, byte [ebx + 0x1f8]
mov ebp, edi
cmp ecx, 2
je 0x4c4171
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 0x4c4168
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 0x4c394e
neg eax
add eax, 0x100
add edx, eax
mov eax, dword [esp + 0x38]
add ecx, 1
cmp ecx, eax
jb 0x4c3927
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 0x4c3a79
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 0x4c4154
mov dword [esp + 0x2c], ebp
test ebx, ebx
jl 0x4c4147
mov dword [esp + 0x28], ebx
add ebp, ebx
test ebp, ebp
jl 0x4c4161
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
cmp ebx, edi
jg 0x4c3a09
cmp ebx, ebp
jg 0x4c3a09
mov esi, dword [esp + 0x38]
jmp 0x4c3a13
mov ebx, edi
cmp ebx, ebp
jle 0x4c3a13
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 0x4c3a3c
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 0x4c4134
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x1c]
add ebx, 1
mov dword [esp + 0x30], ebx
cmp ebx, ebp
jb 0x4c39a7
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 0x4c40ac
cmp edx, edi
jae 0x4c3a93
mov esi, dword [ebx + 0xfc]
mov eax, ebx
mov edx, esi
call fcn.004c45f0
movzx ecx, byte [ebx + 0x1f9]
test ecx, ecx
jle 0x4c3adc
mov ecx, dword [esp + 0x10]
cmp ecx, 1
jle 0x4c4212
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 0x4c3abb
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 0x4c3b4a
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 0x4c3b3a
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 0x4c3b18
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 0x4c3b71
mov edi, DirectSoundCreate
jmp 0x4c3518
shl ecx, 0xa
lea edi, [edx + ecx]
jmp 0x4c3518
xor edi, edi
jmp 0x4c3501
mov edi, DirectSoundCreate
jmp 0x4c3518
movzx ecx, dx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
shr edx, 0xa
and edx, 0x3fffc0
test ecx, ecx
jle 0x4c3c06
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 0x4c3bee
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 0x4c3bcb
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 0x4c3c42
mov edx, DirectSoundCreate
jmp 0x4c3638
mov edx, ecx
mov ecx, dword [esp + 8]
shl edx, 0xa
lea edx, [ecx + edx]
jmp 0x4c3638
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 0x4c3628
xor edx, edx
xor ecx, ecx
jmp 0x4c35ba
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 0x4c3cf6
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 0x4c3cda
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 0x4c3cb7
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 0x4c3d2c
mov ecx, DirectSoundCreate
mov dword [esp + 0x40], ecx
jmp 0x4c3541
shl edx, 0xa
add dword [esp + 0x40], edx
jmp 0x4c3541
movzx edx, cx
mov dword [esp + 8], edx
mov edx, dword [esp + 0x10]
shr ecx, 0xa
and ecx, 0x3fffc0
test edx, edx
jle 0x4c3db1
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 0x4c3d99
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 0x4c3d76
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 0x4c3ded
mov ecx, DirectSoundCreate
jmp 0x4c3719
mov ecx, dword [esp + 8]
shl edx, 0xa
lea ecx, [ecx + edx]
jmp 0x4c3719
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 0x4c3710
xor ecx, ecx
jmp 0x4c3710
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 0x4c3eb4
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 0x4c3e94
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 0x4c3e71
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 0x4c3ef6
mov ecx, DirectSoundCreate
mov dword [esp + 0x40], ecx
jmp 0x4c366d
shl ecx, 0xa
add dword [esp + 0x40], ecx
jmp 0x4c366d
movzx ecx, dx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
shr edx, 0xa
and edx, 0x3fffc0
test ecx, ecx
jle 0x4c3f7a
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 0x4c3f62
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 0x4c3f40
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 0x4c3fb6
mov edx, DirectSoundCreate
jmp 0x4c389a
mov edx, ecx
mov ecx, dword [esp + 8]
shl edx, 0xa
lea edx, [ecx + edx]
jmp 0x4c389a
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 0x4c388a
xor edx, edx
xor ecx, ecx
jmp 0x4c37f7
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 0x4c406a
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 0x4c404e
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 0x4c402b
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 0x4c40a0
mov ecx, DirectSoundCreate
mov dword [esp + 0x40], ecx
jmp 0x4c374e
shl edx, 0xa
add dword [esp + 0x40], edx
jmp 0x4c374e
mov ecx, dword [esp + 0x10]
movzx eax, dx
shr edx, 0xa
and edx, 0x3fffc0
test ecx, ecx
jle 0x4c4101
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 0x4c40f5
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 0x4c40d2
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 0x4c4129
mov edx, DirectSoundCreate
jmp 0x4c3a89
shl ecx, 0xa
lea edx, [eax + ecx]
jmp 0x4c3a89
mov esi, dword [esp + 0x14]
mov edx, ebp
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x5c]
jmp 0x4c3a79
mov edi, ebx
neg edi
mov dword [esp + 0x28], edi
jmp 0x4c39e9
mov edi, ebp
neg edi
mov dword [esp + 0x2c], edi
jmp 0x4c39dd
neg ebp
jmp 0x4c39f3
xor edx, edx
xor ecx, ecx
jmp 0x4c397b
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 0x4c41de
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 0x4c41ca
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 0x4c41a7
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 0x4c4208
mov ebp, DirectSoundCreate
jmp 0x4c38d0
shl ecx, 0xa
add ebp, ecx
jmp 0x4c38d0
mov ecx, 1
jmp 0x4c3ad0
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 0x4c433f
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 0x4c424f
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x5c]
cmp ecx, eax
jae 0x4c4320
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 0x4c4339
mov esi, eax
test ecx, ecx
jl 0x4c432f
mov dword [esp + 0x20], ecx
add eax, ecx
test eax, eax
jl 0x4c432b
mov ecx, dword [esp + 0x20]
cmp esi, ecx
jg 0x4c42e8
cmp esi, eax
jg 0x4c42e8
mov ebp, dword [esp + 0x18]
jmp 0x4c42f0
cmp ecx, eax
jle 0x4c42f0
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 0x4c4290
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0xfc]
jmp 0x4c3a93
neg eax
jmp 0x4c42d6
mov edi, ecx
neg edi
mov dword [esp + 0x20], edi
jmp 0x4c42d0
mov esi, eax
neg esi
jmp 0x4c42c8
xor ecx, ecx
jmp 0x4c4274
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 0x4c4431
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 0x4c438b
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 0x4c4426
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 0x4c43de
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0xf8]
jmp 0x4c38a6
xor edx, edx
jmp 0x4c43c6
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 0x4c3725
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 0x4c446c
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0xf4]
jmp 0x4c3725
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 0x4c4572
mov ecx, dword [esp + 0x38]
sub ecx, 1
mov ecx, 0
sbb ecx, 0
jl 0x4c450d
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 0x4c44e9
or ecx, edx
je 0x4c44e9
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 0x4c4567
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 0x4c4541
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0xf0]
jmp 0x4c3644
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 0x4c44c1
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x44]
push edx
push ecx
mov dword [esp + 0x28], eax
call fcn.0046549c
mov eax, dword [esp + 0x28]
add esp, 0xc
jmp 0x4c450d