Function at 0x402a50
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x40d6d6
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.00406310
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], esi
push ebx
push eax
push esi
push str.ProxyInfo
push str.SOFTWARETimeSink__Inc.
push 0x80000001
call fcn.00402ee0
add esp, 0x18
cmp al, 1
jne 0x402b0f
push ebp
call fcn.00406310
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 0x402afe
mov dword [esp + 0x14], eax
push ebx
call fcn.004060e0
mov esi, dword [esp + 0x20]
add esp, 4
xor ebx, ebx
jmp 0x402b13
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x14], ebx
jne 0x402b51
cmp esi, ebx
je 0x402b2c
xor ecx, ecx
xor eax, eax
push esi
mov edi, esi
call fcn.004060e0
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 0x402d1a
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x94]
sub ecx, ebp
add esi, ebp
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x402b97
lea eax, [esp + 0x94]
push str.DfltUser
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x18], 9
mov ecx, dword [esp + 0x18]
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.00403130
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3ac], 1
call fcn.00403210
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.00403300
cmp dword [esp + 0x10], ebx
je 0x402c15
mov eax, dword [eax]
mov dword [esi], eax
jmp 0x402c1b
mov dword [esi], 1
lea ecx, [esp + 0x10]
push ecx
push 2
lea ecx, [esp + 0x28]
call fcn.00403300
cmp dword [esp + 0x10], ebx
je 0x402c3f
push eax
call fcn.00406090
add esp, 4
mov dword [esi + 4], eax
jmp 0x402c42
mov dword [esi + 4], ebx
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
push 3
call fcn.00403300
cmp dword [esp + 0x10], ebx
je 0x402c5f
mov eax, dword [eax]
mov dword [esi + 8], eax
jmp 0x402c62
mov dword [esi + 8], ebx
lea ecx, [esp + 0x10]
push ecx
push 4
lea ecx, [esp + 0x28]
call fcn.00403300
cmp dword [esp + 0x10], ebx
je 0x402c7f
mov edx, dword [eax]
mov dword [esi + 0xc], edx
jmp 0x402c86
mov dword [esi + 0xc], 1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push 5
call fcn.00403300
cmp dword [esp + 0x10], ebx
je 0x402caa
push eax
call fcn.00406090
add esp, 4
mov dword [esi + 0x10], eax
jmp 0x402cad
mov dword [esi + 0x10], ebx
lea ecx, [esp + 0x10]
push ecx
push 6
lea ecx, [esp + 0x28]
call fcn.00403300
cmp dword [esp + 0x10], ebx
je 0x402cd1
push eax
call fcn.00406090
add esp, 4
mov dword [esi + 0x14], eax
jmp 0x402cd4
mov dword [esi + 0x14], ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
call fcn.00403240
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x402d09
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.004060e0
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x3a0], 0
call fcn.00403170
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