Function at 0x1006d7d
Capabilities:
Get session user name

Disassembly:
mov eax, 0x100bdac
call fcn.01007638
sub esp, 0x438
mov eax, dword [0x100e060]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x434], eax
xor ebx, ebx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x440], ebx
push 0x10012c0
lea ecx, [ebp - 0x418]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_unsigned_short_int_const__
mov dword [ebp - 4], ebx
mov dword [ebp - 0x214], ebx
push 0x7e
pop ecx
xor eax, eax
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0x20], 1
jne 0x1006e38
push 0x10012c4
mov ecx, dword [ebp - 0x438]
call sub.framedyn.dll_public:_int___thiscall_CHString::Compare_unsigned_short_int_const__const
test eax, eax
je 0x1006f10
mov ecx, esi
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
cmp dword [eax + 4], ebx
jne 0x1006e6b
mov eax, dword [ebp - 0x41c]
mov eax, dword [eax]
push dword [ebp - 0x434]
lea ecx, [ebp - 0x414]
push ecx
push dword [ebp - 0x430]
push ebx
push dword [ebp - 0x420]
push ebx
push ebx
push eax
jmp 0x1006ea1
xor edx, edx
cmp dword [ebp + 0x20], ebx
jne 0x1006e7a
mov eax, dword [ebp - 0x438]
mov edx, dword [eax]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x41c]
mov ecx, dword [ecx]
push dword [ebp - 0x434]
lea edi, [ebp - 0x414]
push edi
push dword [ebp - 0x430]
push ebx
push dword [ebp - 0x420]
push edx
push eax
push ecx
push dword [ebp - 0x424]
push dword [ebp - 0x428]
call fcn.010068ca
cmp eax, 1
jne 0x1006ebf
xor ebx, ebx
inc ebx
jmp 0x1007032
mov eax, dword [ebp - 0x414]
cmp eax, 0x80041064
je 0x1006ed3
cmp eax, 0x80070005
jne 0x1006ed8
cmp dword [ebp + 0x20], ebx
jne 0x1006f10
push eax
call fcn.010066e5
push 0xca
call fcn.01008868
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100845b
call fcn.010078ef
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100845b
jmp 0x1007032
mov ecx, esi
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
cmp dword [eax + 4], ebx
jne 0x100705c
mov byte [ebp - 4], 1
mov edi, 0xfe
push edi
mov ecx, esi
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x42c], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x43c], edi
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x410]
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1006f8a
call fcn.01007b9a
push 0xca
call fcn.01008868
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100845b
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.010086e3
jmp 0x1007032
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
push dword [ebp - 0x42c]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x1006fe8
lea eax, [ebp - 0x410]
push eax
mov eax, dword [ebp - 0x41c]
push dword [eax]
push 0x100174c
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0xffffffffffffffff
mov ecx, esi
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
jmp 0x1007061
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x418]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.010071df
pop edi
pop esi
pop ebx
leave
ret 0x24
mov edi, 0xfe
mov byte [ebp - 4], 3
push edi
mov edi, dword [ebp - 0x438]
mov ecx, edi
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x444], eax
mov dword [ebp - 4], ebx
push dword [esi]
push 0xcc
call fcn.01008868
push eax
lea eax, [ebp - 0x418]
push eax
call sub.framedyn.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
add esp, 0xc
lea ecx, [ebp - 0x418]
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
push ebx
lea ecx, [ebp - 0x440]
push ecx
push eax
push dword [ebp - 0x418]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0x40
push dword [ebp - 0x444]
call fcn.01008033
push 0xffffffffffffffff
mov ecx, edi
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
mov eax, dword [edi]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x41c]
mov ecx, dword [ecx]
push dword [ebp - 0x434]
lea edx, [ebp - 0x414]
push edx
push dword [ebp - 0x430]
push ebx
push dword [ebp - 0x420]
push eax
push esi
push ecx
push dword [ebp - 0x424]
push dword [ebp - 0x428]
call fcn.010068ca
cmp eax, ebx
jne 0x1007123
push dword [ebp - 0x414]
jmp 0x1006ed9
mov ebx, eax
jmp 0x1007032