Function at 0x421810
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 0x4c9d35
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x505034]
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 - 0x30], edi
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [edi], vtable.ProgressAnimator.0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 7
mov word [edi + 0xc], ax
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], 7
mov word [edi + 0x24], cx
push ecx
push ecx
push ecx
push ecx
mov byte [ebp - 4], 1
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.00415170
mov eax, dword [ebp - 0x28]
lea ecx, [edi + 0x24]
cmp ecx, eax
je 0x4218cc
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x4218c5
mov eax, dword [eax]
push edx
push eax
call fcn.00415170
mov dword [edi + 0x40], 0
lea eax, [edi + 0x54]
mov dword [edi + 0x44], 0x400000
xor ecx, ecx
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
xchg dword [eax], ecx
or ecx, 0xffffffff
lea eax, [edi + 0x50]
xchg dword [eax], ecx
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]
push 0x4e7490
push 0x3e9
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x421a0c
push eax
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x421a0c
push dword [ebp - 0x2c]
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x421a0c
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x421a0c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x421a05
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push eax
call fcn.00491db0
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 0x4219fe
push 0x24
call fcn.00479ea3
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov ecx, eax
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
push dword [ebp - 0x28]
call fcn.00421150
mov byte [ebp - 4], 1
mov esi, eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, edi
test esi, esi
je 0x421a0e
mov dword [edi + 0x4c], esi
jmp 0x421a0e
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.00479e61
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8