Function at 0x42bbf0
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 0x42bc18
mov eax, 0xfffffff9
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
cmp word [esi + 2], 1
jne 0x42bcbb
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, 0xffffffff
mov ebp, eax
jne 0x42bc42
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 0x42bc6a
mov eax, 0xfffffff7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
mov ecx, dword [esi + 0x92]
cmp ecx, ebx
jbe 0x42bc83
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 0x42bc9f
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 0x42bcaf
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 0x42bdf6
mov ebx, dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
call ebx
test eax, eax
jne 0x42bd3c
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 0x42bdf6
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 0x42bd6e
inc ebp
call ebx
cmp eax, ebp
ja 0x42bd48
jmp 0x42bdf6
call fcn.0044fb8c
mov ebx, dword [eax + 4]
push 0x30000
add ebx, 0xd4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push ecx
push 0x42b870
lea edx, [esi + 0x9e]
push eax
push ebp
push edx
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov edi, eax
test edi, edi
je 0x42bdb3
mov eax, 0xfffffff1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
cmp dword [ebx + 0x88], 0
je 0x42bdf6
call fcn.0044fb8c
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], 0
mov eax, 0
je 0x42bddf
call fcn.0044fb8c
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x1c]
call fcn.0044db88
mov ecx, dword [esi + 0x9e]
test eax, eax
mov dword [ebx + 0xf8], ecx
je 0x42bdf6
mov ecx, eax
call fcn.00412020
test edi, edi
je 0x42be09
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 0x42be2f
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 0x42bf04
push 0x20
mov eax, dword [esi + 0x9e]
push ecx
push eax
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
test eax, eax
je 0x42bf00
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 0x42bfd9
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 0x42bfc7
push 0x20
mov eax, dword [esi + 0x9e]
push ecx
push eax
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
test eax, eax
jne 0x42c050
or dword [ebx + 0x28], 1
inc dword [esp + 0x30]
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x14]
jb 0x42bf17
cmp word [esi + 2], 1
mov edi, dword [esi + 0xa6]
jne 0x42c044
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.0042b990
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.0042bbb0
mov edi, dword [edi + 0x14]
test edi, edi
je 0x42c037
lea ebx, [edi + 0x18]
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.0042b990
test eax, eax
je 0x42c037
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.0042bbb0
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x42c013
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 0x42c096
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 0x42c066
mov eax, 0xfffffff0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4