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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd03b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x748
mov eax, dword [0x50b0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x600], edx
mov esi, ecx
mov dword [ebp - 0x74c], esi
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
push 0xc8
mov dword [ebp - 0x758], eax
lea eax, [ebp - 0x148]
push 0
push eax
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call fcn.004a8730
add esp, 0xc
lea eax, [ebp - 0x5f8]
push 0x4ac
push 0
push eax
call fcn.004a8730
add esp, 0xc
xor edi, edi
test esi, esi
je 0x46d696
lea eax, [ebp - 0x740]
mov dword [ebp - 0x750], edi
push eax
push edi
push 2
mov dword [ebp - 0x748], edi
mov dword [ebp - 0x740], edi
mov dword [ebp - 0x744], edi
mov dword [ebp - 0x73c], edi
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x46d696
mov eax, dword [ebp - 0x740]
mov ecx, 2
mul ecx
mov edi, 0xffffffff
cmovb eax, edi
push eax
call fcn.004b3276
mov esi, eax
add esp, 4
test esi, esi
je 0x46d694
lea eax, [ebp - 0x740]
push eax
push esi
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x46d694
lea eax, [ebp - 0x608]
push eax
lea eax, [ebp - 0x744]
push eax
push 0
lea eax, [ebp - 0x748]
push eax
push 0
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x46d68b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x46d68b
push dword [ebp - 0x748]
call fcn.004b3276
add esp, 4
mov dword [ebp - 0x5fc], eax
test eax, eax
je 0x46d68b
mov eax, dword [ebp - 0x744]
mov ecx, 2
mul ecx
cmovb eax, edi
push eax
call fcn.004b3276
add esp, 4
mov dword [ebp - 0x754], eax
test eax, eax
jne 0x46d1f0
push esi
call fcn.004abe10
add esp, 4
push dword [ebp - 0x5fc]
jmp 0x46d68c
mov edi, dword [ebp - 0x5fc]
lea ecx, [ebp - 0x608]
push ecx
lea ecx, [ebp - 0x744]
push ecx
push eax
lea eax, [ebp - 0x748]
push eax
push edi
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x46d295
lea eax, [ebp - 0x73c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x46d295
mov edi, dword [ebp - 0x73c]
lea ecx, [ebp - 0x148]
mov eax, ecx
mov edx, 0x64
sub edi, eax
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x46d25f
movzx eax, word [edi + ecx]
test ax, ax
je 0x46d25f
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x46d241
push dword [ebp - 0x73c]
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 - 0x750], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x5fc]
mov dword [ebp - 0x73c], 0
push esi
call fcn.004abe10
add esp, 4
push edi
call fcn.004abe10
add esp, 4
push dword [ebp - 0x754]
call fcn.004abe10
add esp, 4
cmp dword [ebp - 0x750], 0
je 0x46d694
push dword [ebp - 0x600]
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x74c]
lea eax, [ebp - 0x5f8]
push str._s_s_s
push 0x256
push eax
call fcn.0046c6d0
add esp, 0x18
test eax, eax
js 0x46d694
push 0x118
lea eax, [ebp - 0x734]
push 0
push eax
call fcn.004a8730
add esp, 0xc
mov dword [ebp - 0x738], 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 0x46d33a
lea ecx, [ebp - 0x738]
push ecx
call eax
cmp dword [ebp - 0x734], 0xa
jne 0x46d35f
cmp dword [ebp - 0x730], 0
jne 0x46d35f
cmp dword [ebp - 0x72c], 0x295a
jb 0x46d35f
mov eax, 1
jmp 0x46d361
xor eax, eax
test eax, eax
je 0x46d533
push 0x40
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004a8730
add esp, 0xc
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov dword [ebp - 0x60c], eax
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push dword [ebp - 0x604]
lea eax, [ebp - 0x80]
push dword [ebp - 0x600]
push str._08x_08x
push 0x20
push eax
call fcn.0046c6d0
add esp, 0x14
test eax, eax
js 0x46d694
mov ecx, 0x256
lea eax, [ebp - 0x5f8]
cmp word [eax], 0
je 0x46d3e2
add eax, 2
sub ecx, 1
jne 0x46d3d4
mov esi, 0x256
mov edi, ecx
mov eax, esi
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x46d694
mov edx, esi
lea ecx, [ebp - 0x5f8]
lea ecx, [ecx + edi*2]
sub edx, edi
je 0x46d432
lea esi, [ebp - 0x80]
mov eax, SysReAllocString
sub esi, ecx
test eax, eax
je 0x46d42d
movzx edi, word [esi + ecx]
test di, di
je 0x46d42d
mov word [ecx], di
dec eax
add ecx, 2
sub edx, 1
jne 0x46d414
mov esi, 0x256
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x46d694
call fcn.0046c750
test eax, eax
je 0x46d5d8
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x46d6b6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x5fc], eax
push str.341_9318_804003BAF
push str.oice_set_via_Windows
lea eax, [ebp - 0x5fc]
mov dword [ebp - 4], 0
push str.User_Ch_s_User_Experience_D18B6DD5_6124_4_sA0B
push eax
call fcn.004248c0
add esp, 0x10
lea eax, [ebp - 0x5f8]
mov ecx, 0x256
cmp word [eax], 0
je 0x46d4b1
add eax, 2
sub ecx, 1
jne 0x46d4a3
mov eax, esi
mov edx, ecx
sub eax, ecx
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [ebp - 0x5fc]
test ecx, ecx
je 0x46d5b0
sub esi, edx
lea edx, [ebp + edx*2 - 0x5f8]
je 0x46d4ff
mov ecx, SysReAllocString
sub eax, edx
nop dword [eax]
test ecx, ecx
je 0x46d4f9
movzx edi, word [eax + edx]
test di, di
je 0x46d4f9
mov word [edx], di
dec ecx
add edx, 2
sub esi, 1
jne 0x46d4e0
mov eax, dword [ebp - 0x5fc]
test esi, esi
lea ecx, [edx - 2]
cmovne ecx, edx
xor edx, edx
mov word [ecx], dx
test esi, esi
je 0x46d5b0
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46d533
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x256
lea eax, [ebp - 0x5f8]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea edx, [ebp - 0x5f8]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46d550
sub edx, ecx
lea eax, [ebp - 0x3c]
sar edx, 1
push ecx
push eax
lea ecx, [ebp - 0x5f8]
lea edx, [edx*2 + 2]
call fcn.0046ce70
add esp, 8
test eax, eax
je 0x46d694
lea edx, [ebp - 0x3c]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46d587
mov ecx, dword [ebp - 0x758]
lea eax, [ebp - 0x3c]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0045baf0
mov edi, 1
jmp 0x46d696
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46d694
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46d694
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x46d6b6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x5fc], eax
push str.e4_45ae_ba6d_85
push str.oice_set_via_Windows_U
lea eax, [ebp - 0x5fc]
mov dword [ebp - 4], 1
push str.User_Ch_sser_Experience_480368b3_f2_s2c4f639a40
push eax
call fcn.004248c0
add esp, 0x10
lea eax, [ebp - 0x5f8]
mov ecx, 0x256
cmp word [eax], 0
je 0x46d635
add eax, 2
sub ecx, 1
jne 0x46d627
mov eax, esi
mov edx, ecx
sub eax, ecx
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [ebp - 0x5fc]
test ecx, ecx
je 0x46d5b0
sub esi, edx
lea edx, [ebp + edx*2 - 0x5f8]
je 0x46d4ff
mov ecx, SysReAllocString
sub eax, edx
test ecx, ecx
je 0x46d4f9
movzx edi, word [eax + edx]
test di, di
je 0x46d4f9
mov word [edx], di
dec ecx
add edx, 2
sub esi, 1
jne 0x46d665
jmp 0x46d4f9
push esi
call fcn.004abe10
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 - 0x14]
xor ecx, ebp
call fcn.004a69a0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00409e30
int3