Function at 0x468720
Capabilities:
Get session user name

Disassembly:
sub esp, 0x830
mov eax, dword [0x547570]
mov ecx, 0x554e48
push ebp
push esi
test ecx, ecx
push edi
mov dword [esp + 0x838], 0
mov dword [esp + 0x1c], eax
je 0x468780
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x468780
push esi
lea ecx, [esp + 0x20]
call fcn.00405530
test eax, eax
je 0x468780
mov edx, dword [esp + 0x1c]
inc esi
push esi
push 0x554e48
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x55f484]
test eax, eax
je 0x4687a6
mov ecx, dword [0x55b9c8]
test ecx, ecx
je 0x4687a6
push eax
lea eax, [esp + 0x20]
push 0x54c1c0
push eax
call fcn.00405cb0
add esp, 0xc
mov ecx, dword [0x55b5bc]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x46880b
mov edx, dword [0x554e0c]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x38], edx
mov dword [esp + 0xc], 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [esp + 0x38]
test edx, edx
jne 0x4687f4
xor eax, eax
jmp 0x4687fb
lea eax, [esp + 0x38]
push eax
call ebp
lea ecx, [esp + 0x38]
push ecx
push eax
mov ecx, 0x55b5bc
call fcn.00405870
mov eax, dword [0x55df9c]
push ebx
test eax, eax
je 0x46882b
lea edx, [esp + 0x18]
push 0x27
push edx
mov ebx, 1
call fcn.004bd990
add esp, 8
jmp 0x468893
mov eax, dword [0x547570]
mov ecx, 0x554e08
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x46888a
mov edx, ecx
shr edx, 0x10
jne 0x468855
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x14]
push eax
call fcn.00413ae0
jmp 0x46888a
push 0x554e08
call ebp
mov esi, eax
test esi, esi
je 0x46888a
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x46888a
mov edi, dword [esp + 0x14]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, 0x554e08
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, 2
lea eax, [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
test edx, edx
jl 0x4688ac
mov dword [esp + 0x1c], ecx
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4688c2
mov ecx, dword [0x547570]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax]
push edx
lea ecx, [esp + 0x20]
call fcn.00405920
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test bl, 2
je 0x4688fb
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
and ebx, 0xfffffffd
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4688fb
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4688fb
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
test bl, 1
pop ebx
je 0x46892c
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x46892c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x46892c
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], 3
jle 0x468959
mov ecx, 0x54c1bc
test ecx, ecx
jne 0x468943
xor eax, eax
jmp 0x46894a
push 0x54c1bc
call ebp
push 0x54c1bc
push eax
lea ecx, [esp + 0x20]
call fcn.00405a90
mov edx, 0x54c1ac
test edx, edx
jne 0x468966
xor eax, eax
jmp 0x46896d
push 0x54c1ac
call ebp
push 0x54c1ac
push eax
lea ecx, [esp + 0x20]
call fcn.00405a90
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], 2
jle 0x468ad4
mov ecx, dword [0x547570]
mov edx, 0x548fc4
test edx, edx
mov dword [esp + 0x10], ecx
je 0x4689d7
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4689d7
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4689d7
mov eax, dword [esp + 0x10]
inc esi
push esi
push 0x548fc4
push eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov ecx, dword [0x547570]
mov edx, 0x54c1a4
test edx, edx
mov dword [esp + 0x2c], ecx
jne 0x4689ee
xor eax, eax
jmp 0x4689f5
push 0x54c1a4
call ebp
mov ecx, dword [0x55df84]
push ecx
mov ecx, dword [ecx - 8]
push ecx
push 0x54c1a4
push eax
lea ecx, [esp + 0x3c]
call fcn.004059f0
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xc]
push edx
call fcn.00405440
lea ecx, [esp + 0x2c]
call fcn.00405700
mov eax, dword [0x547570]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax - 8]
mov eax, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax - 8]
lea ecx, [esp + 0x34]
push edx
call fcn.004059f0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
call fcn.00405440
lea ecx, [esp + 0x28]
call fcn.00405700
mov ecx, dword [0x547570]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
push eax
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x28]
push edx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x20]
push eax
call fcn.004059f0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.00405440
lea ecx, [esp + 0x14]
call fcn.00405700
mov eax, dword [esp + 0x20]
mov ecx, 0x55b5bc
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00405a90
lea ecx, [esp + 0x20]
call fcn.00405700
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0xc]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
push 0x547e10
lea ecx, [esp + 0x10]
call fcn.00405730
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push 0x55e0f8
push ecx
lea edx, [esp + 0x20]
push 0x55e100
push edx
call fcn.00412c10
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00412c10
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00412c10
push eax
mov ecx, 0x55b618
call fcn.00412800
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0x20]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
lea ecx, [esp + 0xc]
call fcn.00405700
push 0x55b618
lea ecx, [esp + 0x38]
call fcn.00405440
push 0x554e48
lea ecx, [esp + 0x34]
call fcn.00405730
call fcn.0040e900
pop edi
pop esi
test eax, eax
pop ebp
je 0x468b92
push str.___Admin
lea ecx, [esp + 4]
call fcn.00405730
lea edx, [esp]
lea ecx, [esp + 0x24]
push edx
call fcn.00413070
lea ecx, [esp]
call fcn.00405700
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 4]
push ecx
push edx
call fcn.00412c10
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x838]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp]
call fcn.00405700
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0x28]
call fcn.00405700
lea ecx, [esp + 0xc]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
add esp, 0x830
ret