Function at 0x416ed0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5885ee
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x5f50fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd0], ecx
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x114]
xor eax, eax
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xc8], eax
call fcn.004320c9
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0x100], eax
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xdc], eax
cmp dword [ebp + 8], eax
jbe 0x417aa6
imul edi, eax, 0x6a4
mov ecx, str.InstallerLID
mov dword [ebp - 0xe8], 0
add edi, esi
mov dword [ebp - 0xc4], edi
lea esi, [edi + 0x220]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416f8e
test dx, dx
je 0x416f8a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416f8e
add eax, 4
add ecx, 4
test dx, dx
jne 0x416f68
xor eax, eax
jmp 0x416f93
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41727b
lea ecx, [ebp - 0xb4]
xor esi, esi
push ecx
push 1
lea eax, [edi + 0x18]
mov dword [ebp - 0xb4], esi
push esi
push eax
push dword [edi]
mov dword [ebp - 0xd4], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41702c
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xcc], esi
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0xc0], 0x20
push eax
lea eax, [ebp - 0xcc]
xorps xmm0, xmm0
push eax
push esi
lea eax, [edi + 0x220]
push eax
push dword [ebp - 0xb4]
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xb4]
test eax, eax
mov eax, 1
cmovne esi, eax
mov dword [ebp - 0xbc], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xb4], 0
jmp 0x417036
mov dword [ebp - 0xbc], 1
mov eax, dword [ebp + 8]
xor esi, esi
mov edi, dword [ebp - 0xf0]
mov dword [ebp - 0xcc], eax
nop word [eax + eax]
mov dword [ebp - 0xc0], esi
lea eax, [edi + 0x220]
mov ecx, str.InstallID
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417087
test dx, dx
je 0x417083
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417087
add eax, 4
add ecx, 4
test dx, dx
jne 0x417061
xor eax, eax
jmp 0x41708c
sbb eax, eax
or eax, 1
test eax, eax
mov esi, edi
cmovne esi, dword [ebp - 0xc0]
add edi, 0x6a4
sub dword [ebp - 0xcc], 1
jne 0x417050
test esi, esi
je 0x417a93
lea eax, [ebp - 0xb4]
push eax
push 1
push 0
lea eax, [esi + 0x18]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417153
push 0x80
push eax
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0xc0], 0x80
call fcn.00568420
add esp, 0xc
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0
push str.InstallID
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 0xbc]
test eax, eax
push dword [ebp - 0xb4]
mov eax, 1
cmovne edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xb4], 0
test edi, edi
jne 0x417153
mov eax, dword [ebp - 0xd0]
cmp dword [eax + 8], edi
jne 0x417325
mov edi, dword [ebp - 0xc4]
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp - 0xd4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x417a9f
push dword [edi + 0x46c]
lea eax, [edi + 0x470]
push eax
push dword [edi + 0x468]
lea eax, [edi + 0x220]
push 0
push eax
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x417a93
push dword [esi + 0x46c]
lea eax, [esi + 0x470]
push eax
push dword [esi + 0x468]
push 0
push str.InstallID
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xb4]
test eax, eax
jne 0x417a99
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xd0]
cmp dword [edi + 0x6a0], 0
je 0x417a2c
lea edx, [eax + 0xe4a0]
lea eax, [edi + 0x428]
push eax
lea eax, [edi + 0x220]
push eax
lea esi, [edi + 0x18]
lea ecx, [edi + 4]
push esi
mov dword [ebp - 0xcc], ecx
push ecx
mov ecx, edx
call fcn.0041cee0
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x417ad2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 1
test esi, esi
je 0x417346
test esi, 0xffff0000
jne 0x417330
movzx eax, si
lea ecx, [ebp - 0xc4]
push eax
call fcn.0040e020
jmp 0x417355
mov ecx, str.InstallID
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4172a8
test dx, dx
je 0x4172a4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4172a8
add eax, 4
add ecx, 4
test dx, dx
jne 0x417282
xor eax, eax
jmp 0x4172ad
sbb eax, eax
or eax, 1
test eax, eax
je 0x4171f4
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc4], 0
push eax
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc0], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [edi + 0x18]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x417a9f
push dword [edi + 0x46c]
lea eax, [edi + 0x470]
push eax
push dword [edi + 0x468]
push 0
push esi
push dword [ebp - 0xc4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc4]
jmp 0x4171e6
mov edi, dword [ebp - 0xc4]
jmp 0x4171fa
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417335
sub ecx, edx
sar ecx, 1
jmp 0x417348
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0xc4]
call fcn.00407520
mov esi, dword [ebp - 0xc4]
mov byte [ebp - 4], 2
lea eax, [esi - 0x10]
push eax
mov dword [ebp - 0xd4], eax
call fcn.00406b20
add eax, 0x10
add esp, 4
mov dword [ebp - 0xb8], eax
mov edi, dword [eax - 0xc]
mov byte [ebp - 4], 3
test edi, edi
js 0x417aeb
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x4173ac
push edi
lea ecx, [ebp - 0xb8]
call fcn.00407480
mov eax, dword [ebp - 0xb8]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.0056e689
mov eax, dword [ebp - 0xb8]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x417aeb
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], ecx
mov word [eax + edi*2], cx
mov edx, dword [ebp - 0x10c]
test edx, edx
jle 0x41745d
mov eax, dword [ebp - 0xb8]
nop dword [eax]
test ecx, ecx
js 0x417adc
cmp ecx, edx
jge 0x417adc
test eax, eax
je 0x417ad2
mov edx, dword [ebp - 0x110]
mov ecx, dword [edx + ecx*4]
mov edx, eax
mov di, word [ecx]
cmp di, word [edx]
jne 0x417439
test di, di
je 0x417435
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x417439
add ecx, 4
add edx, 4
test di, di
jne 0x417413
xor ecx, ecx
jmp 0x41743e
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x417519
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ebp - 0x10c]
inc ecx
mov dword [ebp - 0xbc], ecx
cmp ecx, edx
jl 0x4173f0
lea eax, [ebp - 0xb8]
push eax
push edx
lea ecx, [ebp - 0x114]
call fcn.004324a5
mov eax, dword [ebp - 0xb8]
cmp dword [eax - 0xc], 0
jl 0x4175ee
push str.SOFTWARECANON
push eax
call fcn.0056857a
add esp, 8
test eax, eax
je 0x4175ee
sub eax, dword [ebp - 0xb8]
sar eax, 1
jne 0x4175ee
push 9
push str.SOFTWARE
call fcn.0056d04f
mov ecx, dword [esi - 0xc]
xor edi, edi
sub ecx, eax
add esp, 8
add eax, 1
cmovns edi, eax
xor edx, edx
add ecx, 0xffffffff
mov eax, 0x7fffffff
cmovns edx, ecx
sub eax, edi
cmp eax, edx
jl 0x417ae1
mov ecx, dword [esi - 0xc]
lea eax, [edx + edi]
cmp eax, ecx
jle 0x4174e5
mov edx, ecx
sub edx, edi
xor eax, eax
cmp edi, ecx
cmovle eax, edx
mov dword [ebp - 0xc0], eax
test edi, edi
jne 0x41755d
add eax, edi
cmp eax, ecx
jne 0x41755d
mov edx, dword [ebp - 0xd4]
push edx
call fcn.00406b20
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xe0], esi
jmp 0x417599
lea edx, [eax - 0x10]
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417535
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xd4]
or eax, 0xffffffff
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417a76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x417a76
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x41756f
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test eax, eax
jne 0x41757d
call fcn.00423a43
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
push eax
push dword [ebp - 0xc0]
lea eax, [esi + edi*2]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040e500
mov esi, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xc8]
push str.DELETE_EMPTY
push esi
push str.SOFTWARE
push dword [ebp - 0xcc]
or eax, 1
mov byte [ebp - 4], 4
lea ecx, [ecx + 0xe4a0]
mov dword [ebp - 0xc8], eax
call fcn.0041ca60
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4179eb
mov ecx, dword [esi]
push esi
jmp 0x4179e6
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x417ad2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xb4], eax
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb4]
test eax, 0xffff0000
jne 0x41762e
movzx eax, ax
push eax
call fcn.0040e020
jmp 0x41763a
push 0x33
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
call fcn.00407520
mov edi, dword [ebp - 0xb4]
mov byte [ebp - 4], 6
mov edx, dword [edi - 0xc]
mov dword [ebp - 0xbc], edx
test edx, edx
js 0x417aeb
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x41767e
push edx
lea ecx, [ebp - 0xb4]
call fcn.00407480
mov edi, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xbc]
lea eax, [edx + 1]
push eax
push edi
call fcn.0056e689
mov eax, dword [ebp - 0xbc]
add esp, 8
cmp eax, dword [edi - 8]
jg 0x417aeb
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0xb8]
cmp dword [eax - 0xc], ecx
jl 0x4177fc
push edi
push eax
call fcn.0056857a
add esp, 8
test eax, eax
je 0x4177fc
sub eax, dword [ebp - 0xb8]
sar eax, 1
jne 0x4177fc
push 0x34
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
call fcn.0056d04f
mov ecx, dword [esi - 0xc]
xor edx, edx
sub ecx, eax
add esp, 8
add eax, 1
cmovns edx, eax
mov eax, 0x7fffffff
mov dword [ebp - 0xc0], edx
xor edx, edx
add ecx, 0xffffffff
cmovns edx, ecx
mov ecx, dword [ebp - 0xc0]
sub eax, ecx
cmp eax, edx
jl 0x417ae1
lea eax, [edx + ecx]
cmp eax, dword [esi - 0xc]
mov eax, dword [esi - 0xc]
jle 0x417720
mov edx, eax
sub edx, ecx
mov dword [ebp - 0xbc], 0
cmp ecx, eax
mov eax, dword [ebp - 0xbc]
cmovle eax, edx
mov dword [ebp - 0xbc], eax
test ecx, ecx
jne 0x417760
add eax, ecx
cmp eax, dword [esi - 0xc]
jne 0x417760
mov edx, dword [ebp - 0xd4]
push edx
call fcn.00406b20
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xe4], esi
jmp 0x4177a2
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x417772
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test eax, eax
jne 0x417780
call fcn.00423a43
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov edx, dword [ebp - 0xc0]
lea ecx, [ebp - 0xe4]
push eax
push dword [ebp - 0xbc]
lea eax, [esi + edx*2]
push eax
call fcn.0040e500
mov esi, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xc8]
push str.DELETE_EMPTY
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push dword [ebp - 0xcc]
or eax, 2
mov byte [ebp - 4], 7
lea ecx, [ecx + 0xe4a0]
mov dword [ebp - 0xc8], eax
call fcn.0041ca60
mov byte [ebp - 4], 6
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4179cf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4179cf
cmp dword [ebp - 0xe8], 1
jne 0x4179cf
push 0x5c
push esi
call fcn.005688bd
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x41781f
or ecx, 0xffffffff
jmp 0x417823
sub ecx, esi
sar ecx, 1
mov eax, dword [esi - 0xc]
mov dword [ebp - 0xd8], ecx
inc ecx
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00415ba0
mov eax, dword [ebp - 0xc8]
or eax, 4
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xb8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
mov dword [ebp - 0xc0], ecx
lea edx, [eax - 0x10]
mov dword [ebp - 0xbc], edx
cmp edx, ecx
je 0x4178ed
add ecx, 0xc
mov dword [ebp - 0xf8], ecx
cmp dword [ecx], 0
jl 0x4178d8
mov edi, dword [ebp - 0xc0]
mov ecx, dword [edx]
cmp ecx, dword [edi]
mov edi, dword [ebp - 0xb4]
jne 0x4178d8
push edx
call fcn.00406b20
mov edx, dword [ebp - 0xf8]
add esp, 4
mov dword [ebp - 0xfc], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4178cd
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xfc]
add eax, 0x10
mov dword [ebp - 0xb8], eax
jmp 0x4178e7
push dword [eax - 0xc]
lea ecx, [ebp - 0xb8]
push eax
call fcn.00407520
mov edx, dword [ebp - 0xbc]
mov byte [ebp - 4], 6
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417906
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xd8]
xor eax, eax
test ecx, ecx
cmovns eax, ecx
mov dword [ebp - 0xd8], eax
cmp eax, dword [esi - 0xc]
jl 0x417938
mov edx, dword [ebp - 0xd4]
push edx
call fcn.00406b20
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xec], esi
jmp 0x417971
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x41794a
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test eax, eax
jne 0x417958
call fcn.00423a43
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
push eax
push dword [ebp - 0xd8]
lea ecx, [ebp - 0xec]
push esi
call fcn.0040e500
mov esi, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xc8]
push str.DELETE_EMPTY
push dword [ebp - 0xb8]
or eax, 8
mov byte [ebp - 4], 9
push esi
push dword [ebp - 0xcc]
lea ecx, [ecx + 0xe4a0]
mov dword [ebp - 0xc8], eax
call fcn.0041ca60
mov byte [ebp - 4], 6
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4179cf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 3
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4179eb
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xb8]
or eax, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417a0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xd4]
or eax, 0xffffffff
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417a2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xd0]
test byte [eax + 0x18], 2
je 0x417a76
lea esi, [eax + 0x4d8]
xor edx, edx
mov eax, dword [ebp - 0xdc]
mov ecx, esi
imul eax, dword [ebp - 0x100]
div dword [ebp + 8]
add eax, dword [ebp + 0x10]
push eax
call fcn.0041a780
test esi, esi
jne 0x417a63
xor eax, eax
jmp 0x417a66
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xdc]
inc eax
mov dword [ebp - 0xdc], eax
cmp eax, dword [ebp + 8]
jae 0x417aa6
mov esi, dword [ebp - 0xf0]
jmp 0x416f43
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x643
jmp 0x417aa8
xor esi, esi
lea ecx, [ebp - 0x114]
call fcn.004320e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005663a7
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00406af0
call fcn.0042271c
push 0x80070216
call fcn.00406af0
push 0x80070057
call fcn.00406af0
int3