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

Disassembly:
sub esp, 0x490
mov eax, dword [0x10067024]
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 0x1001ed38
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 0x1001ed38
push 0
lea eax, [esp + 0x18]
push 0x32
push eax
call fcn.10014f40
push 0
lea eax, [esp + 0x8c]
push 0x208
push eax
call fcn.10014f40
add esp, 0x18
lea ecx, [esp + 0x14]
cmp word [esp + 0x14], 0
je 0x1001ea4f
add ecx, 2
cmp word [ecx], 0
jne 0x1001ea46
push esi
push edi
push 0xffffffffffffffff
mov edx, str.0.0.0.0
call fcn.10008a90
xor edi, edi
add esp, 4
cmp dword [esp + 0xc], edi
jbe 0x1001ec47
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.10014f40
push 0
lea eax, [esp + 0x2a4]
mov dword [esp + 0x30], 0x19
push 0x208
push eax
mov dword [esp + 0x30], 1
call fcn.10014f40
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 0x1001ec3a
cmp dword [esp + 0x18], 1
jne 0x1001ec3a
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x5c]
push eax
call ebx
test eax, eax
jle 0x1001ec3a
mov si, word [esp + 0x24]
lea eax, [esp + 0x24]
xor ecx, ecx
test si, si
je 0x1001eb2a
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1001eb20
xor edx, edx
lea eax, [esp + 0x24]
test si, si
je 0x1001eb3f
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x1001eb35
cmp ecx, edx
jg 0x1001eb79
lea eax, [esp + 0x24]
mov edx, eax
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
test cx, cx
je 0x1001eb6f
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 0x1001eb60
xor ecx, ecx
mov word [eax], cx
mov si, word [esp + 0x24]
lea ecx, [esp + 0x24]
test si, si
je 0x1001eb8b
add ecx, 2
cmp word [ecx], 0
jne 0x1001eb82
push 0xffffffffffffffff
lea edx, [esp + 0x5c]
call fcn.10008a90
mov si, word [esp + 0x90]
lea eax, [esp + 0x90]
add esp, 4
xor ecx, ecx
test si, si
je 0x1001ebba
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1001ebb0
xor edx, edx
lea eax, [esp + 0x8c]
test si, si
je 0x1001ebd2
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x1001ebc8
cmp ecx, edx
jg 0x1001ec0c
lea eax, [esp + 0x8c]
mov edx, eax
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
test cx, cx
je 0x1001ebff
mov esi, eax
sub edx, esi
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x1001ebf0
xor ecx, ecx
mov word [eax], cx
mov si, word [esp + 0x8c]
lea ecx, [esp + 0x8c]
test si, si
je 0x1001ec29
nop dword [eax + eax]
add ecx, 2
cmp word [ecx], 0
jne 0x1001ec20
push 0xffffffffffffffff
lea edx, [esp + 0x298]
call fcn.10008a90
add esp, 4
inc edi
cmp edi, dword [esp + 0x14]
jb 0x1001ea80
pop ebp
pop ebx
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1001ec58
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 0x1001ed1d
xor ecx, ecx
lea eax, [esp + 0x84]
cmp word [esp + 0x84], cx
je 0x1001ed12
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1001ec97
test ecx, ecx
je 0x1001ed12
lea eax, [esp + 0x84]
xor ecx, ecx
nop
cmp word [eax + 2], 0
lea eax, [eax + 2]
lea ecx, [ecx + 1]
jne 0x1001ecb0
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 0x1001ecfa
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1001ecf0
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 0x1001ed1d
push eax
call esi
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48c]
xor ecx, esp
call fcn.1002c803
add esp, 0x490
ret 4
mov ecx, dword [esp + 0x48c]
xor eax, eax
xor ecx, esp
call fcn.1002c803
add esp, 0x490
ret 4