Function at 0x459500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x57ec74]
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 0x459555
mov eax, 0x80070057
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004cb96a
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
test eax, eax
je 0x45956a
push eax
call fcn.004cbc8a
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 0x459648
push str.WAVE
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4595b0
push 0x55fc18
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4597bd
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4597bd
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x4597bd
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4597bd
push esi
call fcn.004cbccd
add esp, 4
mov esi, eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push esi
call fcn.004ea7c0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x48
push 0
push eax
call fcn.004ea420
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 0x4597b2
cmp dword [esi], 0x46464952
jne 0x4597b2
cmp dword [edi + 0x24], 0x45564157
jne 0x4597b2
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 0x4597b2
cmp dword [esp + 0x7c], 0x10
jb 0x4597b2
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 0x4597b2
cmp word [esp + 0x60], 1
jne 0x45973a
push 0x12
call fcn.004cbccd
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x4597b2
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 0x45979b
mov ecx, edi
call fcn.00459990
mov ecx, eax
test ecx, ecx
js 0x459722
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.004cb96a
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 0x4597b2
movzx eax, word [esp + 0x10]
add eax, 0x12
push eax
call fcn.004cbccd
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x4597b2
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 0x4596f7
mov eax, dword [edi]
test eax, eax
je 0x4597b2
push 0x12
push eax
call fcn.004cbcbf
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.004cb96a
mov esp, ebp
pop ebp
ret 0xc