Function at 0x471860
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59da21
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
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 eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
dec eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2bc], ebx
cmp eax, 6
ja case.0x4718a7.5
jmp dword [eax*4 + 0x471b94]
push dword [esi + 4]
push dword [esi]
push ebx
call fcn.00464540
add esp, 0xc
jmp 0x471ab3
mov eax, dword [esi]
test al, 1
jne 0x471b44
push 1
shr eax, 1
lea ecx, [ebp - 0x2b4]
push eax
push 0xfde9
push dword [esi + 4]
call fcn.0046c430
push ebx
lea ecx, [ebp - 0x2b4]
call fcn.00473110
lea ecx, [ebp - 0x2b4]
call fcn.004209b0
jmp 0x471ab3
mov eax, dword [esi + 4]
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
push dword [eax]
lea eax, [ebp - 0x2b0]
push 0x5b8188
push eax
call fcn.004493c0
mov esi, dword [ebp - 0x2b0]
push 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov dword [ebx], 0
call fcn.0054454b
push dword [ebp - 0x2b0]
mov dword [ebx], esi
call fcn.0054454b
add esp, 0x14
jmp 0x471ab3
mov eax, dword [esi]
test al, 1
jne 0x471ad1
add eax, 2
mov dword [ebp - 0x2b0], 0
push eax
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2ac], 0
call fcn.00471fd0
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edi, dword [ebp - 0x2b0]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2bc], ecx
test ecx, ecx
je 0x471a30
test edi, edi
je 0x4719d7
lea edx, [edi + 2]
nop dword [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4719c0
mov eax, dword [ebp - 0x2b8]
sub edi, edx
sar edi, 1
jmp 0x4719d9
xor edi, edi
shr eax, 1
push eax
push ecx
call fcn.004739c0
mov esi, eax
add esp, 8
lea eax, [esi + edi]
lea ecx, [eax + 1]
mov dword [ebp - 0x2b8], eax
push ecx
lea ecx, [ebp - 0x2b0]
call fcn.00471fd0
mov eax, dword [ebp - 0x2b0]
add esi, esi
lea eax, [eax + edi*2]
test esi, esi
jle 0x471a1e
push esi
push dword [ebp - 0x2bc]
push eax
call fcn.005478f0
add esp, 0xc
mov edi, dword [ebp - 0x2b0]
xor ecx, ecx
mov eax, dword [ebp - 0x2b8]
mov word [edi + eax*2], cx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x471b6c
push esi
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2bc], 0
call fcn.00471fd0
push esi
mov esi, dword [ebp - 0x2c0]
push esi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
lea ecx, [ebp - 0x2cc]
call fcn.0046c430
push ebx
lea ecx, [ebp - 0x2cc]
call fcn.00473110
lea ecx, [ebp - 0x2cc]
call fcn.004209b0
push esi
call fcn.0054454b
push edi
call fcn.0054454b
add esp, 8
mov eax, ebx
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
push 0x73
jmp 0x471b46
lea eax, [ebp - 0x2cc]
push esi
push eax
call fcn.00473150
add esp, 8
mov edi, dword [ebp - 0x2c8]
mov esi, edi
mov dword [ebp - 4], 2
cmp byte [edi], 0
je 0x471b14
nop dword [eax]
push esi
call fcn.00448e20
add esi, eax
add esp, 4
mov byte [esi], 0xa
inc esi
cmp byte [esi], 0
jne 0x471b00
push 0
mov dword [ebx], 0
call fcn.0054454b
mov dword [ebx], edi
push 0
jmp 0x471aab
push str.unsupported_registry_type
lea ecx, [ebp - 0x154]
call fcn.00406130
push 0x5f4710
lea eax, [ebp - 0x154]
jmp 0x471b66
push 0x6b
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcore_baseoswin_registry.cxx
push str.data.length_____sizeof_TCHAR___0
lea ecx, [ebp - 0x2a8]
call fcn.00465850
push 0x5f46d8
lea eax, [ebp - 0x2a8]
push eax
call fcn.005461fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ExpandEnvironmentStrings
lea ecx, [ebp - 0x158]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
rcr dword [eax], 0x47
add byte [ebp + 25], ah
inc edi
add byte [esi - 0xffb8e8], ch
sbb byte [edi], al
daa
sbb eax, dword [edi]
daa
sbb eax, dword [edi]
aad 0x1a
inc edi
add byte [ebp - 0x75], dl
in al, dx
push 0xffffffffffffffff
push 0x59da87
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
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 esi, ecx
cmp byte [0x611411], 0
mov edi, dword [ebp + 8]
je 0x471e01
mov ebx, dword [ebp + 0xc]
test bl, bl
je 0x471cb5
mov ecx, dword [esi + 4]
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], ecx
mov dword [ebp - 0x2b0], 0
mov al, byte [esi + 0xc]
push 0
push 0
push ecx
push 0
push dword [esi]
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 4], 0
mov byte [ebp - 0x2ac], al
call fcn.004732e0
push 0
push edi
push esi
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 4], 1
call fcn.00471420
push 1
push 0
lea ecx, [ebp - 0x2b8]
call fcn.00472550
test eax, eax
je 0x471c85
push ebx
push eax
lea ecx, [ebp - 0x2b8]
call 0x471bb0
push 1
push 0
lea ecx, [ebp - 0x2b8]
call fcn.00472550
test eax, eax
jne 0x471c65
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x471ca7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2b8], 0
push dword [ebp - 0x2b0]
call fcn.0054454b
add esp, 4
call fcn.00470f00
cmp dword [eax], 0
je 0x471d6e
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
mov byte [ebp - 0x2ac], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push edi
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 4], 2
call fcn.00481da0
mov edi, dword [esi + 4]
mov ebx, dword [ebp - 0x2b0]
and edi, 0x300
mov esi, dword [esi]
mov dword [ebp - 4], 3
call fcn.00470f00
mov eax, dword [eax]
test eax, eax
je 0x471e21
push 0
push edi
push ebx
push esi
call eax
mov esi, eax
cmp byte [ebp - 0x2ac], 0
mov ecx, dword [ebp - 0x2b0]
mov dword [ebp - 4], 4
je 0x471d5c
test ecx, ecx
je 0x471d5c
mov eax, dword [ebp - 0x2b4]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x2b0]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x471dd4
test dword [esi + 4], 0x300
jne 0x471e47
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
mov byte [ebp - 0x2ac], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push edi
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 4], 5
call fcn.00481da0
push dword [ebp - 0x2b0]
mov dword [ebp - 4], 0xffffffff
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x2b4]
mov esi, eax
call fcn.004139c0
test esi, esi
jne 0x471df8
mov al, 1
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
cmp esi, 2
jne 0x471e68
xor al, al
jmp 0x471dda
push 0xee
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 str.RegDeleteKeyEx
push 0x5ba808
lea ecx, [ebp - 0x154]
call fcn.00439540
push 0x5f9fd8
lea eax, [ebp - 0x154]
push eax
call fcn.005461fc
push str.RegDeleteKeyEx_not_available_and_view_is_not_default
lea ecx, [ebp - 0x154]
call fcn.00406130
push 0x5f4710
lea eax, [ebp - 0x154]
push eax
call fcn.005461fc
push esi
push str.RegDeleteKey
lea ecx, [ebp - 0x2a8]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x2a8]
push eax
call fcn.005461fc
int3