Function at 0x101eb23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.0101cfd0
mov cx, word [eax + 0x17c]
mov word [ebp - 0x1c], cx
mov cx, word [eax + 0x17e]
mov word [ebp - 0x1a], cx
mov ecx, dword [eax + 0x180]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x184]
mov dword [ebp - 0x14], ecx
mov cx, word [eax + 0x188]
push 1
mov dword [0x1027be0], eax
push ebx
mov word [ebp - 0x10], cx
mov ax, word [eax + 0x18a]
mov word [ebp - 0xe], ax
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
mov word [ebp - 0xc], bx
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
je 0x101ebc0
cmp dword [0x1027be4], ebx
je 0x101ebb9
push 0x30
push 0x10028d0
push 0x1002db0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x101f089
push edi
push 0x42
push 0x2040
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x101ec00
cmp dword [0x1027be4], ebx
je 0x101ebf9
push 0x40
push 0x10028d0
push 0x10028e8
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x101f088
test byte [ebp + 0x14], 2
push esi
je 0x101ed22
push 0x1002da8
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x101ecd7
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x101ecd7
push 0x12
pop ecx
push dword [ebp - 4]
xor eax, eax
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0x78], eax
jne 0x101ec87
cmp dword [0x1027be4], ebx
je 0x101ec73
push 0x30
push 0x10028d0
push 0x1002d88
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ebx
jmp 0x101ed97
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x7c], eax
push ebx
lea eax, [ebp - 0x90]
push eax
push ebx
mov dword [ebp - 0x8c], 0x204d454d
mov dword [ebp - 0x60], ebx
call dword [sym.imp.WINMM.dll_mmioOpenA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x101ee23
cmp dword [0x1027be4], ebx
je 0x101ed85
push dword [ebp - 0x84]
push 0x1002d28
jmp 0x101ed67
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test ax, ax
mov esi, str.WaveMix_V_2.3_by_Angel_M._Diaz__Jr.__c__Microsoft_1993_1995
je 0x101ecf1
push dword [ebp + 0xc]
push 0x1002d00
jmp 0x101ecfb
movzx eax, word [ebp + 0xc]
push eax
push 0x1002cdc
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [0x1027be4], ebx
je 0x101ed97
push 0x30
push 0x10028d0
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x101ed97
test byte [ebp + 0x14], 4
je 0x101ede1
mov esi, dword [ebp + 0xc]
push 0x12
pop ecx
push ebx
lea eax, [ebp - 0x90]
push eax
lea edi, [ebp - 0x90]
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.WINMM.dll_mmioOpenA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x101ee23
cmp dword [0x1027be4], ebx
je 0x101ed85
push dword [ebp - 0x84]
push 0x1002c80
mov esi, str.WaveMix_V_2.3_by_Angel_M._Diaz__Jr.__c__Microsoft_1993_1995
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x30
push 0x10028d0
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [ebp + 8]
cmp dword [ebp + 0x10], ebx
je 0x101ed97
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.WINMM.dll_mmioClose]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call edi
cmp dword [ebp - 8], ebx
je 0x101edcc
push dword [ebp - 8]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 8]
call esi
push eax
call edi
cmp dword [ebp - 4], ebx
je 0x101edda
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x101f087
push 0x10000
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.WINMM.dll_mmioOpenA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x101ee26
cmp dword [0x1027be4], ebx
je 0x101ed88
push dword [ebp + 0xc]
mov esi, str.WaveMix_V_2.3_by_Angel_M._Diaz__Jr.__c__Microsoft_1993_1995
push 0x1002c5c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x30
push 0x10028d0
push esi
jmp 0x101efed
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.WINMM.dll_mmioDescend]
push 0x20
push ebx
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x40], 0x45564157
call esi
test eax, eax
je 0x101ee60
cmp dword [0x1027be4], ebx
je 0x101ed88
push 0x30
push 0x10028d0
push 0x1002c40
jmp 0x101efed
push 0x10
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x30], 0x20746d66
call esi
test eax, eax
je 0x101ee97
cmp dword [0x1027be4], ebx
je 0x101ed88
push 0x30
push 0x10028d0
push 0x1002c28
jmp 0x101efed
push 0x10
push edi
push dword [ebp + 0x10]
call dword [sym.imp.WINMM.dll_mmioRead]
cmp eax, 0x10
je 0x101eec5
cmp dword [0x1027be4], ebx
je 0x101ed88
push 0x30
push 0x10028d0
push 0x1002c08
jmp 0x101efed
cmp word [edi], 1
je 0x101eee8
cmp dword [0x1027be4], ebx
je 0x101ed88
push 0x30
push 0x10028d0
push 0x1002bec
jmp 0x101efed
push ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WINMM.dll_mmioAscend]
push 0x10
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x30], 0x61746164
call esi
test eax, eax
je 0x101ef2d
cmp dword [0x1027be4], ebx
je 0x101ed88
push 0x30
push 0x10028d0
push 0x1002bcc
jmp 0x101efed
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jne 0x101ef54
cmp dword [0x1027be4], ebx
je 0x101ed88
push 0x30
push 0x10028d0
push 0x1002bb0
jmp 0x101efed
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
jne 0x101ef8a
cmp dword [0x1027be4], ebx
je 0x101ed88
push 0x40
push 0x10028d0
push 0x10028e8
jmp 0x101efed
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
call dword [sym.imp.WINMM.dll_mmioRead]
cmp eax, dword [ebp + 0x14]
je 0x101efb6
cmp dword [0x1027be4], ebx
je 0x101ed88
push 0x30
push 0x10028d0
push 0x1002b94
jmp 0x101efed
lea eax, [ebp + 0x14]
push eax
mov eax, dword [0x1027be0]
push esi
push edi
add eax, 0x17c
push eax
call fcn.0101ea82
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
jne 0x101eff9
cmp dword [0x1027be4], ebx
je 0x101ed88
push 0x30
push 0x10028d0
push 0x1002b74
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x101ed88
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.WINMM.dll_mmioClose]
cmp dword [ebp - 4], ebx
je 0x101f011
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [0x1027be0]
push 0x10
add eax, 0x17c
push eax
push edi
mov dword [edi + 0x10], esi
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x1c], ebx
mov word [edi + 0x40], 0x5432
call dword [sym.imp.msvcrt.dll_memmove]
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 0x10
add esp, 0xc
test ax, ax
jne 0x101f065
movzx eax, si
push eax
lea eax, [edi + 0x30]
push 0x1002b6c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x101f085
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xf
jg 0x101f075
xor eax, eax
jmp 0x101f078
sub eax, 0xf
add eax, esi
push eax
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 0x10