Function at 0x10076d1
Capabilities:
Get session user name

Disassembly:
push 0x14
mov eax, 0x100f23c
call fcn.01008b10
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_void_
mov dword [ebp - 4], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x20], 1
jne 0x1007718
push 0x1001b48
mov ecx, dword [ebp + 0x18]
call sub.framedynos.dll_public:_int___thiscall_CHString::Compare_unsigned_short_int_const__const
test eax, eax
je 0x10077e2
mov esi, dword [ebp + 0x14]
mov ecx, esi
call sub.framedynos.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
cmp dword [eax + 4], edi
jne 0x100774d
push dword [ebp + 0x30]
push dword [ebp + 0x28]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x24]
push edi
push dword [ebp + 0x1c]
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010071e7
mov dword [ebp - 0x1c], eax
jmp 0x100778a
xor ecx, ecx
xor edx, edx
inc edx
cmp dword [ebp + 0x20], edi
jne 0x100775e
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
xor edx, edx
mov eax, dword [esi]
push dword [ebp + 0x30]
push dword [ebp + 0x28]
lea ebx, [ebp - 0x18]
push ebx
push dword [ebp + 0x24]
push edx
push dword [ebp + 0x1c]
push ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010071e7
mov dword [ebp - 0x1c], eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x18]
call ebx
cmp dword [ebp - 0x1c], 1
jne 0x10077a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
xor eax, eax
inc eax
jmp 0x10077d0
mov eax, 0x80041064
cmp dword [ebp - 0x18], eax
je 0x10077d8
mov eax, 0x80070005
cmp dword [ebp - 0x18], eax
je 0x10077d8
push dword [ebp - 0x18]
call fcn.01006660
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
xor eax, eax
call fcn.01008bc4
ret 0x2c
push eax
call ebx
cmp dword [ebp + 0x20], edi
jne 0x10077e5
jmp 0x10077c2
mov esi, dword [ebp + 0x14]
mov ecx, esi
call sub.framedynos.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
cmp dword [eax + 4], edi
jne 0x1007821
mov dword [ebp + 0x20], edi
lea eax, [ebp + 0x20]
push eax
push edi
push 2
call sub.Secur32.dll_GetUserNameExW
push dword [ebp + 0x20]
mov ecx, esi
call sub.framedynos.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
lea ecx, [ebp + 0x20]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1007821
call fcn.010093e5
jmp 0x10077c2
cmp dword [ebp + 0x2c], edi
jne 0x100782d
mov dword [ebp + 0x2c], 0x100
push dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x18]
mov ecx, ebx
call sub.framedynos.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp + 0x20], eax
push dword [esi]
push 0x157d
call fcn.0100b337
push eax
lea eax, [ebp - 0x14]
push eax
call sub.framedynos.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
add esp, 0xc
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
push edi
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x14]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push dword [ebp + 0x2c]
push dword [ebp + 0x20]
call fcn.0100a244
mov dword [ebp - 0x1c], eax
cmp eax, 1
jne 0x10077c2
push 0xffffffffffffffff
mov ecx, ebx
call sub.framedynos.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
mov eax, dword [ebx]
mov esi, dword [esi]
push dword [ebp + 0x30]
push dword [ebp + 0x28]
push edi
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.010071e7
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, dword [ebp - 0x1c]
jmp 0x10077d0