Function at 0x4587e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x57bc74]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], esi
push edi
mov edi, ecx
mov dword [edi + 0x7c], 1
mov dword [edi + 0x80], 0
test esi, esi
jne 0x458835
mov eax, 0x80070057
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004c922c
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
test eax, eax
je 0x45884a
push eax
call fcn.004c954c
add esp, 4
mov dword [edi], 0
push 0x10000
push 0
push esi
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [edi + 4], eax
test eax, eax
jne 0x458928
push str.WAVE
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x458890
push 0x55cbe8
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x458a9d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x458a9d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x458a9d
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x458a9d
push esi
call fcn.004c958f
add esp, 4
mov esi, eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push esi
call fcn.004e80a0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x48
push 0
push eax
call fcn.004e7d00
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0x204d454d
mov dword [esp + 0x30], esi
push 0x10000
push eax
push 0
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [edi + 4], eax
push 0
push 0
lea esi, [edi + 0x1c]
mov dword [edi], 0
push esi
push eax
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x458a92
cmp dword [esi], 0x46464952
jne 0x458a92
cmp dword [edi + 0x24], 0x45564157
jne 0x458a92
push 0x10
push esi
lea eax, [esp + 0x80]
mov dword [esp + 0x80], 0x20746d66
push eax
push dword [edi + 4]
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x458a92
cmp dword [esp + 0x7c], 0x10
jb 0x458a92
mov esi, dword [sym.imp.WINMM.dll_mmioRead]
lea eax, [esp + 0x60]
push 0x10
push eax
push dword [edi + 4]
call esi
cmp eax, 0x10
jne 0x458a92
cmp word [esp + 0x60], 1
jne 0x458a1a
push 0x12
call fcn.004c958f
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x458a92
movups xmm0, xmmword [esp + 0x60]
xor ecx, ecx
movups xmmword [eax], xmm0
mov eax, dword [edi]
mov word [eax + 0x10], cx
push 0
lea eax, [esp + 0x7c]
push eax
push dword [edi + 4]
call dword [sym.imp.WINMM.dll_mmioAscend]
test eax, eax
jne 0x458a7b
mov ecx, edi
call fcn.00458c70
mov ecx, eax
test ecx, ecx
js 0x458a02
mov eax, dword [edi + 0xc]
mov dword [edi + 0x30], eax
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004c922c
mov esp, ebp
pop ebp
ret 0xc
push 2
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push dword [edi + 4]
call esi
cmp eax, 2
jne 0x458a92
movzx eax, word [esp + 0x10]
add eax, 0x12
push eax
call fcn.004c958f
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x458a92
movups xmm0, xmmword [esp + 0x60]
movups xmmword [eax], xmm0
mov ecx, dword [edi]
mov ax, word [esp + 0x10]
mov word [ecx + 0x10], ax
movzx eax, word [esp + 0x10]
push eax
mov eax, dword [edi]
add eax, 0x12
push eax
push dword [edi + 4]
call esi
movzx ecx, word [esp + 0x10]
cmp eax, ecx
je 0x4589d7
mov eax, dword [edi]
test eax, eax
je 0x458a92
push 0x12
push eax
call fcn.004c9581
add esp, 8
mov dword [edi], 0
push 0
push dword [edi + 4]
call dword [sym.imp.WINMM.dll_mmioClose]
mov ecx, dword [esp + 0x8c]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, esp
call fcn.004c922c
mov esp, ebp
pop ebp
ret 0xc