Function at 0x4a7e80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x623ec0]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov dword [esi + 0x7c], 1
mov dword [esi + 0x80], 0
test edi, edi
jne 0x4a7ed5
mov eax, 0x80070057
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
test eax, eax
je 0x4a7eea
push eax
call fcn.00466dcc
add esp, 4
mov dword [esi], 0
push 0x10000
push 0
push edi
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [esi + 4], eax
test eax, eax
jne 0x4a7fc7
push str.WAVE
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4a7f30
push 0x5fd188
push dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4a8130
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4a8130
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4a8130
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4a8130
push edi
call fcn.00466c2c
add esp, 4
mov dword [esi + 0x90], eax
push edi
push dword [esp + 0x18]
push eax
call fcn.004684b0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x48
push 0
push eax
call fcn.00468b40
mov eax, dword [esi + 0x90]
add esp, 0xc
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0x204d454d
mov dword [esp + 0x2c], edi
push 0x10000
push eax
push 0
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [esi + 4], eax
push 0
push 0
lea edi, [esi + 0x1c]
mov dword [esi], 0
push edi
push eax
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x4a8125
cmp dword [edi], 0x46464952
jne 0x4a8125
cmp dword [esi + 0x24], 0x45564157
jne 0x4a8125
push 0x10
push edi
lea eax, [esp + 0x80]
mov dword [esp + 0x80], 0x20746d66
push eax
push dword [esi + 4]
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x4a8125
cmp dword [esp + 0x7c], 0x10
jb 0x4a8125
mov edi, dword [sym.imp.WINMM.dll_mmioRead]
lea eax, [esp + 0x60]
push 0x10
push eax
push dword [esi + 4]
call edi
cmp eax, 0x10
jne 0x4a8125
cmp word [esp + 0x60], 1
jne 0x4a80b1
push 0x12
call fcn.00466c2c
movups xmm0, xmmword [esp + 0x64]
mov dword [esi], eax
add esp, 4
xor ecx, ecx
movups xmmword [eax], xmm0
mov eax, dword [esi]
mov word [eax + 0x10], cx
push 0
lea eax, [esp + 0x7c]
push eax
push dword [esi + 4]
call dword [sym.imp.WINMM.dll_mmioAscend]
test eax, eax
jne 0x4a810e
mov ecx, esi
call fcn.004a7ae0
mov ecx, eax
test ecx, ecx
js 0x4a8099
mov eax, dword [esi + 0xc]
mov dword [esi + 0x30], eax
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 0xc
push 2
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esi + 4]
call edi
cmp eax, 2
jne 0x4a8125
movzx eax, word [esp + 0x14]
add eax, 0x12
push eax
call fcn.00466c2c
movups xmm0, xmmword [esp + 0x64]
mov dword [esi], eax
add esp, 4
movups xmmword [eax], xmm0
mov ecx, dword [esi]
mov ax, word [esp + 0x14]
mov word [ecx + 0x10], ax
movzx eax, word [esp + 0x14]
push eax
mov eax, dword [esi]
add eax, 0x12
push eax
push dword [esi + 4]
call edi
movzx ecx, word [esp + 0x14]
cmp eax, ecx
je 0x4a806e
mov eax, dword [esi]
test eax, eax
je 0x4a8125
push 0x12
push eax
call fcn.004667ad
add esp, 8
mov dword [esi], 0
push 0
push dword [esi + 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.0046676f
mov esp, ebp
pop ebp
ret 0xc