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

Disassembly:
sub esp, 0x490
mov eax, dword [0x10088020]
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 0x100347f8
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 0x100347f8
push 0
lea eax, [esp + 0x18]
push 0x32
push eax
call fcn.100262e0
push 0
lea eax, [esp + 0x8c]
push 0x208
push eax
call fcn.100262e0
add esp, 0x18
lea ecx, [esp + 0x14]
cmp word [esp + 0x14], 0
je 0x1003451f
add ecx, 2
cmp word [ecx], 0
jne 0x10034516
push esi
push edi
push 0xffffffffffffffff
mov edx, str.0.0.0.0
call fcn.10013290
xor edi, edi
add esp, 4
cmp dword [esp + 0xc], edi
jbe 0x10034707
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.100262e0
push 0
lea eax, [esp + 0x2a4]
mov dword [esp + 0x30], 0x19
push 0x208
push eax
mov dword [esp + 0x30], 1
call fcn.100262e0
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 0x100346fa
cmp dword [esp + 0x18], 1
jne 0x100346fa
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x5c]
push eax
call ebx
test eax, eax
jle 0x100346fa
mov si, word [esp + 0x24]
lea eax, [esp + 0x24]
xor ecx, ecx
test si, si
je 0x100345fa
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x100345f0
xor edx, edx
lea eax, [esp + 0x24]
test si, si
je 0x1003460f
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x10034605
cmp ecx, edx
jg 0x1003463d
lea edx, [ecx + ecx]
movzx ecx, word [esp + edx + 0x24]
lea eax, [esp + 0x24]
test cx, cx
je 0x10034633
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x10034624
xor ecx, ecx
mov word [eax], cx
mov si, word [esp + 0x24]
lea ecx, [esp + 0x24]
test si, si
je 0x1003464f
add ecx, 2
cmp word [ecx], 0
jne 0x10034646
push 0xffffffffffffffff
lea edx, [esp + 0x5c]
call fcn.10013290
mov si, word [esp + 0x90]
lea eax, [esp + 0x90]
add esp, 4
xor ecx, ecx
test si, si
je 0x1003467d
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10034673
xor edx, edx
lea eax, [esp + 0x8c]
test si, si
je 0x1003469a
nop dword [eax + eax]
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x10034690
cmp ecx, edx
jg 0x100346d1
lea edx, [ecx + ecx]
movzx ecx, word [esp + edx + 0x8c]
lea eax, [esp + 0x8c]
test cx, cx
je 0x100346c4
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x100346b5
xor ecx, ecx
mov word [eax], cx
mov si, word [esp + 0x8c]
lea ecx, [esp + 0x8c]
test si, si
je 0x100346e9
nop dword [eax]
add ecx, 2
cmp word [ecx], 0
jne 0x100346e0
push 0xffffffffffffffff
lea edx, [esp + 0x298]
call fcn.10013290
add esp, 4
inc edi
cmp edi, dword [esp + 0x14]
jb 0x10034550
pop ebp
pop ebx
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10034718
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 0x100347dd
xor ecx, ecx
lea eax, [esp + 0x84]
cmp word [esp + 0x84], cx
je 0x100347d2
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10034757
test ecx, ecx
je 0x100347d2
lea eax, [esp + 0x84]
xor ecx, ecx
nop
cmp word [eax + 2], 0
lea eax, [eax + 2]
lea ecx, [ecx + 1]
jne 0x10034770
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 0x100347ba
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x100347b0
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 0x100347dd
push eax
call esi
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48c]
xor ecx, esp
call fcn.10044a98
add esp, 0x490
ret 4
mov ecx, dword [esp + 0x48c]
xor eax, eax
xor ecx, esp
call fcn.10044a98
add esp, 0x490
ret 4