Function at 0x4684e0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d829b
mov eax, dword fs:[0]
push eax
sub esp, 0x944
mov eax, dword [0x5060c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7fc], edx
mov esi, ecx
mov dword [ebp - 0x944], esi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push 0xc8
mov dword [ebp - 0x950], eax
lea eax, [ebp - 0x140]
push 0
push eax
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call fcn.004a4300
push 0x4ac
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.004a4300
add esp, 0x18
xor edi, edi
test esi, esi
je 0x468ba6
lea eax, [ebp - 0x93c]
mov dword [ebp - 0x948], edi
push eax
push edi
push 2
mov dword [ebp - 0x7f8], edi
mov dword [ebp - 0x93c], edi
mov dword [ebp - 0x940], edi
mov dword [ebp - 0x938], edi
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x468ba6
mov eax, dword [ebp - 0x93c]
mov ecx, 2
mul ecx
mov edi, 0xffffffff
cmovb eax, edi
push eax
call fcn.004aee46
mov esi, eax
add esp, 4
test esi, esi
je 0x468ba4
lea eax, [ebp - 0x93c]
push eax
push esi
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x468ba4
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x940]
push eax
push 0
lea eax, [ebp - 0x7f8]
push eax
push 0
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x468b9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x468b9b
push dword [ebp - 0x7f8]
call fcn.004aee46
add esp, 4
mov dword [ebp - 0x934], eax
test eax, eax
je 0x468b9b
mov eax, dword [ebp - 0x940]
mov ecx, 2
mul ecx
cmovb eax, edi
push eax
call fcn.004aee46
add esp, 4
mov dword [ebp - 0x94c], eax
test eax, eax
jne 0x46866e
push esi
call fcn.004a79e0
push dword [ebp - 0x934]
call fcn.004a79e0
add esp, 8
jmp 0x468ba4
mov edi, dword [ebp - 0x934]
lea ecx, [ebp - 0x804]
push ecx
lea ecx, [ebp - 0x940]
push ecx
push eax
lea eax, [ebp - 0x7f8]
push eax
push edi
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x468714
lea eax, [ebp - 0x938]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x468714
mov edi, dword [ebp - 0x938]
lea ecx, [ebp - 0x140]
mov eax, ecx
mov edx, 0x64
sub edi, eax
nop
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x4686de
movzx eax, word [edi + ecx]
test ax, ax
je 0x4686de
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4686c0
push dword [ebp - 0x938]
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
test edx, edx
setne al
mov dword [ebp - 0x948], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x934]
mov dword [ebp - 0x938], 0
push esi
call fcn.004a79e0
push edi
call fcn.004a79e0
push dword [ebp - 0x94c]
call fcn.004a79e0
add esp, 0xc
cmp dword [ebp - 0x948], 0
je 0x468ba4
push dword [ebp - 0x7fc]
mov esi, dword [ebp - 0x944]
lea eax, [ebp - 0x140]
push eax
push esi
push str._s_s_s
lea eax, [ebp - 0x5ec]
push 0x256
push eax
call fcn.00467b70
add esp, 0x18
test eax, eax
js 0x468ba4
push pe_nt_image_headers32
lea eax, [ebp - 0x92c]
push 0
push eax
call fcn.004a4300
add esp, 0xc
mov dword [ebp - 0x930], 0x11c
push str.RtlGetVersion
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4687b4
lea ecx, [ebp - 0x930]
push ecx
call eax
cmp dword [ebp - 0x92c], 0xa
jne 0x4687d9
cmp dword [ebp - 0x928], 0
jne 0x4687d9
cmp dword [ebp - 0x924], 0x295a
jb 0x4687d9
mov eax, 1
jmp 0x4687db
xor eax, eax
test eax, eax
je 0x468a43
push str.rChoice
push esi
push str.tVersionExplorerFile
push str.SoftwareMicrosoftWindowsCurren_sExts_sUse_s
lea eax, [ebp - 0x7f4]
push 0x104
push eax
call fcn.00467b70
add esp, 0x18
test eax, eax
js 0x468ba4
lea eax, [ebp - 0x934]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x7f4]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x468ba4
lea eax, [ebp - 0x800]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x934]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp - 0x934]
test eax, eax
je 0x468873
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x468ba4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
xor eax, eax
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push dword [ebp - 0x800]
lea eax, [ebp - 0x78]
push dword [ebp - 0x7fc]
push str._08x_08x
push 0x20
push eax
call fcn.00467b70
add esp, 0x14
test eax, eax
js 0x468ba4
mov ecx, 0x256
lea eax, [ebp - 0x5ec]
nop dword [eax + eax]
cmp word [eax], 0
je 0x4688ee
add eax, 2
sub ecx, 1
jne 0x4688e0
mov esi, 0x256
mov edi, ecx
mov eax, esi
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x468ba4
mov edx, esi
lea ecx, [ebp - 0x5ec]
lea ecx, [ecx + edi*2]
sub edx, edi
je 0x46893e
lea esi, [ebp - 0x78]
mov eax, SysReAllocString
sub esi, ecx
test eax, eax
je 0x468939
movzx edi, word [esi + ecx]
test di, di
je 0x468939
mov word [ecx], di
dec eax
add ecx, 2
sub edx, 1
jne 0x468920
mov esi, 0x256
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x468ba4
call fcn.00467bf0
test eax, eax
je 0x468ae8
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x468bc3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x7f8], eax
push str.341_9318_804003BAF
push str.oice_set_via_Windows
lea eax, [ebp - 0x7f8]
mov dword [ebp - 4], 0
push str.User_Ch_s_User_Experience_D18B6DD5_6124_4_sA0B
push eax
call fcn.0041f6d0
add esp, 0x10
lea eax, [ebp - 0x5ec]
mov ecx, 0x256
nop
cmp word [eax], 0
je 0x4689be
add eax, 2
sub ecx, 1
jne 0x4689b0
mov eax, esi
mov edx, ecx
sub eax, ecx
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [ebp - 0x7f8]
test ecx, ecx
je 0x468ac0
sub esi, edx
lea edx, [ebp + edx*2 - 0x5ec]
je 0x468a0f
mov ecx, SysReAllocString
sub eax, edx
nop word [eax + eax]
test ecx, ecx
je 0x468a09
movzx edi, word [eax + edx]
test di, di
je 0x468a09
mov word [edx], di
dec ecx
add edx, 2
sub esi, 1
jne 0x4689f0
mov eax, dword [ebp - 0x7f8]
test esi, esi
lea ecx, [edx - 2]
cmovne ecx, edx
xor edx, edx
mov word [ecx], dx
test esi, esi
je 0x468ac0
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x468a43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x256
lea eax, [ebp - 0x5ec]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea edx, [ebp - 0x5ec]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x468a60
sub edx, ecx
lea eax, [ebp - 0x38]
sar edx, 1
push ecx
push eax
lea ecx, [ebp - 0x5ec]
lea edx, [edx*2 + 2]
call fcn.00468320
add esp, 8
test eax, eax
je 0x468ba4
lea edx, [ebp - 0x38]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x468a97
mov ecx, dword [ebp - 0x950]
lea eax, [ebp - 0x38]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00454930
mov edi, 1
jmp 0x468ba6
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x468ba4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x468ba4
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x468bc3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x7f8], eax
push str.e4_45ae_ba6d_85
push str.oice_set_via_Windows_U
lea eax, [ebp - 0x7f8]
mov dword [ebp - 4], 1
push str.User_Ch_sser_Experience_480368b3_f2_s2c4f639a40
push eax
call fcn.0041f6d0
add esp, 0x10
lea eax, [ebp - 0x5ec]
mov ecx, 0x256
cmp word [eax], 0
je 0x468b45
add eax, 2
sub ecx, 1
jne 0x468b37
mov eax, esi
mov edx, ecx
sub eax, ecx
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [ebp - 0x7f8]
test ecx, ecx
je 0x468ac0
sub esi, edx
lea edx, [ebp + edx*2 - 0x5ec]
je 0x468a0f
mov ecx, SysReAllocString
sub eax, edx
test ecx, ecx
je 0x468a09
movzx edi, word [eax + edx]
test di, di
je 0x468a09
mov word [edx], di
dec ecx
add edx, 2
sub esi, 1
jne 0x468b75
jmp 0x468a09
push esi
call fcn.004a79e0
add esp, 4
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a2700
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404ea0
int3