Function at 0x477ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, ecx
push 0xe
push 0x67
push 0
mov dword [ebp - 0x1c], eax
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x477d51
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x477d51
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x477d51
cmp edi, 6
jb 0x477d51
movzx ebx, word [ecx + 4]
lea eax, [ebx*8]
sub eax, ebx
lea eax, [eax*2 + 6]
cmp edi, eax
jne 0x477d51
lea esi, [ecx + 6]
xor edx, edx
mov ecx, ebx
mov dword [ebp - 0x14], esi
shl ecx, 4
add ecx, 6
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x477bfa
cmp ebx, 8
jb 0x477bfa
and ebx, 0xfffffff8
lea eax, [esi + 0x24]
xorps xmm5, xmm5
xorps xmm4, xmm4
nop word [eax + eax]
movd xmm2, dword [eax + 0xe]
lea eax, [eax + 0x70]
movd xmm0, dword [eax - 0x70]
add edx, 8
movd xmm1, dword [eax - 0x7e]
movd xmm3, dword [eax - 0x8c]
punpckldq xmm3, xmm0
movd xmm0, dword [eax - 0x38]
punpckldq xmm1, xmm2
movd xmm2, dword [eax - 0x2a]
punpckldq xmm3, xmm1
movd xmm1, dword [eax - 0x46]
paddd xmm5, xmm3
movd xmm3, dword [eax - 0x54]
punpckldq xmm3, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
paddd xmm4, xmm3
cmp edx, ebx
jb 0x477b80
paddd xmm4, xmm5
movaps xmm0, xmm4
psrldq xmm0, 8
paddd xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 4
paddd xmm4, xmm0
movd eax, xmm4
add ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
xor edi, edi
xor ebx, ebx
movzx eax, word [ecx + 4]
mov ecx, dword [ebp - 4]
cmp edx, eax
jae 0x477c68
sub eax, edx
cmp eax, 2
jb 0x477c53
lea eax, [edx*8]
add esi, 0x16
sub eax, edx
lea eax, [esi + eax*2]
mov esi, dword [ebp - 8]
movzx ecx, word [esi + 4]
mov esi, dword [ebp - 0x14]
sub ecx, edx
sub ecx, 2
shr ecx, 1
inc ecx
lea edx, [edx + ecx*2]
add edi, dword [eax - 0xe]
lea eax, [eax + 0x1c]
add ebx, dword [eax - 0x1c]
sub ecx, 1
jne 0x477c37
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + 4]
mov ecx, dword [ebp - 4]
cmp edx, eax
jae 0x477c60
lea eax, [edx*8]
sub eax, edx
add ecx, dword [esi + eax*2 + 8]
lea eax, [ebx + edi]
add ecx, eax
mov dword [ebp - 4], ecx
push ecx
call fcn.004d9a7e
push dword [ebp - 4]
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0xc], ebx
call fcn.004d6ed0
mov eax, dword [ebp - 8]
lea edi, [ebx + 6]
add esp, 0x10
mov dword [ebp - 0x14], 0
mov cx, word [eax + 4]
mov word [ebx + 4], cx
mov byte [ebx + 2], 1
movzx eax, word [eax + 4]
mov ebx, eax
shl ebx, 4
add ebx, 6
test eax, eax
je 0x477d2e
nop
movzx eax, word [esi + 0xc]
push 3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x477d46
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x477d46
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x477d46
push dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
add eax, ebx
push eax
call fcn.004d6950
movq xmm0, qword [esi]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
movq qword [edi], xmm0
inc ecx
mov eax, dword [esi + 8]
add esi, 0xe
mov dword [edi + 8], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0xc], ebx
add edi, 0x10
add ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
movzx eax, word [eax + 4]
cmp ecx, eax
jb 0x477cb0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx + 0x64], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x68], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call fcn.004d9a63
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret