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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d907
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [0x611411], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x180], eax
je 0x4713ce
push 0
push 0
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x170]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4713ee
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x184]
inc eax
push eax
call fcn.004672d0
mov eax, dword [ebp - 0x174]
mov dword [ebp - 4], 0
test eax, eax
je 0x4710ed
push eax
call fcn.00544c6b
add esp, 4
mov dword [ebp - 0x16c], eax
mov esi, eax
jmp 0x4710f5
xor esi, esi
mov dword [ebp - 0x16c], esi
push 0
call fcn.0054454b
add esp, 4
mov dword [ebp - 0x1bc], esi
mov eax, dword [ebp - 0x170]
xor edi, edi
inc eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x168]
push eax
push esi
mov esi, dword [ebp - 0x184]
lea eax, [ebp - 0x17c]
push eax
push edi
lea eax, [ebp - 0x178]
push eax
push esi
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x4711cc
test eax, eax
jne 0x4713c6
push dword [ebp - 0x168]
push dword [ebp - 0x16c]
push dword [ebp - 0x17c]
push eax
mov eax, dword [ebp - 0x180]
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4713be
mov eax, dword [ebp - 0x170]
inc edi
inc eax
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x16c]
lea eax, [ebp - 0x17c]
push eax
push 0
lea eax, [ebp - 0x178]
push eax
push esi
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x471152
cmp byte [ebp + 0xc], 0
je 0x47138c
push 1
push 0
mov ecx, ebx
call fcn.00472550
mov edi, eax
test edi, edi
je 0x47138c
xor esi, esi
nop dword [eax]
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 0xf003f
mov dword [ebp - 0x19c], 0
mov al, byte [ebx + 0xc]
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 0x198], al
mov eax, dword [ebx + 4]
push 0
push 0
and eax, 0xfff2ffd9
mov byte [ebp - 4], 2
or eax, 0x20019
push eax
push edi
push dword [ebx]
call fcn.004732e0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], 0xf003f
mov dword [ebp - 0x18c], 0
mov byte [ebp - 0x188], 0
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 3
mov byte [ebp - 0x161], 1
call fcn.004a21d0
mov ecx, dword [ebp - 0x180]
lea eax, [ebp - 0x161]
push eax
push 0
mov byte [ebp - 4], 4
mov eax, dword [ecx + 4]
or eax, 0xf003f
push eax
push edi
push dword [ecx]
lea ecx, [ebp - 0x194]
call fcn.004732e0
mov eax, dword [ebp - 0x1a8]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 3
mov dword [ebp - 0x1a8], 0
test eax, eax
je 0x4712c1
push eax
call edi
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x1ac], 0
test eax, eax
je 0x4712d8
push eax
call edi
push dword [ebp - 0x1b0]
call fcn.0054454b
push dword [ebp - 0x1b4]
call fcn.0054454b
mov eax, dword [ebp - 0x1b8]
add esp, 8
mov dword [ebp - 0x1b8], 0
test eax, eax
je 0x471308
push eax
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x1a4]
call fcn.00471040
mov eax, dword [ebp - 0x194]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x47133a
push eax
call edi
mov dword [ebp - 0x194], 0
push dword [ebp - 0x18c]
call fcn.0054454b
mov eax, dword [ebp - 0x1a4]
add esp, 4
mov byte [ebp - 4], 1
test eax, eax
je 0x471363
push eax
call edi
mov dword [ebp - 0x1a4], 0
push dword [ebp - 0x19c]
call fcn.0054454b
add esp, 4
inc esi
mov ecx, ebx
push 1
push esi
call fcn.00472550
mov edi, eax
test edi, edi
jne 0x4711f0
mov esi, dword [ebp - 0x184]
push dword [ebp - 0x16c]
call fcn.0054454b
push esi
call fcn.0054454b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret 8
push eax
push str.copyTo_set_
jmp 0x4713f4
push eax
push str.copyTo_enum_
jmp 0x4713f4
push 0x124
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcore_baseoswin_registry.cxx
push str.writeAllowed
lea ecx, [ebp - 0x160]
call fcn.00465850
push eax
call fcn.004658d0
push eax
push str.copyTo_query_
lea ecx, [ebp - 0x158]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
int3