Function at 0x408fd0
Capabilities:
Get session user name

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a0d97
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x644
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x408ffd
xor eax, eax
jmp 0x409333
push ebp
push esi
push edi
push 0x620918
lea ecx, [esp + 0x14]
mov ebp, 1
call fcn.00464c50
lea ecx, [esp + 0x18]
mov dword [esp + 0x65c], ebx
call fcn.00474030
push 0x20019
push str.softwareTECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
mov byte [esp + 0x668], 1
call fcn.00474150
test eax, eax
je 0x4090ba
push 0x620918
lea ecx, [esp + 0x18]
call fcn.00464c50
lea eax, [esp + 0x20]
push str.LastUser
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x664], 2
call fcn.00474b50
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x660], 3
call fcn.00465670
lea ecx, [esp + 0x20]
mov byte [esp + 0x65c], 2
call fcn.004654c0
lea ecx, [esp + 0x18]
call fcn.004741a0
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], ebx
jne 0x4091aa
lea ecx, [esp + 0x14]
mov byte [esp + 0x65c], 1
call fcn.004654c0
lea ecx, [esp + 0x28]
call fcn.00586db5
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push str.EXPLORER.EXE
push edx
mov byte [esp + 0x668], 4
call fcn.00495270
add esp, 0xc
test eax, eax
jne 0x409102
call fcn.00494350
push eax
push str.CGetAgentInfo::GetRealUser_1_0___d_
push str.Users
push 0xf
push 0x6292fc
call fcn.00440080
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.00406080
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 0x6292fc
call fcn.00440080
lea ecx, [esp + 0x58]
push ecx
call fcn.0044c0ec
add esp, 0x20
test eax, eax
jne 0x4091ec
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 0x409286
xor ebp, ebp
jmp 0x4092b5
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00465670
mov edx, dword [esp + 0x10]
push edx
push str.CGetAgentInfo::GetRealUser_1___s_
push str.Users
push 0xf
push 0x6292fc
call fcn.00440080
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x65c], 1
call fcn.004654c0
jmp 0x4092c6
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.00408950
lea edx, [esp + 0x250]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.0044c903
add esp, 0x14
test eax, eax
je 0x40924f
lea ecx, [esp + 0x244]
push ecx
call fcn.0044c0ec
add esp, 4
lea esi, [esp + eax*2 + 0x3e]
push esi
lea ecx, [esp + 0x14]
call fcn.004657a0
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 0x6292fc
call fcn.00440080
add esp, 0x1c
jmp 0x4092b5
lea edx, [esp + 0x44c]
lea ecx, [esp + 0x10]
push edx
call fcn.004657a0
mov eax, dword [esp + 0x10]
push eax
push str.CGetAgentInfo::GetRealUser_3___s_
push str.Users
push 0xf
push 0x6292fc
call fcn.00440080
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x65c], 1
call fcn.00586de8
lea ecx, [esp + 0x18]
mov byte [esp + 0x65c], bl
call fcn.004740d0
mov esi, dword [esp + 0x664]
mov ecx, 0x41
xor eax, eax
mov edi, esi
cmp ebp, ebx
rep stosd dword es:[edi], eax
je 0x4092ff
mov ecx, dword [esp + 0x10]
push 0x103
push ecx
push esi
call fcn.0044c109
add esp, 0xc
push ebp
push esi
push str.CGetAgentInfo::GetRealUser____s____d_
push str.Users
push 0xf
push 0x6292fc
call fcn.00440080
add esp, 0x18
lea ecx, [esp + 0x10]
mov dword [esp + 0x65c], 0xffffffff
call fcn.004654c0
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