Function at 0x41f140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b590
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x45d274]
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 0x41f181
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 [0x460680]
mov eax, dword [eax - 0xc]
cmp eax, edi
je 0x41f1ec
lea ecx, [esp + 0x18]
push str.Software_
push ecx
mov ecx, 0x460680
call fcn.0040ab70
mov eax, dword [esp + 0x20]
add esp, 8
push 0x2001f
lea edx, [esp + 0x2c]
push edx
mov ecx, SysReAllocString
call fcn.0041fcf0
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 0x41f1ec
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 0x41f271
lea edi, [esi + 0x7c]
push edi
lea eax, [esp + 0x28]
call fcn.00421ff0
mov ebx, eax
test ebx, ebx
js 0x41f437
mov edi, dword [esi + 4]
test edi, edi
je 0x41f21c
push ebx
xor ecx, ecx
call fcn.00418d30
mov eax, dword [0x460594]
test eax, eax
je 0x41f234
push 0
push ebx
push 0x4ea
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41f257
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 0x41f271
mov eax, dword [esi + 0xac]
test eax, eax
je 0x41f1f6
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x41f4c0
mov edi, dword [esi + 4]
test edi, edi
je 0x41f3f6
cmp dword [edi + 0x64], 0
je 0x41f3f6
mov dword [edi + 0x6c], 0
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x70], 1
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x70], 2
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov esi, 0x7a
lea eax, [esp + 0x10]
mov byte [esp + 0x70], 3
call fcn.00415210
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 0x41f384
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 0x41f384
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 0x41f3a9
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 0x41f3ce
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 0x41f3f3
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.00421cd0
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x41f40e
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 0xc
call eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41f41d
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 0x41f457
push str.Components_install_error.
push 3
push 3
mov ebx, 7
push 0x19d
lea ecx, [esp + 0x44]
jmp 0x41f46e
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.0042d360
push eax
call fcn.0042d580
add esp, 0x10
call fcn.00421cd0
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x41f49a
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push ebx
call eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41f4a9
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.00408430
mov eax, dword [esi + 4]
add esp, 4
test eax, eax
je 0x41f4dc
mov ebx, dword [eax + 4]
call fcn.0041e160
cmp dword [0x460578], 0
je 0x41f4f0
push str.Install_success__reboot_needed.
lea ecx, [esp + 0x50]
jmp 0x41f4f9
push str.Install_success.
lea ecx, [esp + 0x5c]
push 1
push 3
push 0x1c6
push str.CInstallingStrategy::Continue
push str.InstallingStrategy.cpp
call fcn.0042d360
push eax
call fcn.0042d580
xor ecx, ecx
add esp, 0x10
cmp dword [0x460578], ecx
setne cl
mov edi, ecx
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x41f536
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push edi
call eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41f545
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