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

Disassembly:
push ebp
lea ebp, [esp - 0x47c]
sub esp, 0x47c
push 0xffffffffffffffff
push 0x1006a775
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 0x1003bea1
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 0x1003bea1
push 0
lea eax, [ebp + 0x444]
push 0x32
push eax
call fcn.1002d1b0
push 0
lea eax, [ebp + 0x208]
push 0x208
push eax
call fcn.1002d1b0
add esp, 0x18
lea ecx, [ebp + 0x444]
cmp word [ebp + 0x444], 0
je 0x1003b909
nop dword [eax]
add ecx, 2
cmp word [ecx], 0
jne 0x1003b900
push 0xffffffffffffffff
mov edx, str.0.0.0.0
call fcn.10013e00
xor edi, edi
add esp, 4
cmp dword [ebp - 0x20], edi
jbe 0x1003bae0
push 0
lea eax, [ebp + 0x410]
push 0x32
push eax
call fcn.1002d1b0
push 0
lea eax, [ebp]
mov dword [ebp - 0x1c], 0x19
push 0x208
push eax
mov dword [ebp - 0x10], 1
call fcn.1002d1b0
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 0x1003bad6
cmp dword [ebp - 0x10], 1
jne 0x1003bad6
lea eax, [ebp + 0x444]
push eax
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jle 0x1003bad6
mov si, word [ebp + 0x444]
lea eax, [ebp + 0x444]
xor ecx, ecx
test si, si
je 0x1003b9ca
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1003b9c0
xor edx, edx
lea eax, [ebp + 0x444]
test si, si
je 0x1003b9e1
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x1003b9d7
cmp ecx, edx
jg 0x1003ba1b
lea edx, [ecx + ecx]
movzx ecx, word [ebp + edx + 0x444]
lea eax, [ebp + 0x444]
test cx, cx
je 0x1003ba0f
nop dword [eax + eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [eax + edx]
test cx, cx
jne 0x1003ba00
xor ecx, ecx
mov word [eax], cx
mov si, word [ebp + 0x444]
lea ecx, [ebp + 0x444]
test si, si
je 0x1003ba2f
add ecx, 2
cmp word [ecx], 0
jne 0x1003ba26
push 0xffffffffffffffff
lea edx, [ebp + 0x410]
call fcn.10013e00
mov si, word [ebp + 0x208]
lea eax, [ebp + 0x208]
add esp, 4
xor ecx, ecx
test si, si
je 0x1003ba5d
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1003ba53
xor edx, edx
lea eax, [ebp + 0x208]
test si, si
je 0x1003ba7a
nop word [eax + eax]
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x1003ba70
cmp ecx, edx
jg 0x1003baaf
lea edx, [ecx + ecx]
movzx ecx, word [ebp + edx + 0x208]
lea eax, [ebp + 0x208]
test cx, cx
je 0x1003baa3
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x1003ba94
xor ecx, ecx
mov word [eax], cx
mov si, word [ebp + 0x208]
lea ecx, [ebp + 0x208]
test si, si
je 0x1003bac9
nop word [eax + eax]
add ecx, 2
cmp word [ecx], 0
jne 0x1003bac0
push 0xffffffffffffffff
lea edx, [ebp]
call fcn.10013e00
add esp, 4
inc edi
cmp edi, dword [ebp - 0x20]
jb 0x1003b923
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1003baee
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 0x1003bea1
xor ecx, ecx
lea eax, [ebp + 0x208]
cmp word [ebp + 0x208], cx
je 0x1003be93
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1003bb30
test ecx, ecx
je 0x1003be93
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 0x1003bb50
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 0x1003bb9a
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1003bb90
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.1001cd60
or ebx, 0xffffffff
cmp byte [eax + 0x1c], 0
je 0x1003bd27
call fcn.1001cd60
mov dword [ebp - 0x1c], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1003bec8
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.100117e0
push 0x35
push str.SoftwareCaphyonAdvanced_InstallerInstallation_Path
lea ecx, [ebp - 0x10]
call fcn.100117e0
push 1
push 0x10094080
lea ecx, [ebp - 0x10]
call fcn.100117e0
push 0xb
push str.InstallRoot
lea ecx, [ebp - 0x10]
call fcn.100117e0
push 0xe
push str.__was_set_to:
lea ecx, [ebp - 0x10]
call fcn.100117e0
lea ecx, [ebp + 0x208]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003bc52
sub ecx, edx
lea eax, [ebp + 0x208]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.100117e0
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1003bec8
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.100117e0
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1003bcd0
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1003bcd0
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x1003bcfa
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 0x1003bd27
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.1001cd60
cmp byte [eax + 0x1c], 0
je 0x1003be93
call fcn.1001cd60
mov dword [ebp - 0x1c], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1003bec8
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.100117e0
push 0x35
push str.SoftwareCaphyonAdvanced_InstallerInstallation_Path
lea ecx, [ebp - 0x10]
call fcn.100117e0
push 1
push 0x10094080
lea ecx, [ebp - 0x10]
call fcn.100117e0
push 7
push str.Version
lea ecx, [ebp - 0x10]
call fcn.100117e0
push 0xe
push str.__was_set_to:
lea ecx, [ebp - 0x10]
call fcn.100117e0
lea ecx, [ebp + 0x444]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003bdc0
sub ecx, edx
lea eax, [ebp + 0x444]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.100117e0
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1003bec8
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.100117e0
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1003be3e
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1003be3e
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x1003be68
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 0x1003be93
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 0x1003bea1
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.1004d40a
lea esp, [ebp + 0x47c]
pop ebp
ret 4
push 0x80004005
call fcn.10005390
int3