Function at 0x402700
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x40cdd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a0
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.004012d0
xor edi, edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x3b8], edi
call fcn.004016d0
mov bp, ax
push 0x400
and ebp, 0xffff
mov dword [esp + 0x14], 0x400
call fcn.00405bf0
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push edi
push eax
push ebx
push str.ProxyInfo
push str.SOFTWARETimeSink__Inc.
push 0x80000001
call fcn.00402ed0
add esp, 0x18
cmp al, 1
jne 0x4027c3
push ebp
call fcn.00405bf0
mov ecx, dword [esp + 0x14]
add esp, 4
mov edi, eax
sub ecx, ebp
push edi
lea edx, [ebx + ebp]
push ecx
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x24], edi
call fcn.00401370
mov ecx, ebp
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4027ae
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004059c0
mov eax, dword [esp + 0x14]
add esp, 4
xor edi, edi
jmp 0x4027c5
xor eax, eax
cmp eax, ebp
jb 0x4027d4
sub eax, ebp
lea esi, [ebx + ebp]
mov dword [esp + 0x10], eax
jmp 0x4027da
mov esi, ebx
mov dword [esp + 0x10], edi
lea edx, [esp + 0x1c]
lea eax, [esp + 0xac]
push edx
push eax
mov dword [esp + 0x24], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x40280c
lea ecx, [esp + 0xac]
push str.DfltUser
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xac]
push edx
push eax
lea ecx, [esp + 0x1b8]
call fcn.004021d0
mov ecx, dword [esp + 0x10]
push ecx
push esi
lea ecx, [esp + 0x1b8]
call fcn.004022b0
lea ecx, [esp + 0x38]
call fcn.00403120
lea ecx, [esp + 0x20]
mov byte [esp + 0x3b8], 1
call fcn.00403120
push 0x40
push pe_nt_image_headers32
lea ecx, [esp + 0x40]
mov byte [esp + 0x3c0], 2
call fcn.004031a0
mov edx, dword [esp + 0x10]
push 0x40
push edx
push esi
lea ecx, [esp + 0x2c]
call fcn.00403200
mov esi, dword [esp + 0x3c0]
push 1
push 1
lea ecx, [esp + 0x40]
mov eax, dword [esi]
lea edx, [esp + 0x28]
push eax
push ecx
push edx
call fcn.00402d40
mov eax, dword [esi + 4]
add esp, 0x14
lea ecx, [esp + 0x38]
lea edx, [esp + 0x20]
push 2
push edi
push eax
push ecx
push edx
call fcn.00402da0
mov eax, dword [esi + 8]
add esp, 0x14
lea ecx, [esp + 0x38]
lea edx, [esp + 0x20]
push 3
push edi
push eax
push ecx
push edx
call fcn.00402d40
mov eax, dword [esi + 0xc]
add esp, 0x14
lea ecx, [esp + 0x38]
lea edx, [esp + 0x20]
push 4
push 1
push eax
push ecx
push edx
call fcn.00402d40
mov eax, dword [esi + 0x10]
add esp, 0x14
lea ecx, [esp + 0x38]
lea edx, [esp + 0x20]
push 5
push edi
push eax
push ecx
push edx
call fcn.00402da0
add esp, 0x14
push 6
mov eax, dword [esi + 0x14]
push edi
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.00402da0
add esp, 0x14
lea ecx, [esp + 0x20]
push edi
push edi
call fcn.00403230
push ebx
call fcn.004059c0
add esp, 4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], edi
push edi
push eax
call fcn.00403230
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
mov dword [esp + 0x18], esi
je 0x4029bd
add eax, ebp
push eax
call fcn.00405bf0
mov ecx, dword [esp + 0x18]
mov ebx, eax
mov edx, ecx
add esp, 4
lea eax, [ebx + ebp]
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0x1b8]
call fcn.00402260
mov edx, dword [esp + 0x14]
push ebx
lea eax, [ebx + ebp]
push edx
push eax
lea ecx, [esp + 0x5c]
call fcn.00401370
mov eax, dword [esp + 0x14]
push 3
add eax, ebp
push eax
push ebx
push str.ProxyInfo
push str.SOFTWARETimeSink__Inc.
push 0x80000001
call fcn.00402f60
mov esi, dword [esp + 0x30]
add esp, 0x18
jmp 0x4029d8
push str.ProxyInfo
push str.SOFTWARETimeSink__Inc.
push 0x80000001
call fcn.00402fd0
mov ebx, dword [esp + 0x24]
add esp, 0xc
push esi
call fcn.004059c0
add esp, 4
push ebx
call fcn.004059c0
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x3b8], 1
call fcn.00403160
lea ecx, [esp + 0x38]
mov byte [esp + 0x3b8], 0
call fcn.00403160
lea ecx, [esp + 0x50]
mov dword [esp + 0x3b8], 0xffffffff
call fcn.00401300
mov ecx, dword [esp + 0x3b0]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x3ac
ret