Function at 0x4e44f0
Capabilities:
Get user security identifier
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x540
mov eax, dword [0x557200]
xor eax, esp
mov dword [esp + 0x53c], eax
cmp dword [0x560ea8], 0x1e
push ebx
mov ebx, dword [esp + 0x548]
push ebp
mov ebp, dword [esp + 0x554]
push esi
mov esi, dword [esp + 0x554]
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebp
jl 0x4e472b
push 0x2f
push esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x100
call fcn.005013f0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4e4564
push 0x5c
push esi
call fcn.005013f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4e4577
mov ecx, ebx
sub ecx, esi
push ecx
push esi
push ebp
call fcn.004de650
mov edi, eax
lea esi, [ebx + 1]
jmp 0x4e4579
xor edi, edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e45df
push eax
push ebp
call fcn.004dde90
mov ebx, eax
mov dword [esp + 0x14], 0x100
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
cmp dword [esp + 0x10], 0
je 0x4e45e3
test eax, eax
jne 0x4e45fc
jmp 0x4e45e3
mov ebx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4e45fc
call esi
add eax, 0xafc80
jne 0x4e4859
movups xmm0, xmmword [str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList_]
mov ax, word [0x52e69c]
lea ecx, [esp + 0x38]
mov word [esp + 0x70], ax
lea edx, [ecx + 1]
movups xmmword [esp + 0x38], xmm0
movups xmm0, xmmword [0x52e674]
movups xmmword [esp + 0x48], xmm0
movups xmm0, xmmword [0x52e684]
movups xmmword [esp + 0x58], xmm0
movq xmm0, qword [0x52e694]
movq qword [esp + 0x68], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e4640
sub ecx, edx
lea esi, [esp + 0x38]
add esi, ecx
mov ebp, 0x208
push ebx
sub ebp, ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
movzx edx, byte [eax + 2]
movzx ecx, byte [eax + 3]
shl edx, 8
add edx, ecx
movzx ecx, byte [eax + 4]
shl edx, 8
add edx, ecx
movzx ecx, byte [eax + 5]
shl edx, 8
add edx, ecx
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
shl ecx, 8
push edx
add ecx, eax
je 0x4e46a3
push ecx
push 1
push str.S__d_0x_04x_08x
push ebp
push esi
call fcn.004e2500
add esp, 0x18
jmp 0x4e46b4
push 1
push str.S__d__lu
push ebp
push esi
call fcn.004e2500
add esp, 0x14
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor edi, edi
movzx eax, byte [eax]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4e46fc
nop word [eax + eax]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
push dword [eax]
mov eax, ebp
sub eax, esi
push str.__lu
push eax
mov eax, dword [esp + 0x38]
add eax, esi
push eax
call fcn.004e2500
inc edi
add esp, 0x10
add esi, eax
cmp edi, dword [esp + 0x30]
jb 0x4e46d0
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push 1
push 0
lea eax, [esp + 0x44]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4e4796
add eax, 0xafc80
jmp 0x4e4859
movups xmm0, xmmword [str.SOFTWAREMicrosoftWindowsCurrentVersionProfileList_]
mov eax, dword [0x52e6d0]
lea ecx, [esp + 0x38]
mov dword [esp + 0x68], eax
lea edx, [ecx + 1]
mov ax, word [0x52e6d4]
movups xmmword [esp + 0x38], xmm0
mov word [esp + 0x6c], ax
movups xmm0, xmmword [0x52e6b0]
mov al, byte [0x52e6d6]
mov byte [esp + 0x6e], al
movups xmmword [esp + 0x48], xmm0
movups xmm0, xmmword [0x52e6c0]
movups xmmword [esp + 0x58], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e4773
sub ecx, edx
mov eax, 0x208
sub eax, ecx
push eax
lea eax, [esp + 0x3c]
push esi
add eax, ecx
push eax
call fcn.004e8c00
jmp 0x4e4704
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x208
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push str.ProfileImagePath
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x20]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4e47d9
lea eax, [esi + 0xafc80]
jmp 0x4e4859
mov eax, dword [esp + 0x24]
cmp eax, 1
jne 0x4e47e8
lea eax, [esp + 0x38]
jmp 0x4e480c
cmp eax, 2
jne 0x4e4854
push 0x104
lea eax, [esp + 0x348]
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x344]
push eax
lea eax, [esp + 0x244]
push 0x104
push eax
call fcn.004e10c0
add esp, 0xc
test eax, eax
jne 0x4e4859
lea eax, [esp + 0x240]
push eax
push ebp
call fcn.004de600
mov dword [ebx], eax
mov cl, byte [eax]
test cl, cl
je 0x4e4850
nop dword [eax]
cmp cl, 0x5c
jne 0x4e4848
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4e4840
xor eax, eax
jmp 0x4e4859
mov eax, 2
mov ecx, dword [esp + 0x54c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b4f32
add esp, 0x540
ret 0xc