Function at 0x409610
Capabilities:
Get session user name

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c5227
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x644
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x40963d
xor eax, eax
jmp 0x409973
push ebp
push esi
push edi
push 0x64bfd8
lea ecx, [esp + 0x14]
mov ebp, 1
call fcn.0046ab70
lea ecx, [esp + 0x18]
mov dword [esp + 0x65c], ebx
call fcn.00479f50
push 0x20019
push str.softwareTECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
mov byte [esp + 0x668], 1
call fcn.0047a070
test eax, eax
je 0x4096fa
push 0x64bfd8
lea ecx, [esp + 0x18]
call fcn.0046ab70
lea eax, [esp + 0x20]
push str.LastUser
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x664], 2
call fcn.0047aa70
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x660], 3
call fcn.0046b590
lea ecx, [esp + 0x20]
mov byte [esp + 0x65c], 2
call fcn.0046b3e0
lea ecx, [esp + 0x18]
call fcn.0047a0c0
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], ebx
jne 0x4097ea
lea ecx, [esp + 0x14]
mov byte [esp + 0x65c], 1
call fcn.0046b3e0
lea ecx, [esp + 0x28]
call fcn.005ab223
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push str.EXPLORER.EXE
push edx
mov byte [esp + 0x668], 4
call fcn.0049f7f0
add esp, 0xc
test eax, eax
jne 0x409742
call fcn.0049e8d0
push eax
push str.CGetAgentInfo::GetRealUser_1_0___d_
push str.Users
push 0xf
push 0x654a04
call fcn.00445f90
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 0x654a04
call fcn.00445f90
lea ecx, [esp + 0x58]
push ecx
call fcn.00451ffc
add esp, 0x20
test eax, eax
jne 0x40982c
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 0x4098c6
xor ebp, ebp
jmp 0x4098f5
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.0046b590
mov edx, dword [esp + 0x10]
push edx
push str.CGetAgentInfo::GetRealUser_1___s_
push str.Users
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x65c], 1
call fcn.0046b3e0
jmp 0x409906
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.00408ed0
lea edx, [esp + 0x250]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.004528f3
add esp, 0x14
test eax, eax
je 0x40988f
lea ecx, [esp + 0x244]
push ecx
call fcn.00451ffc
add esp, 4
lea esi, [esp + eax*2 + 0x3e]
push esi
lea ecx, [esp + 0x14]
call fcn.0046b6c0
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 0x654a04
call fcn.00445f90
add esp, 0x1c
jmp 0x4098f5
lea edx, [esp + 0x44c]
lea ecx, [esp + 0x10]
push edx
call fcn.0046b6c0
mov eax, dword [esp + 0x10]
push eax
push str.CGetAgentInfo::GetRealUser_3___s_
push str.Users
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x65c], 1
call fcn.005ab256
lea ecx, [esp + 0x18]
mov byte [esp + 0x65c], bl
call fcn.00479ff0
mov esi, dword [esp + 0x664]
mov ecx, 0x41
xor eax, eax
mov edi, esi
cmp ebp, ebx
rep stosd dword es:[edi], eax
je 0x40993f
mov ecx, dword [esp + 0x10]
push 0x103
push ecx
push esi
call fcn.00452019
add esp, 0xc
push ebp
push esi
push str.CGetAgentInfo::GetRealUser____s____d_
push str.Users
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x18
lea ecx, [esp + 0x10]
mov dword [esp + 0x65c], 0xffffffff
call fcn.0046b3e0
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