Function at 0x4096a0
Capabilities:
Get session user name

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d4767
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x644
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x4096cd
xor eax, eax
jmp 0x409a03
push ebp
push esi
push edi
push 0x65ed18
lea ecx, [esp + 0x14]
mov ebp, 1
call fcn.0046c6e0
lea ecx, [esp + 0x18]
mov dword [esp + 0x65c], ebx
call fcn.0047bac0
push 0x20019
push str.softwareTECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
mov byte [esp + 0x668], 1
call fcn.0047bbe0
test eax, eax
je 0x40978a
push 0x65ed18
lea ecx, [esp + 0x18]
call fcn.0046c6e0
lea eax, [esp + 0x20]
push str.LastUser
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x664], 2
call fcn.0047c5e0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x660], 3
call fcn.0046d100
lea ecx, [esp + 0x20]
mov byte [esp + 0x65c], 2
call fcn.0046cf50
lea ecx, [esp + 0x18]
call fcn.0047bc30
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], ebx
jne 0x40987a
lea ecx, [esp + 0x14]
mov byte [esp + 0x65c], 1
call fcn.0046cf50
lea ecx, [esp + 0x28]
call fcn.005ba763
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push str.EXPLORER.EXE
push edx
mov byte [esp + 0x668], 4
call fcn.004a10b0
add esp, 0xc
test eax, eax
jne 0x4097d2
call fcn.004a0190
push eax
push str.CGetAgentInfo::GetRealUser_1_0___d_
push str.Users
push 0xf
push 0x667744
call fcn.00447b00
add esp, 0x14
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3e]
mov word [esp + 0x3c], bx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c]
mov esi, 0x104
stosw word es:[edi], ax
mov edx, dword [ecx]
lea eax, [esp + 0x3c]
push esi
push eax
push edx
call fcn.00406340
mov ecx, dword [esp + 0x38]
add esp, 0xc
lea eax, [esp + 0x3c]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x34]
push edx
push eax
push str.CGetAgentInfo::GetRealUser_1_1___d____d____s_
push str.Users
push 0xf
push 0x667744
call fcn.00447b00
lea ecx, [esp + 0x58]
push ecx
call fcn.00453b6c
add esp, 0x20
test eax, eax
jne 0x4098bc
mov ecx, 0x81
lea edi, [esp + 0x44e]
mov word [esp + 0x44c], bx
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x44c]
push edx
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x409956
xor ebp, ebp
jmp 0x409985
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.0046d100
mov edx, dword [esp + 0x10]
push edx
push str.CGetAgentInfo::GetRealUser_1___s_
push str.Users
push 0xf
push 0x667744
call fcn.00447b00
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x65c], 1
call fcn.0046cf50
jmp 0x409996
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x246]
mov word [esp + 0x244], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x20]
push 5
lea ecx, [esp + 0x248]
push eax
mov dword [esp + 0x28], esi
push ecx
lea esi, [esp + 0x48]
call fcn.00408f60
lea edx, [esp + 0x250]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.00454463
add esp, 0x14
test eax, eax
je 0x40991f
lea ecx, [esp + 0x244]
push ecx
call fcn.00453b6c
add esp, 4
lea esi, [esp + eax*2 + 0x3e]
push esi
lea ecx, [esp + 0x14]
call fcn.0046d230
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x248]
push eax
push ecx
push str.CGetAgentInfo::GetRealUser_2___s____s____s_
push str.Users
push 0xf
push 0x667744
call fcn.00447b00
add esp, 0x1c
jmp 0x409985
lea edx, [esp + 0x44c]
lea ecx, [esp + 0x10]
push edx
call fcn.0046d230
mov eax, dword [esp + 0x10]
push eax
push str.CGetAgentInfo::GetRealUser_3___s_
push str.Users
push 0xf
push 0x667744
call fcn.00447b00
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x65c], 1
call fcn.005ba796
lea ecx, [esp + 0x18]
mov byte [esp + 0x65c], bl
call fcn.0047bb60
mov esi, dword [esp + 0x664]
mov ecx, 0x41
xor eax, eax
mov edi, esi
cmp ebp, ebx
rep stosd dword es:[edi], eax
je 0x4099cf
mov ecx, dword [esp + 0x10]
push 0x103
push ecx
push esi
call fcn.00453b89
add esp, 0xc
push ebp
push esi
push str.CGetAgentInfo::GetRealUser____s____d_
push str.Users
push 0xf
push 0x667744
call fcn.00447b00
add esp, 0x18
lea ecx, [esp + 0x10]
mov dword [esp + 0x65c], 0xffffffff
call fcn.0046cf50
pop edi
mov eax, ebp
pop esi
pop ebp
mov ecx, dword [esp + 0x648]
pop ebx
mov dword fs:[0], ecx
add esp, 0x650
ret 4