Function at 0x46f920
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x4ff194]
push ebx
push esi
mov dword [ebp - 0x258], eax
mov eax, dword [edx + 0xc]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, 0x4ff194
mov dword [ebp - 0x25c], ebx
call eax
mov edx, dword [0x4ff194]
add eax, 0x10
mov dword [ebp - 0x248], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ff194
call eax
mov edx, dword [0x4ff194]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ff194
call eax
mov edx, dword [0x4ff194]
add eax, 0x10
mov dword [ebp - 0x244], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ff194
call eax
mov edx, dword [0x4ff194]
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ff194
call eax
mov edx, dword [0x4ff194]
add eax, 0x10
mov dword [ebp - 0x240], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ff194
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, ebx
je 0x46fa4a
lea ecx, [ebp - 0x230]
push ecx
push eax
mov dword [ebp - 0x230], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x46fa4a
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x46fa43
lea edx, [ebp - 0x22c]
push esi
push edx
call fcn.00470390
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x244]
push ebx
push eax
call fcn.00470390
mov ecx, dword [ebp - 0x244]
add esp, 8
cmp dword [ecx - 0xc], ebx
je 0x46fed4
mov edx, dword [ebp - 0x22c]
cmp dword [edx - 0xc], ebx
je 0x46fed4
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.0046f800
add esp, 8
test al, al
je 0x46fb01
lea edx, [ebp - 0x230]
push edx
push ebx
push 2
mov dword [ebp - 0x230], ebx
call sub.Secur32.dll_GetUserNameExW
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x46fb6c
lea ecx, [ebp - 0x230]
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.00413060
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
mov esi, dword [ebp - 0x228]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00495d17
add esp, 8
cmp eax, ebx
jl 0x46faf7
cmp eax, dword [esi - 8]
jg 0x46faf7
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
jmp 0x46fb6c
push 0x80070057
call fcn.0040d521
lea eax, [ebp - 0x240]
push eax
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x24c]
push ecx
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004122b0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004704b0
mov eax, dword [ebp - 0x24c]
add esp, 0xc
cmp dword [eax - 0xc], ebx
je 0x46fb5a
mov edx, dword [ebp - 0x240]
push edx
push eax
lea eax, [ebp - 0x228]
push 0x4e08a4
push eax
call fcn.004139e0
add esp, 0x10
jmp 0x46fb6c
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x228]
call fcn.00447808
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.RealCreateProcessScheduledTask
lea eax, [ebp - 0x248]
push 0x4e0854
push eax
call fcn.004139e0
lea ecx, [ebp - 0x254]
push ecx
call fcn.004702d0
add esp, 0x18
test eax, eax
js 0x46fd89
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x248]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [ebp - 0x23c]
push eax
push esi
call edx
mov eax, dword [0x4ff194]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ff194
call edx
add eax, 0x10
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x228]
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], 3
call fcn.0046f8e0
mov esi, dword [ebp - 0x23c]
cmp esi, ebx
je 0x46fd53
lea ecx, [ebp - 0x11c]
push ebx
mov dword [ebp - 0x120], ecx
push edi
lea ecx, [ebp - 0x120]
call fcn.004120b0
mov eax, dword [ebp - 0x258]
mov edi, dword [ebp - 0x120]
push ebx
lea edx, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], edx
call fcn.004120b0
mov edx, dword [esi]
mov eax, dword [ebp - 0x224]
mov edx, dword [edx]
push edi
push eax
mov ecx, esi
call edx
mov esi, eax
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x220]
cmp eax, ecx
je 0x46fc7a
push eax
call fcn.00495dac
add esp, 4
mov eax, dword [ebp - 0x120]
lea edx, [ebp - 0x11c]
cmp eax, edx
je 0x46fc93
push eax
call fcn.00495dac
add esp, 4
cmp esi, ebx
jl 0x46fd53
lea ecx, [ebp - 0x1c]
call fcn.0046f860
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x1c]
push edx
call eax
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0046f8b0
cmp esi, ebx
jl 0x46fd53
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x234]
push eax
call edx
cmp eax, ebx
jl 0x46fd53
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 4
call edx
cmp eax, ebx
jl 0x46fd53
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
js 0x46fd53
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
test eax, eax
js 0x46fd53
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
jmp 0x46fd20
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 0x258]
push edx
call eax
cmp dword [ebp - 0x258], 4
je 0x46fd49
push 0x64
call edi
inc esi
cmp esi, 0x32
jl 0x46fd20
jmp 0x46fd53
mov dword [ebp - 0x25c], 1
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x248]
mov edx, dword [edx + 4]
push eax
call edx
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fd89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x238]
cmp esi, ebx
je 0x46fdbd
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46fdbd
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x46fdbd
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [ebp - 0x250]
cmp esi, ebx
je 0x46fdf1
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46fdf1
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x46fdf1
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fe13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fe35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fe57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fe79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fe9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46febd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x25c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f43
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x238]
cmp esi, ebx
je 0x46ff08
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46ff08
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x46ff08
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [ebp - 0x250]
cmp esi, ebx
je 0x46ff3c
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46ff3c
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x46ff3c
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ff5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ff80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ffa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ffc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ffe6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470008
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00493f43
mov esp, ebp
pop ebp
ret