Function at 0x100b66f
Capabilities:
Get session user name

Disassembly:
mov eax, 0x10163aa
call fcn.010159b8
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 0xfe
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x3c]
lea edi, [esi + 0x10]
lea edx, [esi + 0x14]
lea ebx, [esi + 4]
push ecx
push 0x1001ec8
push dword [esi + 0x38]
push edi
lea ecx, [esi + 0x18]
push ecx
push edx
push eax
push ebx
push dword [esi]
call fcn.0100526b
test eax, eax
jne 0x100b6f1
push 0x34
call fcn.01013515
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01013236
call fcn.0101275e
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01013236
xor eax, eax
jmp 0x100b9f5
cmp dword [esi + 0x3c], 0
jne 0x100b727
push dword [edi]
push dword [ebx]
call fcn.01005e6b
cmp eax, 0x1388
ja 0x100b727
push 0x34
call fcn.01013515
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01013236
push 0x157f
jmp 0x100b845
mov edi, dword [edi]
test edi, edi
je 0x100b733
mov eax, dword [edi + 0x10]
mov dword [esi + 0x28], eax
cmp dword [esi + 0x3c], 1
jne 0x100b7aa
lea edi, [esi + 0x14]
mov ecx, edi
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
cmp dword [eax + 4], 0
je 0x100b7aa
push 0x35
call fcn.01013515
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01013236
push 0x41
call fcn.01013515
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01013236
push 0x1001428
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01013236
push 0x1001320
mov ecx, edi
call sub.framedyn.dll_public:_class_CHString_const____thiscall_CHString::operator_unsigned_short_int_const__
and dword [esi + 0x28], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x100b7aa
lea ecx, [esi + 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea edi, [esi + 0x1c]
mov ecx, edi
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
xor ecx, ecx
cmp dword [eax + 4], ecx
jne 0x100b85b
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
mov ecx, edi
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x18], eax
jmp 0x100b817
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x100b84f
push 0x34
call fcn.01013515
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01013236
push 0x5c
call fcn.01013515
jmp 0x100b6db
lea edi, [esi + 0x1c]
push 0xffffffffffffffff
mov ecx, edi
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
push 0x1001394
mov ecx, edi
call sub.framedyn.dll_public:_int___thiscall_CHString::Compare_unsigned_short_int_const__const
test eax, eax
je 0x100b9ca
and dword [ebp - 0x20], 0
push 0x5c
mov ecx, edi
call sub.framedyn.dll_public:_int___thiscall_CHString::Find_unsigned_short_int_const
mov ebx, eax
mov dword [ebp - 4], 2
mov ecx, edi
cmp ebx, 0xffffffff
je 0x100b8e2
push ebx
lea eax, [ebp - 0x24]
push eax
call sub.framedyn.dll_public:_class_CHString___thiscall_CHString::Left_int_
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x24]
call sub.framedyn.dll_public:_class_CHString_const____thiscall_CHString::operator_class_CHString_const__
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov ecx, edi
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], eax
push eax
inc ebx
push ebx
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call sub.framedyn.dll_public:_class_CHString___thiscall_CHString::Mid_int__int_
mov byte [ebp - 4], 4
push eax
mov ecx, edi
call sub.framedyn.dll_public:_class_CHString_const____thiscall_CHString::operator_class_CHString_const__
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
jmp 0x100b980
push 0x40
call sub.framedyn.dll_public:_int___thiscall_CHString::Find_unsigned_short_int_const
mov ebx, eax
mov dword [ebp - 0x34], ebx
cmp ebx, 0xffffffff
je 0x100b94d
mov ecx, edi
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call sub.framedyn.dll_public:_class_CHString___thiscall_CHString::Mid_int__int_
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x24]
call sub.framedyn.dll_public:_class_CHString_const____thiscall_CHString::operator_class_CHString_const__
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
push ebx
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call sub.framedyn.dll_public:_class_CHString___thiscall_CHString::Left_int_
mov byte [ebp - 4], 6
push eax
mov ecx, edi
call sub.framedyn.dll_public:_class_CHString_const____thiscall_CHString::operator_class_CHString_const__
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
lea edi, [esi + 0x24]
push 0x2e
mov ecx, edi
call sub.framedyn.dll_public:_int___thiscall_CHString::Find_unsigned_short_int_const
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x100b9ca
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
call sub.framedyn.dll_public:_class_CHString___thiscall_CHString::Left_int_
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call sub.framedyn.dll_public:_class_CHString_const____thiscall_CHString::operator_class_CHString_const__
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
jmp 0x100b9ca
or dword [ebp - 4], 0xffffffff
lea eax, [esi + 0x5c]
push eax
push 0x161
call fcn.01013515
push eax
push dword [esi + 0x58]
call fcn.0100336c
push dword [ebp - 0x20]
mov ecx, esi
call fcn.0100a145
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret