Function at 0x42be40
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 0x42be68
mov eax, 0xfffffff9
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
cmp word [esi + 2], 1
jne 0x42bf0b
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, 0xffffffff
mov ebp, eax
jne 0x42be92
mov eax, 0xfffffff8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
push 2
push 0
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, eax
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
cmp ebx, 0xffffffff
jne 0x42beba
mov eax, 0xfffffff7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
mov ecx, dword [esi + 0x92]
cmp ebx, ecx
jae 0x42bed3
mov eax, 0xfffffff6
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
mov eax, dword [esi + 0x96]
lea edx, [eax + ecx]
cmp edx, ebx
jbe 0x42beef
mov eax, 0xfffffff5
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
mov dword [esi + 0xae], ecx
test eax, eax
jne 0x42beff
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 0x42c046
mov ebx, dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
call ebx
test eax, eax
jne 0x42bf8c
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 0x42c046
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 0x42bfbe
inc ebp
call ebx
cmp eax, ebp
ja 0x42bf98
jmp 0x42c046
call fcn.0044fe5c
mov ebx, dword [eax + 4]
push 0x30000
add ebx, 0xd4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push ecx
push 0x42bac0
lea edx, [esi + 0x9e]
push eax
push ebp
push edx
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov edi, eax
test edi, edi
je 0x42c003
mov eax, 0xfffffff1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
cmp dword [ebx + 0x88], 0
je 0x42c046
call fcn.0044fe5c
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0
mov eax, 0
je 0x42c02f
call fcn.0044fe5c
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x1c]
call fcn.0044de58
mov ecx, dword [esi + 0x9e]
test eax, eax
mov dword [ebx + 0xf8], ecx
je 0x42c046
mov ecx, eax
call fcn.00412230
test edi, edi
je 0x42c059
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 0x42c07f
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 [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push 0x10000
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor edx, edx
mov dword [edi], ebx
lea ecx, [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], edx
mov dword [ecx], eax
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], edx
mov dword [edi + 0x30], edx
mov dword [edi + 0x34], edx
mov dword [esi + 0xa6], edi
mov dword [esi + 0xaa], edi
mov dword [edi + 0x1c], 0x10000
cmp word [esi + 2], 1
jne 0x42c154
push 0x20
mov eax, dword [esi + 0x9e]
push ecx
push eax
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
test eax, eax
je 0x42c150
mov eax, dword [edi + 8]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call ebp
mov ecx, dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
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 0x42c229
push 0x38
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push 0x10000
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x2c], eax
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
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 0x42c217
push 0x20
mov eax, dword [esi + 0x9e]
push ecx
push eax
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
test eax, eax
jne 0x42c2a0
or dword [ebx + 0x28], 1
inc dword [esp + 0x30]
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x14]
jb 0x42c167
cmp word [esi + 2], 1
mov edi, dword [esi + 0xa6]
jne 0x42c294
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.0042bbe0
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.0042be00
mov ebx, dword [edi + 0x14]
test ebx, ebx
je 0x42c287
lea edi, [ebx + 0x18]
mov ecx, dword [esp + 0x10]
push edi
push esi
call fcn.0042bbe0
test eax, eax
je 0x42c287
mov ecx, dword [esp + 0x10]
push edi
push esi
call fcn.0042be00
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x42c263
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 0x42c2e6
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
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 0x42c2b6
mov eax, 0xfffffff0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4