Function at 0x4586f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x592c80]
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 0x458745
mov eax, 0x80070057
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004c8873
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
test eax, eax
je 0x45875a
push eax
call fcn.004c8b97
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 0x458838
push str.WAVE
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4587a0
push 0x577984
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4589a1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4589a1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x4589a1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4589a1
push esi
call fcn.004c8bda
add esp, 4
mov esi, eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push esi
call fcn.004f12d0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x48
push 0
push eax
call fcn.004f0f30
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 0x458996
cmp dword [esi], 0x46464952
jne 0x458996
cmp dword [edi + 0x24], 0x45564157
jne 0x458996
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 0x458996
cmp dword [esp + 0x7c], 0x10
jb 0x458996
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 0x458996
cmp word [esp + 0x60], 1
jne 0x458922
push 0x12
call fcn.004c8bda
movups xmm0, xmmword [esp + 0x64]
mov dword [edi], eax
add esp, 4
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 0x45897f
mov ecx, edi
call fcn.00458b70
mov ecx, eax
test ecx, ecx
js 0x45890a
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.004c8873
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 0x458996
movzx eax, word [esp + 0x10]
add eax, 0x12
push eax
call fcn.004c8bda
movups xmm0, xmmword [esp + 0x64]
mov dword [edi], eax
add esp, 4
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 0x4588df
mov eax, dword [edi]
test eax, eax
je 0x458996
push 0x12
push eax
call fcn.004c8bcc
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.004c8873
mov esp, ebp
pop ebp
ret 0xc