Function at 0x5ade10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, dword [str.WAVE]
mov dword [ebp - 0x14], eax
mov cl, byte [0x5f90c4]
mov byte [ebp - 0x10], cl
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5ade6c
xor eax, eax
jmp 0x5adfcb
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x5ade88
xor eax, eax
jmp 0x5adfcb
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x5adea2
xor eax, eax
jmp 0x5adfcb
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x18], 0x46464952
je 0x5adeeb
xor eax, eax
jmp 0x5adfcb
cmp dword [ebp - 4], 0x45564157
je 0x5adefb
xor eax, eax
jmp 0x5adfcb
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
lea eax, [edx + ecx - 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x28]
jae 0x5adfba
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 4
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 4
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0x20746d66
je 0x5adf50
cmp dword [ebp - 0x30], 0x61746164
je 0x5adf6c
jmp 0x5adf8c
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x5adf6a
cmp dword [ebp - 0x20], 0xe
jae 0x5adf62
xor eax, eax
jmp 0x5adfcb
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
jmp 0x5adf8c
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x5adf7c
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 0
jne 0x5adf8c
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x5adfa6
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x5adfa6
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
je 0x5adfa6
jmp 0x5adfba
mov eax, dword [ebp - 0x20]
add eax, 1
and eax, 0xfffffffe
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
jmp 0x5adf08
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x2c]
ja 0x5adfc6
xor eax, eax
jmp 0x5adfcb
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret