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

Disassembly:
push ebp
lea ebp, [esp - 0x47c]
sub esp, 0x47c
push 0xffffffffffffffff
push 0x10079965
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100c0040]
xor eax, ebp
mov dword [ebp + 0x478], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
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 0x10042081
push eax
push eax
push eax
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x20], 0
je 0x10042081
push 0
lea eax, [ebp + 0x444]
push 0x32
push eax
call fcn.10033390
push 0
lea eax, [ebp + 0x208]
push 0x208
push eax
call fcn.10033390
add esp, 0x18
lea ecx, [ebp + 0x444]
cmp word [ebp + 0x444], 0
je 0x10041ae9
nop dword [eax]
add ecx, 2
cmp word [ecx], 0
jne 0x10041ae0
push 0xffffffffffffffff
mov edx, str.0.0.0.0
call fcn.10016e50
xor edi, edi
add esp, 4
cmp dword [ebp - 0x20], edi
jbe 0x10041cc0
push 0
lea eax, [ebp + 0x410]
push 0x32
push eax
call fcn.10033390
push 0
lea eax, [ebp]
mov dword [ebp - 0x1c], 0x19
push 0x208
push eax
mov dword [ebp - 0x10], 1
call fcn.10033390
add esp, 0x18
mov dword [ebp - 0x18], 0x104
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x410]
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10041cb6
cmp dword [ebp - 0x10], 1
jne 0x10041cb6
lea eax, [ebp + 0x444]
push eax
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jle 0x10041cb6
mov si, word [ebp + 0x444]
lea eax, [ebp + 0x444]
xor ecx, ecx
test si, si
je 0x10041baa
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10041ba0
xor edx, edx
lea eax, [ebp + 0x444]
test si, si
je 0x10041bc1
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x10041bb7
cmp ecx, edx
jg 0x10041bfb
lea edx, [ecx + ecx]
movzx ecx, word [ebp + edx + 0x444]
lea eax, [ebp + 0x444]
test cx, cx
je 0x10041bef
nop dword [eax + eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [eax + edx]
test cx, cx
jne 0x10041be0
xor ecx, ecx
mov word [eax], cx
mov si, word [ebp + 0x444]
lea ecx, [ebp + 0x444]
test si, si
je 0x10041c0f
add ecx, 2
cmp word [ecx], 0
jne 0x10041c06
push 0xffffffffffffffff
lea edx, [ebp + 0x410]
call fcn.10016e50
mov si, word [ebp + 0x208]
lea eax, [ebp + 0x208]
add esp, 4
xor ecx, ecx
test si, si
je 0x10041c3d
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10041c33
xor edx, edx
lea eax, [ebp + 0x208]
test si, si
je 0x10041c5a
nop word [eax + eax]
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x10041c50
cmp ecx, edx
jg 0x10041c8f
lea edx, [ecx + ecx]
movzx ecx, word [ebp + edx + 0x208]
lea eax, [ebp + 0x208]
test cx, cx
je 0x10041c83
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x10041c74
xor ecx, ecx
mov word [eax], cx
mov si, word [ebp + 0x208]
lea ecx, [ebp + 0x208]
test si, si
je 0x10041ca9
nop word [eax + eax]
add ecx, 2
cmp word [ecx], 0
jne 0x10041ca0
push 0xffffffffffffffff
lea edx, [ebp]
call fcn.10016e50
add esp, 4
inc edi
cmp edi, dword [ebp - 0x20]
jb 0x10041b03
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10041cce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea eax, [ebp - 0x14]
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 0x10042081
xor ecx, ecx
lea eax, [ebp + 0x208]
cmp word [ebp + 0x208], cx
je 0x10042073
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10041d10
test ecx, ecx
je 0x10042073
lea eax, [ebp + 0x208]
xor ecx, ecx
nop word [eax + eax]
cmp word [eax + 2], 0
lea eax, [eax + 2]
lea ecx, [ecx + 1]
jne 0x10041d30
lea eax, [ecx + ecx]
push eax
lea eax, [ebp + 0x208]
push eax
push 1
push 0
push str.InstallRoot
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
lea eax, [ebp + 0x444]
cmp word [ebp + 0x444], cx
je 0x10041d7a
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10041d70
lea eax, [ecx + ecx]
push eax
lea eax, [ebp + 0x444]
push eax
push 1
push 0
push str.Version
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.100218f0
or ebx, 0xffffffff
cmp byte [eax + 0x1c], 0
je 0x10041f07
call fcn.100218f0
mov dword [ebp - 0x1c], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x100420a8
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 0x10
push str.Registry_entry__
call fcn.10014a40
push 0x35
push str.SoftwareCaphyonAdvanced_InstallerInstallation_Path
lea ecx, [ebp - 0x10]
call fcn.10014a40
push 1
push 0x100a46c8
lea ecx, [ebp - 0x10]
call fcn.10014a40
push 0xb
push str.InstallRoot
lea ecx, [ebp - 0x10]
call fcn.10014a40
push 0xe
push str.__was_set_to:
lea ecx, [ebp - 0x10]
call fcn.10014a40
lea ecx, [ebp + 0x208]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10041e32
sub ecx, edx
lea eax, [ebp + 0x208]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x100420a8
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10041eb0
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10041eb0
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 2
mov eax, ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10041eda
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10041f07
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x10042073
call fcn.100218f0
mov dword [ebp - 0x1c], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x100420a8
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x10]
push 0x10
push str.Registry_entry__
call fcn.10014a40
push 0x35
push str.SoftwareCaphyonAdvanced_InstallerInstallation_Path
lea ecx, [ebp - 0x10]
call fcn.10014a40
push 1
push 0x100a46c8
lea ecx, [ebp - 0x10]
call fcn.10014a40
push 7
push str.Version
lea ecx, [ebp - 0x10]
call fcn.10014a40
push 0xe
push str.__was_set_to:
lea ecx, [ebp - 0x10]
call fcn.10014a40
lea ecx, [ebp + 0x444]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10041fa0
sub ecx, edx
lea eax, [ebp + 0x444]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x100420a8
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x18]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004201e
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004201e
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0xc
mov eax, ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10042048
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10042073
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10042081
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x478]
xor ecx, ebp
call fcn.10053e7d
lea esp, [ebp + 0x47c]
pop ebp
ret 4
push 0x80004005
call fcn.10005390
int3