Function at 0x46dbe0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x4fc524]
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, 0x4fc524
mov dword [ebp - 0x25c], ebx
call eax
mov edx, dword [0x4fc524]
add eax, 0x10
mov dword [ebp - 0x248], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc524
call eax
mov edx, dword [0x4fc524]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc524
call eax
mov edx, dword [0x4fc524]
add eax, 0x10
mov dword [ebp - 0x244], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc524
call eax
mov edx, dword [0x4fc524]
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc524
call eax
mov edx, dword [0x4fc524]
add eax, 0x10
mov dword [ebp - 0x240], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc524
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 0x46dd0a
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 0x46dd0a
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x46dd03
lea edx, [ebp - 0x22c]
push esi
push edx
call fcn.0046e670
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x244]
push ebx
push eax
call fcn.0046e670
mov ecx, dword [ebp - 0x244]
add esp, 8
cmp dword [ecx - 0xc], ebx
je 0x46e194
mov edx, dword [ebp - 0x22c]
cmp dword [edx - 0xc], ebx
je 0x46e194
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.0046d9b0
add esp, 8
test al, al
je 0x46ddc1
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 0x46de2c
lea ecx, [ebp - 0x230]
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.00419820
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.004947b7
add esp, 8
cmp eax, ebx
jl 0x46ddb7
cmp eax, dword [esi - 8]
jg 0x46ddb7
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
jmp 0x46de2c
push 0x80070057
call fcn.0040d60d
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.0041fbf2
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0046e790
mov eax, dword [ebp - 0x24c]
add esp, 0xc
cmp dword [eax - 0xc], ebx
je 0x46de1a
mov edx, dword [ebp - 0x240]
push edx
push eax
lea eax, [ebp - 0x228]
push 0x4de44c
push eax
call fcn.0046db80
add esp, 0x10
jmp 0x46de2c
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x228]
call fcn.0046db10
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.RealCreateProcessScheduledTask
lea eax, [ebp - 0x248]
push 0x4de3fc
push eax
call fcn.0046db80
lea ecx, [ebp - 0x254]
push ecx
call fcn.0046e5b0
add esp, 0x18
test eax, eax
js 0x46e049
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 [0x4fc524]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc524
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.0046dba0
mov esi, dword [ebp - 0x23c]
cmp esi, ebx
je 0x46e013
lea ecx, [ebp - 0x11c]
push ebx
mov dword [ebp - 0x120], ecx
push edi
lea ecx, [ebp - 0x120]
call fcn.00412cc0
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.00412cc0
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 0x46df3a
push eax
call fcn.00493e67
add esp, 4
mov eax, dword [ebp - 0x120]
lea edx, [ebp - 0x11c]
cmp eax, edx
je 0x46df53
push eax
call fcn.00493e67
add esp, 4
cmp esi, ebx
jl 0x46e013
lea ecx, [ebp - 0x1c]
call fcn.0046da10
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.0046da60
cmp esi, ebx
jl 0x46e013
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 0x46e013
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 4
call edx
cmp eax, ebx
jl 0x46e013
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
js 0x46e013
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
test eax, eax
js 0x46e013
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
jmp 0x46dfe0
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 0x46e009
push 0x64
call edi
inc esi
cmp esi, 0x32
jl 0x46dfe0
jmp 0x46e013
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 0x46e049
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 0x46e07d
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46e07d
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 0x46e07d
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [ebp - 0x250]
cmp esi, ebx
je 0x46e0b1
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46e0b1
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 0x46e0b1
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 0x46e0d3
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 0x46e0f5
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 0x46e117
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 0x46e139
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 0x46e15b
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 0x46e17d
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.00492093
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x238]
cmp esi, ebx
je 0x46e1c8
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46e1c8
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 0x46e1c8
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [ebp - 0x250]
cmp esi, ebx
je 0x46e1fc
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46e1fc
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 0x46e1fc
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 0x46e21e
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 0x46e240
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 0x46e262
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 0x46e284
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 0x46e2a6
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 0x46e2c8
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.00492093
mov esp, ebp
pop ebp
ret