Function at 0x101da6c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.0101c6a7
mov dword [0x1030544], eax
mov cx, word [eax + 0x17c]
mov word [ebp - 0x24], cx
mov cx, word [eax + 0x17e]
mov word [ebp - 0x22], cx
mov ecx, dword [eax + 0x180]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0x184]
mov dword [ebp - 0x1c], ecx
mov cx, word [eax + 0x188]
mov word [ebp - 0x18], cx
mov ax, word [eax + 0x18a]
mov word [ebp - 0x16], ax
push 1
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x3c]
push 0xffffffffffffffff
push eax
mov word [ebp - 0x14], bx
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
je 0x101db04
cmp dword [0x1032970], ebx
je 0x101dd2d
push 0x30
push 0x1002b18
push 0x1002ff0
jmp 0x101db39
push 0x42
push 0x2040
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 0x101db45
cmp dword [0x1032970], ebx
je 0x101dd2d
push 0x40
push 0x1002b18
push 0x1002b30
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x101dd2d
test byte [ebp + 0x14], 2
je 0x101dc4b
mov edi, dword [ebp + 0xc]
push 0x1002fe8
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov dword [ebp + 0x14], eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x101dbb0
mov eax, edi
shr eax, 0x10
test ax, ax
je 0x101db87
push edi
push 0x1002fc0
jmp 0x101db90
movzx eax, di
push eax
push 0x1002f9c
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
cmp dword [0x1032970], ebx
je 0x101dcd6
jmp 0x101dcc7
push 0x12
xor eax, eax
pop ecx
lea edi, [ebp - 0x98]
push dword [ebp - 8]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0x80], eax
jne 0x101dbf9
cmp dword [0x1032970], ebx
je 0x101dbe8
push 0x30
push 0x1002b18
push 0x1002f7c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 8], ebx
jmp 0x101dcd9
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x98]
push ebx
push eax
push ebx
mov dword [ebp - 0x94], 0x204d454d
mov dword [ebp - 0x68], ebx
call dword [sym.imp.WINMM.dll_mmioOpenA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x101ddcb
cmp dword [0x1032970], ebx
je 0x101dcd9
push dword [ebp - 0x8c]
push 0x1002f1c
jmp 0x101dcb8
test byte [ebp + 0x14], 4
je 0x101dc8e
mov esi, dword [ebp + 0xc]
push 0x12
pop ecx
lea eax, [ebp - 0x98]
lea edi, [ebp - 0x98]
push ebx
push eax
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.WINMM.dll_mmioOpenA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x101ddc8
cmp dword [0x1032970], ebx
je 0x101dcd6
push dword [ebp - 0x8c]
push 0x1002ec0
jmp 0x101dcb8
push 0x10000
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.WINMM.dll_mmioOpenA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x101ddcb
cmp dword [0x1032970], ebx
je 0x101dcd9
push dword [ebp + 0xc]
push 0x1002ea0
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 0x1002b18
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [ebp + 8]
cmp dword [ebp - 4], ebx
je 0x101dce8
push ebx
push dword [ebp - 4]
call dword [sym.imp.WINMM.dll_mmioClose]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0xc], ebx
je 0x101dd1f
push dword [ebp - 0xc]
call esi
push eax
call edi
push dword [ebp - 0xc]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 8], ebx
je 0x101dd2d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x101ddc1
push ebx
push dword [ebp - 4]
call dword [sym.imp.WINMM.dll_mmioClose]
cmp dword [ebp - 8], ebx
je 0x101dd4c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [esi + 0x10], edi
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x40], 0x5432
mov eax, dword [0x1030544]
add eax, 0x17c
push 0x10
push eax
push esi
call fcn.01020030
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov eax, edi
shr eax, 0x10
test ax, ax
jne 0x101dd9f
movzx eax, di
push eax
lea eax, [esi + 0x30]
push 0x1002e98
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x101ddbf
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xf
jg 0x101ddaf
xor eax, eax
jmp 0x101ddb2
sub eax, 0xf
add eax, edi
push eax
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.WINMM.dll_mmioDescend]
push 0x20
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x48], 0x45564157
push dword [ebp - 4]
call edi
test eax, eax
je 0x101de05
cmp dword [0x1032970], ebx
je 0x101dcd9
push 0x30
push 0x1002b18
push 0x1002e7c
jmp 0x101df96
lea eax, [ebp - 0x50]
push 0x10
push eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x20746d66
push dword [ebp - 4]
call edi
test eax, eax
je 0x101de3c
cmp dword [0x1032970], ebx
je 0x101dcd9
push 0x30
push 0x1002b18
push 0x1002e64
jmp 0x101df96
push 0x10
push esi
push dword [ebp - 4]
call dword [sym.imp.WINMM.dll_mmioRead]
cmp eax, 0x10
je 0x101de6a
cmp dword [0x1032970], ebx
je 0x101dcd9
push 0x30
push 0x1002b18
push 0x1002e44
jmp 0x101df96
cmp word [esi], 1
je 0x101de8d
cmp dword [0x1032970], ebx
je 0x101dcd9
push 0x30
push 0x1002b18
push 0x1002e28
jmp 0x101df96
lea eax, [ebp - 0x38]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.WINMM.dll_mmioAscend]
lea eax, [ebp - 0x50]
push 0x10
push eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x61746164
push dword [ebp - 4]
call edi
test eax, eax
je 0x101ded2
cmp dword [0x1032970], ebx
je 0x101dcd9
push 0x30
push 0x1002b18
push 0x1002e08
jmp 0x101df96
mov eax, dword [ebp - 0x34]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x101def9
cmp dword [0x1032970], ebx
je 0x101dcd9
push 0x30
push 0x1002b18
push 0x1002dec
jmp 0x101df96
push eax
push 0x2002
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 - 0xc], edi
jne 0x101df2f
cmp dword [0x1032970], ebx
je 0x101dcd9
push 0x40
push 0x1002b18
push 0x1002b30
jmp 0x101df96
push dword [ebp - 0x10]
push edi
push dword [ebp - 4]
call dword [sym.imp.WINMM.dll_mmioRead]
cmp eax, dword [ebp - 0x10]
je 0x101df5b
cmp dword [0x1032970], ebx
je 0x101dcd9
push 0x30
push 0x1002b18
push 0x1002dd0
jmp 0x101df96
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x1030544]
push edi
add eax, 0x17c
push esi
push eax
call fcn.0101d9e0
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0xc], edi
jne 0x101dd34
cmp dword [0x1032970], ebx
je 0x101dcd9
push 0x30
push 0x1002b18
push 0x1002db0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x101dcd9