Function at 0x1007001
Capabilities:
Get session user name

Disassembly:
mov eax, 0x100d313
call fcn.01008898
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 0x24], edi
push 0x10012b0
lea ecx, [ebp - 0x18]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_unsigned_short_int_const__
mov dword [ebp - 4], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
cmp dword [ebp + 0x20], 1
jne 0x100704d
push 0x1001a28
mov ecx, dword [ebp + 0x18]
call sub.framedyn.dll_public:_int___thiscall_CHString::Compare_unsigned_short_int_const__const
test eax, eax
je 0x10070d8
mov esi, dword [ebp + 0x14]
mov ecx, esi
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
cmp dword [eax + 4], edi
jne 0x100706e
push dword [ebp + 0x28]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x24]
push edi
push dword [ebp + 0x1c]
push edi
push edi
jmp 0x1007098
xor ecx, ecx
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0x20], edi
jne 0x1007084
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], edi
mov eax, dword [esi]
push dword [ebp + 0x28]
lea edx, [ebp - 0x14]
push edx
push dword [ebp + 0x24]
push dword [ebp - 0x1c]
push dword [ebp + 0x1c]
push ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01006b23
cmp eax, 1
jne 0x10070b8
push dword [ebp - 0x14]
call ebx
xor edi, edi
inc edi
jmp 0x10071d4
cmp dword [ebp - 0x14], 0x80070005
je 0x10070ce
push dword [ebp - 0x14]
call fcn.0100648f
jmp 0x10071d4
cmp dword [ebp + 0x20], edi
jne 0x10070db
jmp 0x10071d4
mov esi, dword [ebp + 0x14]
mov ecx, esi
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
cmp dword [eax + 4], edi
jne 0x1007127
mov byte [ebp - 4], 1
push 0xfe
mov ecx, esi
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], 0xfe
lea ecx, [ebp - 0x20]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x100711e
call fcn.01008fba
jmp 0x10071d4
push 0xffffffffffffffff
mov ecx, esi
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
mov byte [ebp - 4], 3
push 0xfe
mov ecx, dword [ebp + 0x18]
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], edi
push dword [esi]
push 0x157d
call fcn.01009c31
push eax
lea eax, [ebp - 0x18]
push eax
call sub.framedyn.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
add esp, 0xc
lea ecx, [ebp - 0x18]
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
push edi
lea ecx, [ebp - 0x24]
push ecx
push eax
push dword [ebp - 0x18]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0x40
push dword [ebp - 0x28]
call fcn.01009453
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x18]
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov esi, dword [esi]
push dword [ebp + 0x28]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 0x24]
push edi
push dword [ebp + 0x1c]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01006b23
mov edi, eax
push dword [ebp - 0x14]
call ebx
jmp 0x10071d4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x24