Function at 0x418300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fab0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4786a0]
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 [0x47b754]
push 0x46ab1c
push eax
call fcn.0044646f
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 [0x47b75c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x40]
call fcn.00420540
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], eax
je 0x4183b3
cmp eax, edi
je 0x4183b3
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 0x4183d6
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00429690
cmp ebx, edi
jne 0x418596
mov eax, dword [0x478034]
mov edx, dword [eax + 0xc]
mov ecx, 0x478034
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.004044c0
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.0041ed70
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x418452
push eax
call fcn.0044543c
add esp, 4
cmp dword [ebp - 0x58], 1
mov esi, dword [ebp - 0x54]
jne 0x41848e
cmp esi, edi
jne 0x418463
xor eax, eax
jmp 0x41847f
mov eax, esi
lea edx, [eax + 2]
jmp 0x418470
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x418470
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 0x418549
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 0x4184b7
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 0x4184da
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 0x4184ed
cmp dword [ebp - 0x3c], eax
je 0x4184ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
jb 0x4184ff
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044543c
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 0x41851c
push esi
call fcn.0044543c
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 0x418542
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x418896
mov ecx, dword [ebp - 0x38]
cmp ecx, edi
je 0x418576
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, 0x46cea0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call fcn.00429690
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 0x418596
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 0x4185ac
cmp eax, edi
je 0x4185ac
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 0x4185d0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00429690
cmp ebx, edi
jne 0x418646
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.00404120
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 0x418649
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, 0x46cea0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call fcn.00429690
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], ecx
je 0x41865c
cmp ecx, edi
je 0x41865c
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 0x418680
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00429690
cmp ebx, edi
jne 0x418806
mov edx, dword [0x478034]
mov eax, dword [edx + 0xc]
mov ecx, 0x478034
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.004044c0
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.0041ed70
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x4186fd
push eax
call fcn.0044543c
add esp, 4
cmp dword [ebp - 0x58], 1
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
jne 0x4187e6
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.0041dc10
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 0x418750
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 0x418773
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 0x418786
cmp dword [ebp - 0x3c], eax
je 0x418786
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
jb 0x418798
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044543c
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 0x4187b9
push esi
call fcn.0044543c
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 0x4187df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
jmp 0x418896
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 0x418806
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 0x418829
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 0x41883c
cmp dword [ebp - 0x3c], eax
je 0x41883c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
jb 0x41884e
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044543c
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 0x41886e
push eax
call fcn.0044543c
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 0x418894
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.00445447
mov esp, ebp
pop ebp
ret 4