Function at 0x41b660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4696e0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [0x487914]
push str.user
push eax
call fcn.0044fbff
xor ecx, ecx
add esp, 8
cmp eax, edi
setne cl
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
lea eax, [ecx - 0x7fffffff]
xor edx, edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
lea eax, [ebp - 0x40]
push eax
mov ecx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
mov byte [ebp - 4], 2
call fcn.00401110
mov byte [ebp - 4], 3
mov eax, dword [0x48791c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x40]
call fcn.004249d0
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], eax
je 0x41b713
cmp eax, edi
je 0x41b713
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
push ecx
push 0x20019
push edi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
mov eax, esi
mov dword [ebp - 0x34], 0x20019
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41b736
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00430290
cmp ebx, edi
jne 0x41b8f6
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x3c]
lea esi, [ebp - 0x74]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], str.InstallLocation
call fcn.00404830
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x58], ecx
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x54]
call fcn.00422a20
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x41b7b2
push eax
call fcn.0044ebcc
add esp, 4
cmp dword [ebp - 0x58], 1
mov esi, dword [ebp - 0x54]
jne 0x41b7ee
cmp esi, edi
jne 0x41b7c3
xor eax, eax
jmp 0x41b7df
mov eax, esi
lea edx, [eax + 2]
jmp 0x41b7d0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41b7d0
sub eax, edx
sar eax, 1
push esi
lea edx, [ebp - 0x44]
push edx
mov ebx, eax
call fcn.00401330
mov ebx, dword [ebp - 0x44]
cmp dword [ebx - 0xc], edi
je 0x41b8a9
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b817
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b83a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x41b84d
cmp dword [ebp - 0x3c], eax
je 0x41b84d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
jb 0x41b85f
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044ebcc
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
cmp esi, edi
je 0x41b87c
push esi
call fcn.0044ebcc
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b8a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x41bbf6
mov ecx, dword [ebp - 0x38]
cmp ecx, edi
je 0x41b8d6
mov eax, dword [ebp - 0x3c]
sub eax, ecx
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov eax, 0x4776c8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call fcn.00430290
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b8f6
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], eax
je 0x41b90c
cmp eax, edi
je 0x41b90c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push eax
push 0x20006
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
mov eax, esi
mov dword [ebp - 0x34], 0x20006
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41b930
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00430290
cmp ebx, edi
jne 0x41b9a6
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.00404490
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x38]
sub eax, ecx
push eax
push ecx
mov ecx, dword [ebp - 0x58]
push ecx
push edi
push str.InstallLocation
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x38]
cmp ecx, edi
je 0x41b9a9
mov eax, dword [ebp - 0x3c]
sub eax, ecx
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov eax, 0x4776c8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call fcn.00430290
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], ecx
je 0x41b9bc
cmp ecx, edi
je 0x41b9bc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push eax
push 0x20019
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
mov eax, esi
mov dword [ebp - 0x34], 0x20019
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41b9e0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00430290
cmp ebx, edi
jne 0x41bb66
mov edx, dword [0x484034]
mov eax, dword [edx + 0xc]
mov ecx, 0x484034
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x60], ecx
lea esi, [ebp - 0x74]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x5c], str.InstallLocation
call fcn.00404830
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], edx
call fcn.00422a20
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x41ba5d
push eax
call fcn.0044ebcc
add esp, 4
cmp dword [ebp - 0x58], 1
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
jne 0x41bb46
mov esi, dword [ebp - 0x54]
mov edx, esi
lea edi, [ebp - 0x44]
call fcn.004011b0
mov ecx, dword [ebp + 8]
mov eax, edi
push eax
call fcn.00421720
test eax, eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x44]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bab0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bad3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x41bae6
cmp dword [ebp - 0x3c], eax
je 0x41bae6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
jb 0x41baf8
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044ebcc
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], dx
test esi, esi
je 0x41bb19
push esi
call fcn.0044ebcc
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bb3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
jmp 0x41bbf6
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bb66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bb89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x41bb9c
cmp dword [ebp - 0x3c], eax
je 0x41bb9c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
jb 0x41bbae
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044ebcc
add esp, 4
mov eax, dword [ebp - 0x54]
xor edx, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
cmp eax, edi
je 0x41bbce
push eax
call fcn.0044ebcc
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bbf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret 4