Function at 0x435c10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596838
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [0x61b3e4]
mov dword [ebp - 0x10], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x435c73
xor edi, edi
jmp 0x435e9a
mov eax, dword [ebp - 0x10]
xor esi, esi
mov edi, dword [0x6299c4]
test eax, eax
je 0x435cbc
mov edx, edi
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x435c87
sub edx, ebx
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push edi
push 1
push 0
push str.InstallRoot
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, 1
cmove esi, eax
mov eax, dword [ebp - 0x10]
mov ebx, dword [0x6299c8]
xor edi, edi
test eax, eax
je 0x435d03
mov edx, ebx
lea ecx, [edx + 2]
mov dword [ebp - 0x14], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x435cd0
sub edx, dword [ebp - 0x14]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push ebx
push 1
push 0
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, 1
cmove edi, eax
and edi, esi
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x435ebc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, str.ProfessionalVersionNumber
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x435d3d
movzx eax, ax
push eax
call fcn.00426130
jmp 0x435d49
push 0x19
push str.ProfessionalVersionNumber
call fcn.004263f0
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 2
test eax, eax
je 0x435d99
mov edx, dword [0x6299c8]
lea ecx, [edx + 2]
mov dword [ebp - 0x18], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x435d65
sub edx, dword [ebp - 0x18]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push dword [0x6299c8]
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, 1
cmove ebx, eax
lea eax, [ebp - 0x20]
and edi, ebx
push eax
call fcn.0043be10
add esp, 4
xor ebx, ebx
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x435df5
mov edx, ecx
lea ecx, [edx + 2]
mov dword [ebp - 0x18], ecx
lea ecx, [ecx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x435dc0
sub edx, dword [ebp - 0x18]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push dword [ebp - 0x1c]
push 1
push 0
push str.DisplayName
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, 1
cmove ebx, eax
mov edx, dword [ebp - 0x20]
and edi, ebx
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x435e14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
test eax, eax
je 0x435e6d
mov edx, dword [0x6299e8]
lea ecx, [edx + 2]
mov dword [ebp - 0x20], ecx
lea esp, [esp]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x435e30
sub edx, dword [ebp - 0x20]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push dword [0x6299e8]
push 1
push 0
push str.hostprocname
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
mov eax, 1
cmove ecx, eax
mov eax, dword [ebp - 0x10]
and edi, ecx
test eax, eax
je 0x435e7a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x435e9a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x435ea8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
int3