Function at 0x10070d8
Capabilities:
Get session user name

Disassembly:
push 0x438
mov eax, 0x100dd21
call fcn.0100798c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x438], edi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x430], eax
xor ebx, ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x440], ebx
push 0x100131c
lea ecx, [ebp - 0x414]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_unsigned_short_int_const__
mov dword [ebp - 4], ebx
mov dword [ebp - 0x214], ebx
push 0x1fa
push ebx
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0x20], 1
jne 0x100718a
push 0x1001360
mov ecx, dword [ebp - 0x41c]
call sub.framedynos.dll_public:_int___thiscall_CHString::Compare_unsigned_short_int_const__const
test eax, eax
je 0x100726c
mov ecx, esi
call sub.framedynos.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
cmp dword [eax + 4], ebx
jne 0x10071b4
push dword [ebp - 0x430]
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x428]
push ebx
push dword [ebp - 0x434]
push ebx
push ebx
jmp 0x10071e1
xor ecx, ecx
cmp dword [ebp + 0x20], ebx
jne 0x10071c3
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov eax, dword [esi]
push dword [ebp - 0x430]
lea edx, [ebp - 0x418]
push edx
push dword [ebp - 0x428]
push ebx
push dword [ebp - 0x434]
push ecx
push eax
mov edi, dword [edi]
push edi
push dword [ebp - 0x420]
push dword [ebp - 0x424]
call fcn.01006c33
cmp eax, 1
jne 0x1007213
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, ebx
jmp 0x1007536
mov eax, dword [ebp - 0x418]
cmp eax, 0x80040154
je 0x10074f3
cmp eax, 0x80041064
je 0x1007267
cmp eax, 0x80070005
je 0x1007267
push eax
call fcn.01006a2b
push 0xca
call fcn.0100a082
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01008d2a
call fcn.01008070
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01008d2a
jmp 0x10071fd
cmp dword [ebp + 0x20], ebx
je 0x1007232
mov ecx, esi
call sub.framedynos.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
cmp dword [eax + 4], ebx
jne 0x100739c
mov byte [ebp - 4], 1
mov edi, 0xfe
push edi
mov ecx, esi
call sub.framedynos.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 0x10072e6
call fcn.01008103
push 0xca
call fcn.0100a082
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01008d2a
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100818a
jmp 0x10071fd
push edi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x42c]
call fcn.01008ca4
push 0x5c
push dword [ebp - 0x42c]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x1007349
mov eax, dword [ebp - 0x438]
mov eax, dword [eax]
lea ecx, [ebp - 0x410]
push ecx
push eax
push 0x100183c
push 0xff
lea eax, [ebp - 0x214]
push eax
call fcn.010066ac
add esp, 0x14
push edi
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x42c]
call fcn.01008ca4
push 0xffffffffffffffff
mov ecx, esi
call sub.framedynos.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
jmp 0x10073a1
mov edi, 0xfe
mov byte [ebp - 4], 3
push edi
mov ecx, dword [ebp - 0x41c]
call sub.framedynos.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.0100a082
push eax
lea eax, [ebp - 0x414]
push eax
call sub.framedynos.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
add esp, 0xc
lea ecx, [ebp - 0x414]
call sub.framedynos.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 - 0x414]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push edi
push dword [ebp - 0x444]
call fcn.01008f8f
push 0xffffffffffffffff
mov edi, dword [ebp - 0x41c]
mov ecx, edi
call sub.framedynos.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
mov eax, dword [edi]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x438]
mov ecx, dword [ecx]
push dword [ebp - 0x430]
lea edx, [ebp - 0x418]
push edx
push dword [ebp - 0x428]
push ebx
push dword [ebp - 0x434]
push eax
push esi
push ecx
push dword [ebp - 0x420]
push dword [ebp - 0x424]
call fcn.01006c33
mov esi, eax
cmp esi, ebx
jne 0x100749c
cmp dword [ebp - 0x418], 0x80040154
jne 0x1007491
push 0xca
call fcn.0100a082
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01008d2a
push 0x1580
call fcn.0100a082
jmp 0x1007256
push dword [ebp - 0x418]
jmp 0x1007233
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, esi
jmp 0x1007536
push 0xca
call fcn.0100a082
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01008d2a
push 0x1580
call fcn.0100a082
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01008d2a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
xor eax, eax
call fcn.010079e3
ret 0x24