Function at 0x4150d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58837f
mov eax, dword fs:[0]
push eax
sub esp, 0x8b8
mov eax, dword [0x5f50fc]
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 - 0x89c], ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x878]
push 0x458
push 0
push eax
call fcn.00568420
add esp, 0xc
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x415911
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x894], eax
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
lea eax, [ebp - 0x894]
mov dword [ebp - 4], 0
push str._s_s
push eax
call fcn.00406e60
add esp, 0x10
mov dword [ebp - 0x87c], 0
lea eax, [ebp - 0x87c]
push eax
push 1
push 0
push dword [ebp - 0x894]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or ebx, 0xffffffff
test eax, eax
jne 0x41590a
mov dword [ebp - 0x888], eax
lea eax, [ebp - 0x898]
push eax
lea eax, [ebp - 0x878]
mov dword [ebp - 0x898], 0x22c
push eax
lea eax, [ebp - 0x888]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x87c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x87c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41590a
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x41591b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x880], eax
lea eax, [ebp - 0x878]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x415219
movzx eax, ax
lea ecx, [ebp - 0x880]
push eax
call fcn.0040e020
jmp 0x415244
lea ecx, [ebp - 0x878]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415222
sub ecx, edx
lea eax, [ebp - 0x878]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x880]
call fcn.00407520
mov byte [ebp - 4], 2
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x415925
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x88c], eax
mov byte [ebp - 4], 3
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x41592f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x87c], edi
mov esi, dword [ebp - 0x880]
mov byte [ebp - 4], 4
mov dword [ebp - 0x898], 0
cmp dword [esi - 0xc], 0
jl 0x4157a0
push str._UninstallRemove
push esi
call fcn.0056857a
add esp, 8
test eax, eax
je 0x415449
sub eax, esi
sar eax, 1
mov dword [ebp - 0x884], eax
test eax, eax
jle 0x415449
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x22c
or eax, ecx
jge 0x4152f6
push 0x22c
lea ecx, [ebp - 0x880]
call fcn.00407480
mov esi, dword [ebp - 0x880]
mov edi, dword [ebp - 0x89c]
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x8a0]
mov dword [ebp - 0x8a0], 0
push eax
push esi
lea eax, [ebp - 0x890]
mov dword [ebp - 0x888], 0
push eax
mov ecx, edi
call fcn.00411990
push eax
lea ecx, [ebp - 0x87c]
mov byte [ebp - 4], 7
call fcn.00406840
mov edx, dword [ebp - 0x890]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41535e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x11
push str._UninstallRemove
call fcn.0056d04f
add eax, dword [ebp - 0x884]
add esp, 8
mov ecx, edi
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x884]
push eax
call fcn.00418ba0
push eax
lea ecx, [ebp - 0x88c]
mov byte [ebp - 4], 8
call fcn.00406840
mov edx, dword [ebp - 0x884]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4153b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi - 8]
push esi
call fcn.0056d04f
add esp, 8
test eax, eax
js 0x415939
cmp eax, dword [esi - 8]
jg 0x415939
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x884]
push eax
lea ecx, [edi + 0x998]
call fcn.0040d3c0
push dword [eax]
mov edi, dword [ebp - 0x87c]
lea eax, [ebp - 0x880]
push str._TransferFilePath
push dword [ebp - 0x88c]
mov byte [ebp - 4], 9
push str._UninstallUpdate
push edi
push str.__s___s___s___s___s_
push eax
call fcn.00406e60
mov edx, dword [ebp - 0x884]
add esp, 0x1c
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4155b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4155b1
cmp dword [esi - 0xc], 0
jl 0x4157a0
push str._Uninstall
push esi
call fcn.0056857a
add esp, 8
test eax, eax
je 0x4157a0
sub eax, esi
sar eax, 1
mov dword [ebp - 0x888], eax
test eax, eax
jle 0x4157a0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4154a5
push 0x104
lea ecx, [ebp - 0x880]
call fcn.00407480
mov esi, dword [ebp - 0x880]
mov edi, dword [ebp - 0x89c]
lea eax, [ebp - 0x884]
push eax
lea eax, [ebp - 0x890]
mov dword [ebp - 0x890], 0
push eax
push esi
lea eax, [ebp - 0x8a0]
mov dword [ebp - 0x884], 0
push eax
mov ecx, edi
call fcn.00411990
push eax
lea ecx, [ebp - 0x87c]
mov byte [ebp - 4], 5
call fcn.00406840
mov edx, dword [ebp - 0x8a0]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41550d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x11
push str._UninstallRemove
call fcn.0056d04f
add eax, dword [ebp - 0x888]
add esp, 8
mov ecx, edi
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x884]
push eax
call fcn.00418ba0
push eax
lea ecx, [ebp - 0x88c]
mov byte [ebp - 4], 6
call fcn.00406840
mov edx, dword [ebp - 0x884]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415565
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi - 8]
push esi
call fcn.0056d04f
add esp, 8
test eax, eax
js 0x415939
cmp eax, dword [esi - 8]
jg 0x415939
push dword [ebp - 0x88c]
mov edi, dword [ebp - 0x87c]
xor ecx, ecx
push str._UninstallDelayReboot
mov dword [esi - 0xc], eax
push edi
mov word [esi + eax*2], cx
lea eax, [ebp - 0x880]
push str.__s___s___s_
push eax
call fcn.00406e60
add esp, 0x14
lea ecx, [ebp - 0x8c4]
call fcn.0043183e
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0xa
push 0
push eax
call fcn.00568420
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00568420
lea eax, [edi - 0x10]
push eax
call fcn.00406b20
lea esi, [eax + 0x10]
mov dword [ebp - 0x888], esi
push edi
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0xb
push 0x104
push eax
call fcn.0056b3b9
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056d04f
lea ecx, [ebp - 0x218]
add esp, 0x30
lea eax, [ecx + eax*2]
cmp eax, ecx
je 0x4156cb
cmp word [eax], 0x5c
je 0x41564b
sub eax, 2
lea ecx, [ebp - 0x218]
cmp eax, ecx
jne 0x415633
jmp 0x4156cb
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0056b3b9
mov ecx, dword [ebp - 0x89c]
lea eax, [ebp - 0x884]
add esp, 0xc
add ecx, 0x998
push eax
call fcn.0040d2b0
push dword [eax]
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x888]
push str._s_s
push eax
call fcn.00406e60
mov edx, dword [ebp - 0x884]
add esp, 0x10
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4156c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x888]
push 0
push edi
lea ecx, [ebp - 0x8c4]
call fcn.00431abd
lea ecx, [ebp - 0x8c4]
mov ebx, eax
call fcn.00431a63
test ebx, ebx
je 0x415762
push 0
push esi
lea ecx, [ebp - 0x8c4]
call fcn.00431abd
lea ecx, [ebp - 0x8c4]
mov ebx, eax
call fcn.00431a63
test ebx, ebx
je 0x415762
push 0
push dword [ebp - 0x88c]
lea ecx, [ebp - 0x8c4]
call fcn.00431abd
lea ecx, [ebp - 0x8c4]
mov ebx, eax
call fcn.00431a63
test ebx, ebx
je 0x415762
or ebx, 0xffffffff
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41574b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x8c4]
mov byte [ebp - 4], 4
call fcn.004319ea
mov esi, dword [ebp - 0x880]
jmp 0x4157aa
or ebx, 0xffffffff
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x415780
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x8c4]
call fcn.004319ea
mov esi, dword [ebp - 0x880]
mov dword [ebp - 0x87c], 0x643
jmp 0x41586b
mov dword [ebp - 0x898], 1
lea eax, [ebp - 0x8a4]
mov dword [ebp - 0x8a4], 0
push eax
push 1
push esi
call fcn.00421d70
add esp, 0xc
test eax, eax
jne 0x4157d9
mov dword [ebp - 0x87c], 0x643
jmp 0x41586b
cmp dword [ebp - 0x898], 0
jne 0x415814
push dword [ebp - 0x8a4]
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x890], eax
test eax, eax
je 0x415814
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x890]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x8a8]
mov dword [ebp - 0x8a8], 0
push eax
push 1
push 0
push dword [ebp - 0x894]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415856
push dword [ebp - 0x8a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x87c], 0x642
jmp 0x41586b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x87c], 0
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x415886
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x88c]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4158a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4158c2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x87c]
mov eax, dword [ebp - 0x894]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4158ea
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.005663a7
mov esp, ebp
pop ebp
ret 4
mov esi, 0x643
jmp 0x4158c8
push 0x80004005
call fcn.00406af0
push 0x80004005
call fcn.00406af0
push 0x80004005
call fcn.00406af0
push 0x80004005
call fcn.00406af0
push 0x80070057
call fcn.00406af0
int3