Function at 0x100fd190
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10184966
mov eax, dword fs:[0]
push eax
sub esp, 0x65c
mov eax, dword [0x101e42fc]
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 edi, ecx
lea eax, [ebp - 0x668]
push eax
push str.S_1_5_18
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
lea eax, [ebp - 0x664]
mov dword [ebp - 0x62c], 0x101
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x668]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x100fd2c0
test edi, edi
je 0x100fd236
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsSystemProcess:_LookupAccountSid_Error__u_n
push str.ProcessUtils
push 0x101a4aec
push 0x32
push edi
jmp 0x100fd2a7
cmp dword [0x101e9ed0], 0
je 0x100fd27d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsSystemProcess:_LookupAccountSid_Error__u_n
push 0x101a4aec
push 0x101a4aec
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x101e9ed0]
add esp, 0x1c
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x100fd531
mov esi, dword [0x101e9ed4]
test esi, esi
je 0x100fd2ad
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsSystemProcess:_LookupAccountSid_Error__u_n
push str.ProcessUtils
push 0x101a4aec
push 0x32
push dword [0x101e9ed4]
call dword [esi + 0x34]
add esp, 0x18
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x100fd531
lea eax, [ebp - 0x660]
mov dword [ebp - 0x660], 0x101
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x100fd36f
test edi, edi
je 0x100fd307
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsSystemProcess:_GetUserName_Error__u_n
push str.ProcessUtils
push 0x101a4aec
push 0x32
push edi
jmp 0x100fd2a7
cmp dword [0x101e9ed0], 0
je 0x100fd34e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsSystemProcess:_GetUserName_Error__u_n
push 0x101a4aec
push 0x101a4aec
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x101e9ed0]
add esp, 0x1c
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x100fd531
mov esi, dword [0x101e9ed4]
test esi, esi
je 0x100fd2ad
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsSystemProcess:_GetUserName_Error__u_n
jmp 0x100fd295
xor eax, eax
mov dword [ebp - 0x64c], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x648], 7
mov word [ebp - 0x65c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100fd395
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x65c]
call fcn.10001c20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x420]
xor eax, eax
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 7
lea edx, [ecx + 2]
mov word [ebp - 0x644], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100fd3e4
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x644]
call fcn.10001c20
mov byte [ebp - 4], 1
test edi, edi
je 0x100fd451
cmp dword [ebp - 0x630], 8
lea edx, [ebp - 0x644]
mov ecx, dword [edi]
lea eax, [ebp - 0x65c]
cmovae edx, dword [ebp - 0x644]
cmp dword [ebp - 0x648], 8
push edx
cmovae eax, dword [ebp - 0x65c]
push eax
push str.IsSystemProcess:_user_name_from_SYSTEM_sid___s__current_user_name___s
push str.ProcessUtils
push 0x101a4aec
push 0xa
push edi
jmp 0x100fd4ef
mov edx, dword [0x101e9ed0]
test edx, edx
je 0x100fd4a7
cmp dword [ebp - 0x630], 8
lea ecx, [ebp - 0x644]
lea eax, [ebp - 0x65c]
cmovae ecx, dword [ebp - 0x644]
cmp dword [ebp - 0x648], 8
push ecx
cmovae eax, dword [ebp - 0x65c]
push eax
push str.IsSystemProcess:_user_name_from_SYSTEM_sid___s__current_user_name___s
push 0x101a4aec
push 0x101a4aec
push str.ProcessUtils
push str.OOBEUtils
push 0xa
call edx
add esp, 0x20
jmp 0x100fd4f5
mov esi, dword [0x101e9ed4]
test esi, esi
je 0x100fd4f5
cmp dword [ebp - 0x630], 8
lea edx, [ebp - 0x644]
mov ecx, dword [esi]
lea eax, [ebp - 0x65c]
cmovae edx, dword [ebp - 0x644]
cmp dword [ebp - 0x648], 8
push edx
cmovae eax, dword [ebp - 0x65c]
push eax
push str.IsSystemProcess:_user_name_from_SYSTEM_sid___s__current_user_name___s
push str.ProcessUtils
push 0x101a4aec
push 0xa
push esi
call dword [ecx + 0x34]
add esp, 0x1c
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x65c]
push eax
call fcn.10004950
add esp, 8
mov bl, al
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x644]
call fcn.10001bc0
lea ecx, [ebp - 0x65c]
call fcn.10001bc0
mov al, bl
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.1014d1d5
mov esp, ebp
pop ebp
ret