Function at 0x418590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4debba
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov eax, dword [ebx + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x34], edi
mov dword [edi], vtable.ProgressAnimator.0
movups xmmword [edi + 0xc], xmm0
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 7
mov word [edi + 0xc], ax
mov dword [ebp - 4], eax
xor ecx, ecx
movups xmmword [edi + 0x24], xmm0
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], 7
mov word [edi + 0x24], cx
push ecx
push ecx
mov byte [ebp - 4], 1
push ecx
mov dword [edi + 0x50], ecx
push ecx
mov dword [edi + 0x54], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x15
push str.avastSfxProgressClass
lea ecx, [edi + 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], 0
call fcn.0040a190
mov eax, dword [ebp - 0x28]
lea ecx, [edi + 0x24]
cmp ecx, eax
je 0x41865d
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x418656
mov eax, dword [eax]
push edx
push eax
call fcn.0040a190
mov dword [edi + 0x40], 0
lea ecx, [edi + 0x54]
mov dword [edi + 0x44], 0x400000
xor eax, eax
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
xchg dword [ecx], eax
or eax, 0xffffffff
lea ecx, [edi + 0x50]
xchg dword [ecx], eax
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push eax
lea eax, [edi + 8]
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
movzx eax, word [ebx + 0xc]
push 0x4fd344
push eax
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4187a7
push eax
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x4187a7
push dword [ebp - 0x30]
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4187a7
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4187a7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4187a0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push eax
call fcn.004a3000
add esp, 0xc
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x418799
push 0x28
call fcn.004a05c1
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov ecx, eax
movups xmmword [eax + 0x10], xmm0
movq qword [eax + 0x20], xmm0
push dword [ebp - 0x28]
call fcn.00417db0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x28]
push ecx
mov dword [ebp - 0x2c], eax
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x4e933c]
call esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4187a7
mov dword [edi + 0x4c], eax
jmp 0x4187a7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc