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

Disassembly:
push ebp
lea ebp, [esp - 0x47c]
sub esp, 0x47c
push 0xffffffffffffffff
push 0x1006a7e5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100ad040]
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 0x1003bf01
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 0x1003bf01
push 0
lea eax, [ebp + 0x444]
push 0x32
push eax
call fcn.1002d240
push 0
lea eax, [ebp + 0x208]
push 0x208
push eax
call fcn.1002d240
add esp, 0x18
lea ecx, [ebp + 0x444]
cmp word [ebp + 0x444], 0
je 0x1003b969
nop dword [eax]
add ecx, 2
cmp word [ecx], 0
jne 0x1003b960
push 0xffffffffffffffff
mov edx, str.0.0.0.0
call fcn.10013e10
xor edi, edi
add esp, 4
cmp dword [ebp - 0x20], edi
jbe 0x1003bb40
push 0
lea eax, [ebp + 0x410]
push 0x32
push eax
call fcn.1002d240
push 0
lea eax, [ebp]
mov dword [ebp - 0x1c], 0x19
push 0x208
push eax
mov dword [ebp - 0x10], 1
call fcn.1002d240
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 0x1003bb36
cmp dword [ebp - 0x10], 1
jne 0x1003bb36
lea eax, [ebp + 0x444]
push eax
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jle 0x1003bb36
mov si, word [ebp + 0x444]
lea eax, [ebp + 0x444]
xor ecx, ecx
test si, si
je 0x1003ba2a
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1003ba20
xor edx, edx
lea eax, [ebp + 0x444]
test si, si
je 0x1003ba41
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x1003ba37
cmp ecx, edx
jg 0x1003ba7b
lea edx, [ecx + ecx]
movzx ecx, word [ebp + edx + 0x444]
lea eax, [ebp + 0x444]
test cx, cx
je 0x1003ba6f
nop dword [eax + eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x1003ba60
xor ecx, ecx
mov word [eax], cx
mov si, word [ebp + 0x444]
lea ecx, [ebp + 0x444]
test si, si
je 0x1003ba8f
add ecx, 2
cmp word [ecx], 0
jne 0x1003ba86
push 0xffffffffffffffff
lea edx, [ebp + 0x410]
call fcn.10013e10
mov si, word [ebp + 0x208]
lea eax, [ebp + 0x208]
add esp, 4
xor ecx, ecx
test si, si
je 0x1003babd
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1003bab3
xor edx, edx
lea eax, [ebp + 0x208]
test si, si
je 0x1003bada
nop word [eax + eax]
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x1003bad0
cmp ecx, edx
jg 0x1003bb0f
lea edx, [ecx + ecx]
movzx ecx, word [ebp + edx + 0x208]
lea eax, [ebp + 0x208]
test cx, cx
je 0x1003bb03
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x1003baf4
xor ecx, ecx
mov word [eax], cx
mov si, word [ebp + 0x208]
lea ecx, [ebp + 0x208]
test si, si
je 0x1003bb29
nop word [eax + eax]
add ecx, 2
cmp word [ecx], 0
jne 0x1003bb20
push 0xffffffffffffffff
lea edx, [ebp]
call fcn.10013e10
add esp, 4
inc edi
cmp edi, dword [ebp - 0x20]
jb 0x1003b983
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1003bb4e
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 0x1003bf01
xor ecx, ecx
lea eax, [ebp + 0x208]
cmp word [ebp + 0x208], cx
je 0x1003bef3
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1003bb90
test ecx, ecx
je 0x1003bef3
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 0x1003bbb0
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 0x1003bbfa
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1003bbf0
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.1001cdb0
or ebx, 0xffffffff
cmp byte [eax + 0x1c], 0
je 0x1003bd87
call fcn.1001cdb0
mov dword [ebp - 0x1c], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1003bf28
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
push 0x35
push str.SoftwareCaphyonAdvanced_InstallerInstallation_Path
lea ecx, [ebp - 0x10]
call fcn.10011800
push 1
push 0x10094080
lea ecx, [ebp - 0x10]
call fcn.10011800
push 0xb
push str.InstallRoot
lea ecx, [ebp - 0x10]
call fcn.10011800
push 0xe
push str.__was_set_to:
lea ecx, [ebp - 0x10]
call fcn.10011800
lea ecx, [ebp + 0x208]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003bcb2
sub ecx, edx
lea eax, [ebp + 0x208]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.10011800
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1003bf28
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1003bd30
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1003bd30
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x1003bd5a
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x1003bd87
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
call fcn.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x1003bef3
call fcn.1001cdb0
mov dword [ebp - 0x1c], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1003bf28
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
push 0x35
push str.SoftwareCaphyonAdvanced_InstallerInstallation_Path
lea ecx, [ebp - 0x10]
call fcn.10011800
push 1
push 0x10094080
lea ecx, [ebp - 0x10]
call fcn.10011800
push 7
push str.Version
lea ecx, [ebp - 0x10]
call fcn.10011800
push 0xe
push str.__was_set_to:
lea ecx, [ebp - 0x10]
call fcn.10011800
lea ecx, [ebp + 0x444]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003be20
sub ecx, edx
lea eax, [ebp + 0x444]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.10011800
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1003bf28
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1003be9e
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1003be9e
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x1003bec8
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x1003bef3
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1003bf01
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.1004d46a
lea esp, [ebp + 0x47c]
pop ebp
ret 4
push 0x80004005
call fcn.10005390
int3