Function at 0x460b80
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0x4cd210
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov esi, dword [ebp - 0x2c]
adc esi, 0
mov edi, dword [ebp - 0x10]
mov ebx, ecx
mov ecx, esi
lock cmpxchg8b qword [edi]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x30]
jne 0x460b97
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x460b97
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov edx, dword [ebp - 0x2c]
adc edx, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
mov eax, dword [0x4ccc44]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x4cd454]
cmp eax, dword [edx + 4]
jle 0x460c40
push 0x4cd454
call fcn.0042a28b
add esp, 4
cmp dword [0x4cd454], 0xffffffff
jne 0x460c40
mov ecx, 0x4cd43c
call fcn.0042c1c0
push 0x4a2420
call fcn.0042a167
add esp, 4
push 0x4cd454
call fcn.0042a241
add esp, 4
cmp dword [0x4cb8f0], 0
je 0x460cb6
push 0x4cd230
push 0x4cd220
push 0x4cd228
push 0x4cd218
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov dword [ebp - 8], 0xff
lea ecx, [ebp - 8]
push ecx
push 0x4cd238
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [ebp - 8], 0x100
jae 0x460c96
xor edx, edx
mov eax, dword [ebp - 8]
mov word [eax*2 + 0x4cd238], dx
push 0x4cd438
push 0x4cd43c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0042f7a0
mov dword [0x4cb8f0], 0
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov dword [ebp - 0xc], 0x4cd43c
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 8
jb 0x460cdf
mov dword [ebp - 0x14], 1
jmp 0x460ce6
mov dword [ebp - 0x14], 0
mov cl, byte [ebp - 0x14]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
je 0x460d02
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
push 0x4cd238
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [0x4cd438]
push edx
mov eax, dword [0x4cd21c]
push eax
mov ecx, dword [0x4cd218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edx
push eax
movzx edx, word [ebp - 0x42]
push edx
movzx eax, word [ebp - 0x44]
push eax
movzx ecx, word [ebp - 0x46]
push ecx
movzx edx, word [ebp - 0x48]
push edx
movzx eax, word [ebp - 0x4a]
push eax
movzx ecx, word [ebp - 0x4e]
push ecx
movzx edx, word [ebp - 0x50]
push edx
push str._04d__02d__02d__02d:_02d:_02d._dRT:_I64XPID:_d_TID:_d_PCT:_I64X_PPI:PID:_d_PN:_s__I64d__s
lea eax, [ebp - 0x68]
push eax
call fcn.0042f380
add esp, 0x50
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0042c160
mov edx, dword [ebp - 0x1c]
or edx, 1
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x68]
call fcn.00431070
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret