Function at 0x402a40
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x40cdf6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x388
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x38]
call fcn.004012d0
xor ebx, ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3a0], ebx
call fcn.004016d0
mov bp, ax
push 0x400
and ebp, 0xffff
mov dword [esp + 0x18], 0x400
call fcn.00405bf0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], esi
push ebx
push eax
push esi
push str.ProxyInfo
push str.SOFTWARETimeSink__Inc.
push 0x80000001
call fcn.00402ed0
add esp, 0x18
cmp al, 1
jne 0x402aff
push ebp
call fcn.00405bf0
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebx, eax
sub ecx, ebp
push ebx
lea edx, [esi + ebp]
push ecx
push edx
lea ecx, [esp + 0x44]
call fcn.00401370
mov ecx, ebp
mov edi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x402aee
mov dword [esp + 0x14], eax
push ebx
call fcn.004059c0
mov esi, dword [esp + 0x1c]
add esp, 4
xor ebx, ebx
jmp 0x402b03
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x14], ebx
jne 0x402b41
cmp esi, ebx
je 0x402b1c
xor ecx, ecx
xor eax, eax
push esi
mov edi, esi
call fcn.004059c0
add esp, 4
mov eax, dword [esp + 0x3a8]
mov dword [eax], 1
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
jmp 0x402d02
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x94]
sub ecx, ebp
add esi, ebp
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x402b7f
lea eax, [esp + 0x94]
push str.DfltUser
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x94]
push ecx
push edx
lea ecx, [esp + 0x1a0]
call fcn.004021d0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x198]
push eax
push esi
call fcn.004022b0
lea ecx, [esp + 0x20]
call fcn.00403120
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3ac], 1
call fcn.00403200
mov esi, dword [esp + 0x3a8]
mov ecx, 6
xor eax, eax
mov edi, esi
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
push edx
push 1
lea ecx, [esp + 0x28]
call fcn.004032f0
cmp dword [esp + 0x10], ebx
je 0x402bfd
mov eax, dword [eax]
mov dword [esi], eax
jmp 0x402c03
mov dword [esi], 1
lea ecx, [esp + 0x10]
push ecx
push 2
lea ecx, [esp + 0x28]
call fcn.004032f0
cmp dword [esp + 0x10], ebx
je 0x402c27
push eax
call fcn.00405970
add esp, 4
mov dword [esi + 4], eax
jmp 0x402c2a
mov dword [esi + 4], ebx
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
push 3
call fcn.004032f0
cmp dword [esp + 0x10], ebx
je 0x402c47
mov eax, dword [eax]
mov dword [esi + 8], eax
jmp 0x402c4a
mov dword [esi + 8], ebx
lea ecx, [esp + 0x10]
push ecx
push 4
lea ecx, [esp + 0x28]
call fcn.004032f0
cmp dword [esp + 0x10], ebx
je 0x402c67
mov edx, dword [eax]
mov dword [esi + 0xc], edx
jmp 0x402c6e
mov dword [esi + 0xc], 1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push 5
call fcn.004032f0
cmp dword [esp + 0x10], ebx
je 0x402c92
push eax
call fcn.00405970
add esp, 4
mov dword [esi + 0x10], eax
jmp 0x402c95
mov dword [esi + 0x10], ebx
lea ecx, [esp + 0x10]
push ecx
push 6
lea ecx, [esp + 0x28]
call fcn.004032f0
cmp dword [esp + 0x10], ebx
je 0x402cb9
push eax
call fcn.00405970
add esp, 4
mov dword [esi + 0x14], eax
jmp 0x402cbc
mov dword [esi + 0x14], ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
call fcn.00403230
mov edx, dword [esp + 0x18]
cmp edx, ebx
je 0x402cf1
mov eax, dword [esp + 0x14]
mov edi, edx
push edx
lea ecx, [eax + ebp]
xor eax, eax
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
call fcn.004059c0
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x3a0], 0
call fcn.00403160
lea ecx, [esp + 0x38]
mov dword [esp + 0x3a0], 0xffffffff
call fcn.00401300
mov ecx, dword [esp + 0x398]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x394
ret