Function at 0x409290
Capabilities:
Get session user name

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b6867
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x644
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x4092bd
xor eax, eax
jmp 0x4095f3
push ebp
push esi
push edi
push 0x6399d8
lea ecx, [esp + 0x14]
mov ebp, 1
call fcn.00468580
lea ecx, [esp + 0x18]
mov dword [esp + 0x65c], ebx
call fcn.00477960
push 0x20019
push str.softwareTECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
mov byte [esp + 0x668], 1
call fcn.00477a80
test eax, eax
je 0x40937a
push 0x6399d8
lea ecx, [esp + 0x18]
call fcn.00468580
lea eax, [esp + 0x20]
push str.LastUser
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x664], 2
call fcn.00478480
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x660], 3
call fcn.00468fa0
lea ecx, [esp + 0x20]
mov byte [esp + 0x65c], 2
call fcn.00468df0
lea ecx, [esp + 0x18]
call fcn.00477ad0
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], ebx
jne 0x40946a
lea ecx, [esp + 0x14]
mov byte [esp + 0x65c], 1
call fcn.00468df0
lea ecx, [esp + 0x28]
call fcn.0059c86f
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push str.EXPLORER.EXE
push edx
mov byte [esp + 0x668], 4
call fcn.0049a3f0
add esp, 0xc
test eax, eax
jne 0x4093c2
call fcn.004994d0
push eax
push str.CGetAgentInfo::GetRealUser_1_0___d_
push str.Users
push 0xf
push 0x642404
call fcn.004439a0
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 0x642404
call fcn.004439a0
lea ecx, [esp + 0x58]
push ecx
call fcn.0044fa0c
add esp, 0x20
test eax, eax
jne 0x4094ac
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 0x409546
xor ebp, ebp
jmp 0x409575
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00468fa0
mov edx, dword [esp + 0x10]
push edx
push str.CGetAgentInfo::GetRealUser_1___s_
push str.Users
push 0xf
push 0x642404
call fcn.004439a0
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x65c], 1
call fcn.00468df0
jmp 0x409586
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.00408c10
lea edx, [esp + 0x250]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.00450303
add esp, 0x14
test eax, eax
je 0x40950f
lea ecx, [esp + 0x244]
push ecx
call fcn.0044fa0c
add esp, 4
lea esi, [esp + eax*2 + 0x3e]
push esi
lea ecx, [esp + 0x14]
call fcn.004690d0
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 0x642404
call fcn.004439a0
add esp, 0x1c
jmp 0x409575
lea edx, [esp + 0x44c]
lea ecx, [esp + 0x10]
push edx
call fcn.004690d0
mov eax, dword [esp + 0x10]
push eax
push str.CGetAgentInfo::GetRealUser_3___s_
push str.Users
push 0xf
push 0x642404
call fcn.004439a0
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x65c], 1
call fcn.0059c8a2
lea ecx, [esp + 0x18]
mov byte [esp + 0x65c], bl
call fcn.00477a00
mov esi, dword [esp + 0x664]
mov ecx, 0x41
xor eax, eax
mov edi, esi
cmp ebp, ebx
rep stosd dword es:[edi], eax
je 0x4095bf
mov ecx, dword [esp + 0x10]
push 0x103
push ecx
push esi
call fcn.0044fa29
add esp, 0xc
push ebp
push esi
push str.CGetAgentInfo::GetRealUser____s____d_
push str.Users
push 0xf
push 0x642404
call fcn.004439a0
add esp, 0x18
lea ecx, [esp + 0x10]
mov dword [esp + 0x65c], 0xffffffff
call fcn.00468df0
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