Function at 0x1015c2b7
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [ecx + reloc.WINMM.dll_midiStreamOut]
mov ecx, dword [ecx]
test byte [ecx + 0x34], 1
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc], ecx
je 0x1015c2ec
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov ebx, dword [ebp + 0x28]
lea esi, [eax + eax*8]
shl esi, 3
mov eax, dword [esi + ebx + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
test eax, eax
push edi
mov edi, dword [esi + ebx + 0x1c]
mov dword [esp + 0x28], esi
je 0x1015c31c
test edx, edx
je 0x1015c326
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
test edx, edx
je 0x1015c326
cmp word [ebx], 1
jg 0x1015c312
mov ecx, dword [edi + 0x48]
test ecx, ecx
mov eax, dword [edi + 0x28]
je 0x1015c337
mov edx, dword [ebp + 0x48]
test edx, edx
jne 0x1015c312
mov edx, dword [edi + 0x4c]
test edx, edx
jne 0x1015c312
mov edx, dword [ebp + 0x44]
test edx, edx
je 0x1015c349
test ecx, ecx
jne 0x1015c312
cmp word [eax], 0
je 0x1015c312
test byte [edi + 6], 1
jne 0x1015c312
test ecx, ecx
je 0x1015c367
cmp word [ebx], 1
jg 0x1015c312
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x1015c312
mov dx, word [ebp + 6]
and dx, 1
je 0x1015c379
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x1015c312
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x1015c387
mov eax, dword [edi + 0x38]
test eax, eax
jne 0x1015c312
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1015c39a
mov eax, dword [edi + 0x38]
test eax, eax
jne 0x1015c312
test ecx, ecx
je 0x1015c3b6
mov eax, dword [ebp + 0x2c]
test eax, eax
jne 0x1015c312
test ecx, ecx
je 0x1015c3b6
test dx, dx
jne 0x1015c312
mov cl, byte [esi + ebx + 0x28]
test cl, 0x20
lea eax, [esi + ebx + 0x28]
mov dword [esp + 0x34], eax
jne 0x1015c312
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x1015c46c
mov eax, dword [edi + 0x38]
test eax, eax
jne 0x1015c312
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x1015c312
test dx, dx
jne 0x1015c312
cmp word [ebx], 1
jne 0x1015c312
mov eax, edi
jmp 0x1015c407
test byte [eax + 6], 5
jne 0x1015c312
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x1015c422
cmp byte [eax + 4], 0x71
jne 0x1015c312
mov edx, dword [eax + 0x28]
cmp word [edx], 1
jl 0x1015c312
mov edx, dword [edi]
mov eax, dword [eax]
mov edx, dword [edx]
cmp edx, dword [eax]
jne 0x1015c312
mov eax, ecx
test eax, eax
jne 0x1015c407
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x1015c46c
cmp dword [eax], 0
jle 0x1015c46c
mov eax, dword [eax + 8]
add eax, 0xe
mov edi, edi
cmp word [eax], 0
je 0x1015c312
mov edx, dword [ebp + 0x38]
inc ecx
add eax, 0x14
cmp ecx, dword [edx]
jl 0x1015c457
mov ecx, dword [esi + ebx + 0x10]
mov eax, dword [esp + 0x3c]
push 0
push 0
push 0
push 0x15
mov dword [eax + reloc.WINMM.dll_midiStreamOut], ecx
call fcn.101508c7
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov dword [eax + reloc.WINMM.dll_midiStreamOut], edx
mov eax, dword [edi + 0x3c]
add esp, 0x10
test eax, eax
mov dword [esp + 0x18], eax
je 0x1015c522
lea esp, [esp]
mov ecx, dword [ebp + 0x3c]
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 0x38]
mov edi, dword [ebp + 0x48]
xor eax, eax
push eax
push ebp
push edx
mov dword [esp + 0x30], ecx
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x48], eax
call fcn.1014ff07
add esp, 0xc
test eax, eax
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x28], ebx
mov byte [ebp + 4], 0x71
mov dword [ebp + 0x44], 0
jne 0x1015c4ef
mov eax, dword [esp + 0x24]
jmp 0x1015c4fd
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x44], 0
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x3c], eax
mov al, byte [edx + 0x38]
test al, al
jne 0x1015c84b
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x3c]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x1015c4a7
mov esi, dword [esp + 0x28]
mov eax, dword [esi + ebx + 0x1c]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + ebx + 0xc]
mov ecx, edi
call fcn.101394e7
mov eax, dword [esi + ebx + 0x10]
mov ecx, edi
call fcn.101394e7
mov eax, dword [esi + ebx + 0x14]
mov ecx, edi
call fcn.101394e7
mov eax, dword [esi + ebx + 0x18]
xor edx, edx
cmp eax, edx
mov dword [esi + ebx + 0xc], edx
mov dword [esi + ebx + 0x10], edx
mov dword [esi + ebx + 0x14], edx
mov dword [esi + ebx + 0x1c], edx
lea ebx, [esi + ebx + 0x18]
je 0x1015c5a3
mov cx, word [eax + 0x28]
cmp cx, 1
jne 0x1015c59c
mov esi, dword [esp + 0x3c]
mov ecx, dword [esi + reloc.WINMM.dll_midiStreamOut]
cmp ecx, edx
jne 0x1015c58b
mov ecx, esi
mov esi, dword [ecx + reloc.WINMM.dll_midiStreamOut]
mov dword [eax + 0x44], esi
mov dword [ecx + reloc.WINMM.dll_midiStreamOut], eax
jmp 0x1015c5a1
dec ecx
mov word [eax + 0x28], cx
mov dword [ebx], edx
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x28]
test eax, eax
mov ebx, dword [ecx + 0x28]
mov edi, dword [esp + 0x10]
movsx esi, word [ebx]
mov byte [esp + 0x3c], 0
mov dword [esp + 0x1c], eax
je 0x1015c5cd
mov edx, dword [esp + 0x34]
mov cl, byte [edx]
mov byte [esp + 0x3c], cl
jmp 0x1015c5f0
push 0
xor ecx, ecx
xor eax, eax
mov edx, edi
call fcn.101515a7
add esp, 4
test eax, eax
mov dword [ebp + 0x28], eax
mov dword [esp + 0x1c], eax
je 0x1015c82c
mov edi, dword [esp + 0x10]
cmp esi, 1
jle 0x1015c61b
mov edx, dword [esp + 0x44]
inc edx
push edx
lea ecx, [esi - 1]
push ecx
mov ecx, edi
call fcn.10149bf7
mov dword [esp + 0x24], eax
mov dword [ebp + 0x28], eax
mov al, byte [edi + 0x38]
add esp, 8
test al, al
jne 0x1015c82c
test esi, esi
jle 0x1015c681
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add ebx, 8
lea ecx, [edx + eax + 8]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x20]
mov esi, dword [edi + 0x34]
mov ebx, dword [esp + 0x10]
call fcn.10140447
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x24]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
xor eax, eax
mov edi, edx
mov ecx, 0x12
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
add esi, 0x48
add edx, 0x48
dec eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
jne 0x1015c63a
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov byte [edx + eax + 0x28], cl
mov esi, dword [ebp]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x2c], eax
jle 0x1015c6f4
mov dword [esp + 0x3c], eax
lea ecx, [ecx]
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + edx + 4]
add eax, edx
test ecx, ecx
jne 0x1015c6da
mov ecx, dword [esp + 0x10]
mov ebx, dword [eax + 8]
push ecx
call fcn.10143d37
add esp, 4
mov edi, eax
call fcn.10139707
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x3c]
mov dword [edx + eax + 4], edi
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi]
inc eax
add edx, 0x14
cmp eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], edx
jl 0x1015c6a7
mov edi, dword [esp + 0x18]
mov ecx, dword [edi]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov esi, dword [ebp]
push ecx
push edx
push ebx
call fcn.1015c267
mov eax, dword [esp + 0x54]
add esp, 0xc
test eax, eax
je 0x1015c741
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
mov esi, dword [ebp + 0x30]
push eax
push ecx
push ebx
call fcn.1015c267
mov edx, dword [edi]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x34]
push edx
push eax
push ecx
push ebx
call fcn.1015c167
add esp, 0x1c
mov dword [ebp + 0x34], eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x1015c754
mov dword [ebp + 0x38], eax
mov dword [edi + 0x38], 0
jmp 0x1015c76c
mov esi, dword [ebp + 0x38]
test esi, esi
je 0x1015c76c
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
push edx
push eax
push ebx
call fcn.1015c267
add esp, 0xc
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x1015c785
push 0
push 0
push eax
push ebx
call fcn.10157e77
add esp, 0x10
mov esi, eax
jmp 0x1015c787
xor esi, esi
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x1015c7da
mov ecx, dword [ebp + 0x2c]
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x2c], esi
mov edx, dword [edi]
push edx
push eax
push ecx
push ebx
call fcn.1015c167
push 0
mov dword [ebp + 0x34], eax
mov eax, dword [edi + 0x34]
push 0
push eax
push ebx
call fcn.10157e77
push eax
mov eax, dword [ebp + 0x34]
mov ecx, ebx
call fcn.1014f907
mov dword [ebp + 0x34], eax
mov edx, dword [edi + 0x30]
push 0
push edx
push ebx
call fcn.101489e7
add esp, 0x30
mov dword [ebp + 0x30], eax
jmp 0x1015c7fd
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x2c]
push eax
push ecx
push edx
push ebx
call fcn.1015c167
push esi
mov ecx, ebx
mov dword [ebp + 0x2c], eax
call fcn.1014f907
add esp, 0x14
mov dword [ebp + 0x2c], eax
xor eax, eax
mov al, byte [edi + 6]
and eax, 1
or word [ebp + 6], ax
mov eax, dword [edi + 0x48]
test eax, eax
je 0x1015c81a
mov dword [ebp + 0x48], eax
mov dword [edi + 0x48], 0
mov ebp, dword [ebp + 0x3c]
test ebp, ebp
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x18], ecx
jne 0x1015c5a3
mov esi, dword [esp + 0x30]
test esi, esi
je 0x1015c84b
mov edi, dword [esp + 0x10]
push esi
push edi
call fcn.10140fd7
add esp, 8
mov eax, esi
mov ecx, edi
call fcn.101394e7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret