Function at 0x45f230
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0139
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28c], ecx
push ecx
xor eax, eax
lea ecx, [ebp - 0x48]
push str.InstallTypeProfile::RegistTypeSelection
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], eax
call fcn.0040a480
mov dword [ebp - 4], 0
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x45f2cd
test byte [esi + 0x1c], 1
je 0x45f2cd
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cdc50
mov ecx, 0xe
cmovae eax, dword [0x608f54]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00401840
mov esi, dword [0x608f30]
add esp, 0xc
push 0x20c
xor ebx, ebx
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.00571c00
mov eax, dword [0x6184f0]
add esp, 0xc
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x270], ebx
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x290], eax
test eax, eax
jle 0x45f879
xor esi, esi
or edi, 0xffffffff
mov dword [ebp - 0x274], esi
nop dword [eax]
push 0x20c
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.00571c00
mov eax, dword [0x6184f0]
add esp, 0xc
mov edx, dword [ebp - 0x270]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
cmp edx, dword [ecx]
jge 0x45f35f
mov dword [eax + 0x14], 0
mov dword [eax + 8], edx
lea eax, [ecx + 0x100014]
add eax, esi
jmp 0x45f361
xor eax, eax
cmp dword [eax + 4], 1
mov dword [ebp - 0x268], eax
jne 0x45f821
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x45f8de
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x25c], eax
mov eax, str.SOFTWARECANON_
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
test eax, 0xffff0000
jne 0x45f3af
movzx eax, ax
push eax
call fcn.00403020
jmp 0x45f3bb
push 0xf
push str.SOFTWARECANON_
call fcn.00403bb0
mov byte [ebp - 4], 2
mov eax, dword [0x6184f0]
mov esi, dword [eax + 8]
add esi, 0x7fc
cmp dword [esi + 0x14], 8
jb 0x45f3d5
mov esi, dword [esi]
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x45f8de
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x45f431
test esi, 0xffff0000
jne 0x45f413
movzx eax, si
lea ecx, [ebp - 0x258]
push eax
call fcn.00403020
jmp 0x45f440
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f420
sub ecx, edx
sar ecx, 1
jmp 0x45f433
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x258]
call fcn.00403bb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x25c]
mov esi, dword [ebp - 0x258]
push dword [esi - 0xc]
push esi
call fcn.00405fe0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45f474
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x25c]
mov ecx, dword [edi - 0x10]
lea esi, [edi - 0x10]
test ecx, ecx
je 0x45f493
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x45f4a9
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x45f8de
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x27c], eax
mov edx, edi
mov eax, dword [ebp - 0x260]
push 1
or eax, 1
push 0x5c692c
push dword [edi - 0xc]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x278], eax
call fcn.00416280
mov eax, dword [ebp - 0x27c]
add esp, 0xc
lea ebx, [eax - 0x10]
cmp ebx, esi
je 0x45f54f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x45f53a
mov ecx, dword [ebx]
cmp ecx, dword [esi]
jne 0x45f53a
mov ecx, ebx
call fcn.00403af0
mov dword [ebp - 0x258], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x45f529
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x258]
add edi, 0x10
mov dword [ebp - 0x25c], edi
jmp 0x45f54f
push dword [eax - 0xc]
lea ecx, [ebp - 0x25c]
push eax
call fcn.00403bb0
mov edi, dword [ebp - 0x25c]
mov esi, dword [ebp - 0x260]
or eax, 0xffffffff
and esi, 0xfffffffe
mov byte [ebp - 4], 2
mov dword [ebp - 0x264], esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x45f577
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
lea ebx, [edi - 0x10]
mov byte [ebp - 4], 6
mov ecx, dword [ebx]
test ecx, ecx
je 0x45f58f
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x45f5a5
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x45f8de
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edx, dword [ebp - 0x268]
add eax, 0x10
or esi, 2
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x264], esi
add edx, 0x418
jne 0x45f5ce
xor ecx, ecx
jmp 0x45f5e2
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f5d3
sub ecx, esi
sar ecx, 1
push ecx
push edx
push dword [edi - 0xc]
mov edx, edi
lea ecx, [ebp - 0x280]
call fcn.00416280
mov eax, dword [ebp - 0x280]
add esp, 0xc
lea esi, [eax - 0x10]
cmp esi, ebx
je 0x45f65a
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x45f645
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x45f645
mov ecx, esi
call fcn.00403af0
mov dword [ebp - 0x258], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x45f634
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x258]
add edi, 0x10
mov dword [ebp - 0x25c], edi
jmp 0x45f65a
push dword [eax - 0xc]
lea ecx, [ebp - 0x25c]
push eax
call fcn.00403bb0
mov edi, dword [ebp - 0x25c]
mov eax, dword [ebp - 0x278]
or ebx, 0xffffffff
and eax, 0xfffffffc
mov byte [ebp - 4], 2
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], eax
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45f68a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x26c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x45f848
mov ecx, dword [ebp - 0x268]
mov eax, dword [ecx + 0x3ce4]
mov dword [ebp - 0x254], eax
cmp eax, 0x63
jne 0x45f7c5
lea eax, [ecx + 0x3ce8]
test eax, eax
je 0x45f7c5
push eax
lea ecx, [ebp - 0x284]
call fcn.00403320
mov byte [ebp - 4], 7
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x45f8de
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x258], eax
mov eax, 0x5c6930
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x258]
test eax, 0xffff0000
jne 0x45f730
movzx eax, ax
push eax
call fcn.00403020
jmp 0x45f73c
push 0
push 0x5c6930
call fcn.00403bb0
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 9
push eax
push ecx
mov ecx, dword [ebp - 0x284]
mov esi, esp
mov dword [ebp - 0x278], esi
lea ecx, [ecx - 0x10]
call fcn.00403af0
mov ecx, dword [ebp - 0x28c]
add eax, 0x10
mov dword [esi], eax
call fcn.0045fbd0
mov esi, dword [ebp - 0x258]
lea eax, [ebp - 0x250]
push esi
push 0x104
push eax
call fcn.005746e6
add esp, 0xc
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45f7a4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x284]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f7c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x20c
lea eax, [ebp - 0x254]
push eax
push 3
push 0
push str.TypeSelection
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x26c]
mov ebx, eax
test ecx, ecx
je 0x45f7f9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x45f848
mov byte [ebp - 4], bl
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x45f818
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x274]
or edi, 0xffffffff
mov eax, dword [ebp - 0x270]
add esi, 0x413c
inc eax
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], eax
cmp eax, dword [ebp - 0x290]
jl 0x45f320
jmp 0x45f873
mov ebx, 0x80010024
mov dword [0x6183ec], 0x24
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x45f873
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [0x608f30]
mov byte [ebp - 0x44], 1
cmp esi, 0x608f30
je 0x45f8b8
test byte [esi + 0x1c], 1
je 0x45f8b8
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5cdc50
push eax
push dword [esi + 0x14]
mov ecx, 0xf
push dword [esi + 0x10]
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x48]
call fcn.0040a570
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013a0
int3