Function at 0x41f020
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b7b0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x78]
xor edi, edi
cmp ecx, edi
je 0x41f061
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
push edi
call edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x70], edi
mov eax, dword [0x461700]
mov eax, dword [eax - 0xc]
cmp eax, edi
je 0x41f0cc
lea ecx, [esp + 0x18]
push str.Software_
push ecx
mov ecx, 0x461700
call fcn.0040ab20
mov eax, dword [esp + 0x20]
add esp, 8
push 0x2001f
lea edx, [esp + 0x2c]
push edx
mov ecx, SysReAllocString
call fcn.0041fbd0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f0cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0xac]
test ecx, ecx
jne 0x41f151
lea edi, [esi + 0x7c]
push edi
lea eax, [esp + 0x28]
call fcn.00422070
mov ebx, eax
test ebx, ebx
js 0x41f317
mov edi, dword [esi + 4]
test edi, edi
je 0x41f0fc
push ebx
xor ecx, ecx
call fcn.00418d00
mov eax, dword [0x461614]
test eax, eax
je 0x41f114
push 0
push ebx
push 0x4ea
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41f137
push 4
lea edx, [esp + 0x24]
push edx
push 4
push 0
push str.PCKInstallProgress
push eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 0x2710
je 0x41f151
mov eax, dword [esi + 0xac]
test eax, eax
je 0x41f0d6
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x41f3a0
mov edi, dword [esi + 4]
test edi, edi
je 0x41f2d6
cmp dword [edi + 0x64], 0
je 0x41f2d6
mov dword [edi + 0x6c], 0
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x70], 1
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x70], 2
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov esi, 0x7a
lea eax, [esp + 0x10]
mov byte [esp + 0x70], 3
call fcn.004151d0
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0x64]
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edx
push 0x424
push eax
call esi
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x64]
mov eax, dword [eax + 4]
push ecx
push 0x444
push eax
call esi
push eax
call ebx
mov edx, dword [edi + 0x64]
mov eax, dword [edx + 4]
push 0x3fc
push eax
call esi
mov esi, eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 8
jne 0x41f264
or eax, 8
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push 1
push 0x40a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x68]
test eax, eax
je 0x41f264
mov edx, dword [edi + 4]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f289
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f2ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f2d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 8]
lea edi, [esi + 0x7c]
call fcn.00421d50
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x41f2ee
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 0xc
call eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41f2fd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xc
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
neg ebx
cmp ebx, 8
jle 0x41f337
push str.Components_install_error.
push 3
push 3
mov ebx, 7
push 0x19d
lea ecx, [esp + 0x44]
jmp 0x41f34e
push str.Components_download_error.
push 3
push 3
mov ebx, 8
push 0x1a2
lea ecx, [esp + 0x50]
push str.CInstallingStrategy::Continue
push str.InstallingStrategy.cpp
call fcn.0042d570
push eax
call fcn.0042d790
add esp, 0x10
call fcn.00421d50
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x41f37a
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push ebx
call eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41f389
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.InstallFinish
call fcn.004084b0
mov eax, dword [esi + 4]
add esp, 4
test eax, eax
je 0x41f3bc
mov ebx, dword [eax + 4]
call fcn.0041e030
cmp dword [0x4615f8], 0
je 0x41f3d0
push str.Install_success__reboot_needed.
lea ecx, [esp + 0x50]
jmp 0x41f3d9
push str.Install_success.
lea ecx, [esp + 0x5c]
push 1
push 3
push 0x1c6
push str.CInstallingStrategy::Continue
push str.InstallingStrategy.cpp
call fcn.0042d570
push eax
call fcn.0042d790
xor ecx, ecx
add esp, 0x10
cmp dword [0x4615f8], ecx
setne cl
mov edi, ecx
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x41f416
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push edi
call eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41f425
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4