Function at 0x4096a0
Capabilities:
Get session user name

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d09e7
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 0x65aa38
lea ecx, [esp + 0x14]
mov ebp, 1
call fcn.0046c430
lea ecx, [esp + 0x18]
mov dword [esp + 0x65c], ebx
call fcn.0047b810
push 0x20019
push str.softwareTECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
mov byte [esp + 0x668], 1
call fcn.0047b930
test eax, eax
je 0x40978a
push 0x65aa38
lea ecx, [esp + 0x18]
call fcn.0046c430
lea eax, [esp + 0x20]
push str.LastUser
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x664], 2
call fcn.0047c330
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x660], 3
call fcn.0046ce50
lea ecx, [esp + 0x20]
mov byte [esp + 0x65c], 2
call fcn.0046cca0
lea ecx, [esp + 0x18]
call fcn.0047b980
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], ebx
jne 0x40987a
lea ecx, [esp + 0x14]
mov byte [esp + 0x65c], 1
call fcn.0046cca0
lea ecx, [esp + 0x28]
call fcn.005b69e3
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 0x663464
call fcn.00447850
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 0x663464
call fcn.00447850
lea ecx, [esp + 0x58]
push ecx
call fcn.004538bc
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.0046ce50
mov edx, dword [esp + 0x10]
push edx
push str.CGetAgentInfo::GetRealUser_1___s_
push str.Users
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x65c], 1
call fcn.0046cca0
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.004541b3
add esp, 0x14
test eax, eax
je 0x40991f
lea ecx, [esp + 0x244]
push ecx
call fcn.004538bc
add esp, 4
lea esi, [esp + eax*2 + 0x3e]
push esi
lea ecx, [esp + 0x14]
call fcn.0046cf80
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 0x663464
call fcn.00447850
add esp, 0x1c
jmp 0x409985
lea edx, [esp + 0x44c]
lea ecx, [esp + 0x10]
push edx
call fcn.0046cf80
mov eax, dword [esp + 0x10]
push eax
push str.CGetAgentInfo::GetRealUser_3___s_
push str.Users
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x65c], 1
call fcn.005b6a16
lea ecx, [esp + 0x18]
mov byte [esp + 0x65c], bl
call fcn.0047b8b0
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.004538d9
add esp, 0xc
push ebp
push esi
push str.CGetAgentInfo::GetRealUser____s____d_
push str.Users
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x18
lea ecx, [esp + 0x10]
mov dword [esp + 0x65c], 0xffffffff
call fcn.0046cca0
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