Function at 0x4647e0
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cbf0
mov eax, dword fs:[0]
push eax
sub esp, 0xa88
mov eax, dword [0x63434c]
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 + 8]
mov dword [ebp - 0xa8c], eax
mov eax, dword [ebp + 0xc]
push 0x20a
mov dword [ebp - 0xa88], eax
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0055c530
push 0x20a
lea eax, [ebp - 0x630]
push 0
push eax
call fcn.0055c530
add esp, 0x18
mov dword [ebp - 0xa5c], 0
xor eax, eax
mov dword [ebp - 0xa70], 0x104
lea ecx, [ebp - 0xa5c]
mov dword [ebp - 0xa4c], 0
mov dword [ebp - 0xa48], 7
push 0x39
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList_
mov word [ebp - 0xa5c], ax
call fcn.0042e2d0
cmp dword [ebp - 0xa48], 8
lea ecx, [ebp - 0xa74]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xa5c]
cmovae eax, dword [ebp - 0xa5c]
push ecx
push 8
push 0
push eax
push 0x80000002
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x4648f3
cmp dword [ebp - 0xa48], 8
lea ecx, [ebp - 0xa74]
push ecx
push 8
lea eax, [ebp - 0xa5c]
cmovae eax, dword [ebp - 0xa5c]
push 0
push eax
push 0x80000002
call edi
test eax, eax
jne 0x464c01
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xa70]
mov dword [ebp - 0xa84], 1
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0xa74]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x464bf9
nop
cmp dword [ebp - 0xa48], 8
lea eax, [ebp - 0xa5c]
cmovae eax, dword [ebp - 0xa5c]
push eax
lea eax, [ebp - 0x630]
push 0x105
push eax
call fcn.0056b39c
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x630]
push 0x105
push eax
call fcn.0056b327
push 0x20a
lea eax, [ebp - 0xa44]
push 0
push eax
call fcn.0055c530
add esp, 0x24
lea eax, [ebp - 0xa80]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x630]
push eax
push 0x80000002
call edi
test eax, eax
je 0x4649c8
lea eax, [ebp - 0xa80]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x630]
push eax
push 0x80000002
call edi
test eax, eax
jne 0x464c01
lea eax, [ebp - 0xa70]
mov dword [ebp - 0xa70], 0x104
push eax
lea eax, [ebp - 0xa44]
push eax
push 0
push 0
push str.ProfileImagePath
push dword [ebp - 0xa80]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x464bad
lea eax, [ebp - 0xa78]
xor esi, esi
push eax
push 0x28
mov dword [ebp - 0xa78], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x464a84
lea eax, [ebp - 0xa94]
push eax
push str.SeRestorePrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x464a84
mov eax, dword [ebp - 0xa94]
mov ecx, dword [ebp - 0xa90]
push esi
push esi
push 0x10
mov dword [ebp - 0xa68], eax
lea eax, [ebp - 0xa6c]
push eax
push esi
push dword [ebp - 0xa78]
mov dword [ebp - 0xa6c], 1
mov dword [ebp - 0xa60], 2
mov dword [ebp - 0xa64], ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
mov eax, 1
cmovne esi, eax
mov eax, dword [ebp - 0xa78]
test eax, eax
je 0x464a95
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x464bad
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.0055c530
push 0x208
lea eax, [ebp - 0x838]
push 0
push eax
call fcn.0055c530
add esp, 0x18
lea eax, [ebp - 0x424]
push 0x104
push eax
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x5ba1d8
lea eax, [ebp - 0x424]
push 0x104
push eax
call fcn.0056b327
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x838]
push 0x104
push eax
call fcn.0056b39c
add esp, 0x18
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x464bad
mov esi, dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
lea eax, [ebp - 0x21c]
push eax
push 0x80000003
call esi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x464bad
mov dword [ebp - 0xa7c], eax
lea eax, [ebp - 0xa7c]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x838]
push eax
push 0x80000003
call edi
test eax, eax
jne 0x464b97
push dword [ebp - 0xa88]
push dword [ebp - 0xa8c]
push dword [ebp - 0xa7c]
call fcn.00464570
add esp, 0xc
push dword [ebp - 0xa7c]
call ebx
lea eax, [ebp - 0x21c]
push eax
push 0x80000003
call esi
push dword [ebp - 0xa80]
call ebx
mov ecx, dword [ebp - 0xa84]
mov eax, ecx
push 0
push 0
push 0
inc ecx
mov dword [ebp - 0xa70], 0x104
push 0
mov dword [ebp - 0xa84], ecx
lea ecx, [ebp - 0xa70]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
push dword [ebp - 0xa74]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x464930
push dword [ebp - 0xa74]
call ebx
mov edx, dword [ebp - 0xa48]
cmp edx, 8
jb 0x464c3d
mov ecx, dword [ebp - 0xa5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x464c33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x464c59
push edx
push ecx
call fcn.00558004
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.00557e89
mov esp, ebp
pop ebp
ret
call fcn.00566a14
int3