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

Disassembly:
sub esp, 0x490
mov eax, dword [0x10059024]
xor eax, esp
mov dword [esp + 0x48c], eax
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareCaphyonAdvanced_InstallerInstallation_Path
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10017f98
push eax
push eax
push eax
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [esp + 4], 0
je 0x10017f98
push 0
lea eax, [esp + 0x18]
push 0x32
push eax
call fcn.1000f2a0
push 0
lea eax, [esp + 0x8c]
push 0x208
push eax
call fcn.1000f2a0
add esp, 0x18
lea ecx, [esp + 0x14]
cmp word [esp + 0x14], 0
je 0x10017caf
add ecx, 2
cmp word [ecx], 0
jne 0x10017ca6
push esi
push edi
push 0xffffffffffffffff
mov edx, str.0.0.0.0
call fcn.10007d70
xor edi, edi
add esp, 4
cmp dword [esp + 0xc], edi
jbe 0x10017ea7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop word [eax + eax]
push 0
lea eax, [esp + 0x5c]
push 0x32
push eax
call fcn.1000f2a0
push 0
lea eax, [esp + 0x2a4]
mov dword [esp + 0x30], 0x19
push 0x208
push eax
mov dword [esp + 0x30], 1
call fcn.1000f2a0
add esp, 0x18
mov dword [esp + 0x1c], 0x104
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x298]
push eax
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x6c]
push eax
push edi
push dword [esp + 0x2c]
call ebp
test eax, eax
jne 0x10017e9a
cmp dword [esp + 0x18], 1
jne 0x10017e9a
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x5c]
push eax
call ebx
test eax, eax
jle 0x10017e9a
mov si, word [esp + 0x24]
lea eax, [esp + 0x24]
xor ecx, ecx
test si, si
je 0x10017d8a
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10017d80
xor edx, edx
lea eax, [esp + 0x24]
test si, si
je 0x10017d9f
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x10017d95
cmp ecx, edx
jg 0x10017dd9
lea eax, [esp + 0x24]
mov edx, eax
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
test cx, cx
je 0x10017dcf
mov esi, eax
sub edx, esi
nop dword [eax + eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x10017dc0
xor ecx, ecx
mov word [eax], cx
mov si, word [esp + 0x24]
lea ecx, [esp + 0x24]
test si, si
je 0x10017deb
add ecx, 2
cmp word [ecx], 0
jne 0x10017de2
push 0xffffffffffffffff
lea edx, [esp + 0x5c]
call fcn.10007d70
mov si, word [esp + 0x90]
lea eax, [esp + 0x90]
add esp, 4
xor ecx, ecx
test si, si
je 0x10017e1a
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10017e10
xor edx, edx
lea eax, [esp + 0x8c]
test si, si
je 0x10017e32
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x10017e28
cmp ecx, edx
jg 0x10017e6c
lea eax, [esp + 0x8c]
mov edx, eax
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
test cx, cx
je 0x10017e5f
mov esi, eax
sub edx, esi
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x10017e50
xor ecx, ecx
mov word [eax], cx
mov si, word [esp + 0x8c]
lea ecx, [esp + 0x8c]
test si, si
je 0x10017e89
nop dword [eax + eax]
add ecx, 2
cmp word [ecx], 0
jne 0x10017e80
push 0xffffffffffffffff
lea edx, [esp + 0x298]
call fcn.10007d70
add esp, 4
inc edi
cmp edi, dword [esp + 0x14]
jb 0x10017ce0
pop ebp
pop ebx
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10017eb8
push eax
call esi
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareCaphyonAdvanced_Installer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10017f7d
xor ecx, ecx
lea eax, [esp + 0x84]
cmp word [esp + 0x84], cx
je 0x10017f72
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10017ef7
test ecx, ecx
je 0x10017f72
lea eax, [esp + 0x84]
xor ecx, ecx
nop
cmp word [eax + 2], 0
lea eax, [eax + 2]
lea ecx, [ecx + 1]
jne 0x10017f10
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x88]
push eax
push 1
push 0
push str.InstallRoot
push dword [esp + 0x1c]
call edi
xor ecx, ecx
lea eax, [esp + 0x1c]
cmp word [esp + 0x1c], cx
je 0x10017f5a
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10017f50
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x20]
push eax
push 1
push 0
push str.Version
push dword [esp + 0x1c]
call edi
mov eax, dword [esp + 8]
test eax, eax
je 0x10017f7d
push eax
call esi
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48c]
xor ecx, esp
call fcn.10024a34
add esp, 0x490
ret 4
mov ecx, dword [esp + 0x48c]
xor eax, eax
xor ecx, esp
call fcn.10024a34
add esp, 0x490
ret 4