Function at 0x42c550
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
mov dword [esp], ecx
push ebx
push esi
push edi
push ebp
xor edi, edi
mov esi, dword [esp + 0x38]
lea eax, [esi + 0x12]
cmp byte [eax], 0
jne 0x42c578
mov eax, 0xfffffff9
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
cmp word [esi + 2], 1
jne 0x42c61b
push 0x20
push eax
call dword [0x46cae4]
cmp eax, 0xffffffff
mov ebp, eax
jne 0x42c5a2
mov eax, 0xfffffff8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
push 2
push 0
push ebp
call dword [0x46cae8]
mov ebx, eax
push ebp
call dword [0x46caf0]
cmp ebx, 0xffffffff
jne 0x42c5ca
mov eax, 0xfffffff7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
mov eax, dword [esi + 0x92]
cmp ebx, eax
jae 0x42c5e3
mov eax, 0xfffffff6
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
mov ecx, dword [esi + 0x96]
lea edx, [ecx + eax]
cmp edx, ebx
jbe 0x42c5ff
mov eax, 0xfffffff5
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
mov dword [esi + 0xae], eax
test ecx, ecx
jne 0x42c60f
mov dword [esi + 0x96], ebx
mov eax, dword [esi + 0x96]
mov dword [esi + 0xb2], eax
mov word [esp + 0x18], 1
mov ax, word [esi + 8]
mov cx, word [esi + 6]
mov word [esp + 0x1a], ax
xor eax, eax
mov ax, word [esi + 4]
mov word [esp + 0x26], cx
mov dword [esp + 0x1c], eax
xor eax, eax
xor ecx, ecx
mov ax, word [esp + 0x1a]
mov cx, word [esp + 0x26]
imul eax, ecx
cdq
and edx, 7
add eax, edx
mov word [esp + 0x28], 0
sar eax, 3
mov word [esp + 0x24], ax
mov eax, dword [esp + 0x24]
and eax, 0xffff
imul eax, dword [esp + 0x1c]
cmp word [esi + 2], 1
mov dword [esp + 0x20], eax
jne 0x42c778
mov ebx, dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
call ebx
test eax, eax
jne 0x42c69c
mov eax, 0xffffffef
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
xor ebp, ebp
call ebx
test eax, eax
je 0x42c778
lea eax, [esp + 0x18]
push 1
push 0
push 0
push eax
push ebp
push 0
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov edi, eax
test edi, edi
je 0x42c6ce
inc ebp
call ebx
cmp eax, ebp
ja 0x42c6a8
jmp 0x42c778
call fcn.004513dc
mov ebx, dword [eax + 4]
call fcn.004513dc
add ebx, 0xd4
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0
mov eax, 0
je 0x42c6fa
call fcn.004513dc
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x42c702
xor eax, eax
jmp 0x42c705
mov eax, dword [eax + 0x1c]
push 0x10000
lea ecx, [esi + 0x9e]
push 0
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov edi, eax
test edi, edi
je 0x42c735
mov eax, 0xfffffff1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
cmp dword [ebx + 0x88], 0
je 0x42c778
call fcn.004513dc
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0
mov eax, 0
je 0x42c761
call fcn.004513dc
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x1c]
call fcn.0044f417
mov ecx, dword [esi + 0x9e]
test eax, eax
mov dword [ebx + 0xf8], ecx
je 0x42c778
mov ecx, eax
call fcn.004128b0
test edi, edi
je 0x42c78b
mov eax, 0xffffffed
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
xor eax, eax
mov ecx, dword [esp + 0x10]
mov ax, word [ecx + 0xe0]
imul eax, dword [esp + 0x1c]
shr eax, 0x10
mov dword [esp + 0x14], eax
cmp eax, 1
jne 0x42c7b1
mov dword [esp + 0x14], 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
and eax, 0xffff
push 0x38
push 0x2042
mov dword [ecx + 0xdc], eax
call dword [0x46cb38]
push eax
mov ebx, eax
call dword [0x46ca50]
mov edi, eax
push 0x10000
push 0x2042
call dword [0x46cb38]
push eax
mov ebp, eax
call dword [0x46ca50]
xor ecx, ecx
mov dword [edi], ebx
lea edx, [edi + 0x18]
mov dword [edi + 4], edi
mov dword [edi + 8], ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0x10000
mov dword [edi + 0x14], ecx
mov dword [edx], eax
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], ecx
mov dword [esi + 0xa6], edi
mov dword [esi + 0xaa], edi
mov dword [edi + 0x1c], 0x10000
cmp word [esi + 2], 1
jne 0x42c886
push 0x20
mov eax, dword [esi + 0x9e]
push edx
push eax
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
test eax, eax
je 0x42c882
mov eax, dword [edi + 8]
mov ebp, dword [0x46ca7c]
push eax
call ebp
mov ecx, dword [edi + 8]
mov ebx, dword [0x46ca94]
push ecx
call ebx
mov ecx, dword [edi]
push ecx
call ebp
mov eax, dword [edi]
push eax
call ebx
mov eax, 0xfffffff0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
or dword [edi + 0x28], 1
mov dword [esp + 0x30], 1
cmp dword [esp + 0x14], 1
jbe 0x42c95b
push 0x38
push 0x2042
call dword [0x46cb38]
push eax
mov ebp, eax
call dword [0x46ca50]
mov ebx, eax
push 0x10000
push 0x2042
call dword [0x46cb38]
mov dword [esp + 0x2c], eax
push eax
call dword [0x46ca50]
mov ecx, dword [esp + 0x2c]
mov dword [ebx], ebp
mov dword [ebx + 4], ebx
mov dword [ebx + 8], ecx
lea ecx, [ebx + 0x18]
mov dword [ebx + 0xc], eax
mov dword [edi + 0x14], ebx
mov edi, ebx
mov dword [ebx + 0x10], 0x10000
mov dword [ebx + 0x14], 0
mov dword [ecx], eax
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x1c], 0x10000
cmp word [esi + 2], 1
mov dword [esi + 0xaa], ebx
jne 0x42c949
push 0x20
mov eax, dword [esi + 0x9e]
push ecx
push eax
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
test eax, eax
jne 0x42c9d2
or dword [ebx + 0x28], 1
inc dword [esp + 0x30]
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x14]
jb 0x42c899
cmp word [esi + 2], 1
mov edi, dword [esi + 0xa6]
jne 0x42c9c6
mov eax, dword [esi + 0x9e]
lea ebx, [edi + 0x18]
push eax
call dword [sym.imp.WINMM.dll_waveOutPause]
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.0042c2f0
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.0042c510
mov edi, dword [edi + 0x14]
test edi, edi
je 0x42c9b9
lea ebx, [edi + 0x18]
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.0042c2f0
test eax, eax
je 0x42c9b9
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.0042c510
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x42c995
mov eax, dword [esi + 0x9e]
push eax
call dword [sym.imp.WINMM.dll_waveOutRestart]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
mov edi, dword [esi + 0xa6]
test edi, edi
je 0x42ca18
mov ebp, dword [0x46ca7c]
mov ebx, dword [0x46ca94]
push 0x20
lea eax, [edi + 0x18]
push eax
mov ecx, dword [esi + 0x9e]
push ecx
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov ecx, dword [edi + 8]
push ecx
call ebp
mov ecx, dword [edi + 8]
push ecx
call ebx
mov ecx, dword [edi]
push ecx
call ebp
mov ecx, dword [edi]
push ecx
call ebx
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x42c9e8
mov eax, 0xfffffff0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4