Function at 0x1003210
Capabilities:
Get session user name

Disassembly:
push 0x14
mov eax, 0x100d5e0
call fcn.01007280
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push 0x1001310
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_unsigned_short_int_const__
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0x20], 1
jne 0x100325a
push 0x1001378
mov ecx, dword [ebp + 0x18]
call sub.framedynos.dll_public:_int___thiscall_CHString::Compare_unsigned_short_int_const__const
test eax, eax
je 0x1003303
mov esi, dword [ebp + 0x14]
mov ecx, esi
call sub.framedynos.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
cmp dword [eax + 4], ebx
jne 0x100327b
push dword [ebp + 0x28]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x24]
push ebx
push dword [ebp + 0x1c]
push ebx
push ebx
jmp 0x100329e
xor ecx, ecx
xor edx, edx
inc edx
cmp dword [ebp + 0x20], ebx
jne 0x100328c
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
xor edx, edx
mov eax, dword [esi]
push dword [ebp + 0x28]
lea edi, [ebp - 0x18]
push edi
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.01002cc5
mov dword [ebp - 0x1c], eax
cmp eax, 1
jne 0x10032cd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
xor eax, eax
inc eax
jmp 0x10032f4
cmp dword [ebp - 0x18], 0x80041064
je 0x10032fc
cmp dword [ebp - 0x18], 0x80070005
je 0x10032fc
push dword [ebp - 0x18]
call fcn.0100268e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
xor eax, eax
call fcn.010072f9
ret 0x24
cmp dword [ebp + 0x20], ebx
jne 0x1003306
jmp 0x10032e7
mov esi, dword [ebp + 0x14]
mov ecx, esi
call sub.framedynos.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov edi, 0xfe
cmp dword [eax + 4], ebx
jne 0x1003342
push edi
mov ecx, esi
call sub.framedynos.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp + 0x20], edi
lea ecx, [ebp + 0x20]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1003339
call fcn.01007a15
jmp 0x10032e7
push 0xffffffffffffffff
mov ecx, esi
call sub.framedynos.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
push edi
mov edi, dword [ebp + 0x18]
mov ecx, edi
call sub.framedynos.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp + 0x20], eax
push dword [esi]
push 0x157d
call fcn.01009994
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 ebx
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 0x100
push dword [ebp + 0x20]
call fcn.010088a1
mov dword [ebp - 0x1c], eax
cmp eax, 1
jne 0x10032e7
push 0xffffffffffffffff
mov ecx, edi
call sub.framedynos.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
mov eax, dword [edi]
mov esi, dword [esi]
push dword [ebp + 0x28]
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x24]
push ebx
push dword [ebp + 0x1c]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01002cc5
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x10032f4