Function at 0x43ad80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x4eac74]
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 0x43add5
mov eax, 0x80070057
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004958e0
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
test eax, eax
je 0x43adea
push eax
call fcn.00495aec
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 0x43aec8
push str.WAVE
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x43ae30
push 0x4d2bac
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x43b03d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x43b03d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x43b03d
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x43b03d
push esi
call fcn.00495b2f
add esp, 4
mov esi, eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push esi
call fcn.004986b0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x48
push 0
push eax
call fcn.00498510
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 0x43b032
cmp dword [esi], 0x46464952
jne 0x43b032
cmp dword [edi + 0x24], 0x45564157
jne 0x43b032
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 0x43b032
cmp dword [esp + 0x7c], 0x10
jb 0x43b032
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 0x43b032
cmp word [esp + 0x60], 1
jne 0x43afba
push 0x12
call fcn.00495b2f
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x43b032
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 0x43b01b
mov ecx, edi
call fcn.0043b060
mov ecx, eax
test ecx, ecx
js 0x43afa2
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.004958e0
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 0x43b032
movzx eax, word [esp + 0x10]
add eax, 0x12
push eax
call fcn.00495b2f
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x43b032
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 0x43af77
mov eax, dword [edi]
test eax, eax
je 0x43b032
push 0x12
push eax
call fcn.00495b21
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.004958e0
mov esp, ebp
pop ebp
ret 0xc