Function at 0x467e50
Capabilities:
Get session user name

Disassembly:
sub esp, 0x830
mov eax, dword [0x546560]
mov ecx, 0x553dd8
push ebp
push esi
test ecx, ecx
push edi
mov dword [esp + 0x838], 0
mov dword [esp + 0x1c], eax
je 0x467eb0
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x467eb0
push esi
lea ecx, [esp + 0x20]
call fcn.00405530
test eax, eax
je 0x467eb0
mov edx, dword [esp + 0x1c]
inc esi
push esi
push 0x553dd8
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x55e3cc]
test eax, eax
je 0x467ed6
mov ecx, dword [0x55a928]
test ecx, ecx
je 0x467ed6
push eax
lea eax, [esp + 0x20]
push 0x54b178
push eax
call fcn.00405cb0
add esp, 0xc
mov ecx, dword [0x55a51c]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x467f3b
mov edx, dword [0x553d9c]
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 0x467f24
xor eax, eax
jmp 0x467f2b
lea eax, [esp + 0x38]
push eax
call ebp
lea ecx, [esp + 0x38]
push ecx
push eax
mov ecx, 0x55a51c
call fcn.00405870
mov eax, dword [0x55cee8]
push ebx
test eax, eax
je 0x467f5b
lea edx, [esp + 0x18]
push 0x27
push edx
mov ebx, 1
call fcn.004bc8d0
add esp, 8
jmp 0x467fc3
mov eax, dword [0x546560]
mov ecx, 0x553d98
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x467fba
mov edx, ecx
shr edx, 0x10
jne 0x467f85
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x14]
push eax
call fcn.00413c90
jmp 0x467fba
push 0x553d98
call ebp
mov esi, eax
test esi, esi
je 0x467fba
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x467fba
mov edi, dword [esp + 0x14]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, 0x553d98
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 0x467fdc
mov dword [esp + 0x1c], ecx
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x467ff2
mov ecx, dword [0x546560]
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 0x46802b
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
and ebx, 0xfffffffd
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x46802b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x46802b
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
test bl, 1
pop ebx
je 0x46805c
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x46805c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x46805c
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], 3
jle 0x468089
mov ecx, 0x54b174
test ecx, ecx
jne 0x468073
xor eax, eax
jmp 0x46807a
push 0x54b174
call ebp
push 0x54b174
push eax
lea ecx, [esp + 0x20]
call fcn.00405a90
mov edx, 0x54b164
test edx, edx
jne 0x468096
xor eax, eax
jmp 0x46809d
push 0x54b164
call ebp
push 0x54b164
push eax
lea ecx, [esp + 0x20]
call fcn.00405a90
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], 2
jle 0x468204
mov ecx, dword [0x546560]
mov edx, 0x547fa4
test edx, edx
mov dword [esp + 0x10], ecx
je 0x468107
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x468107
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x468107
mov eax, dword [esp + 0x10]
inc esi
push esi
push 0x547fa4
push eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov ecx, dword [0x546560]
mov edx, 0x54b15c
test edx, edx
mov dword [esp + 0x2c], ecx
jne 0x46811e
xor eax, eax
jmp 0x468125
push 0x54b15c
call ebp
mov ecx, dword [0x55ced0]
push ecx
mov ecx, dword [ecx - 8]
push ecx
push 0x54b15c
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 [0x546560]
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 [0x546560]
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, 0x55a51c
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 0x546e00
lea ecx, [esp + 0x10]
call fcn.00405730
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push 0x55d040
push ecx
lea edx, [esp + 0x20]
push 0x55d048
push edx
call fcn.00412dc0
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00412dc0
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00412dc0
push eax
mov ecx, 0x55a578
call fcn.004129b0
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 0x55a578
lea ecx, [esp + 0x38]
call fcn.00405440
push 0x553dd8
lea ecx, [esp + 0x34]
call fcn.00405730
call fcn.0040eaa0
pop edi
pop esi
test eax, eax
pop ebp
je 0x4682c2
push str.___Admin
lea ecx, [esp + 4]
call fcn.00405730
lea edx, [esp]
lea ecx, [esp + 0x24]
push edx
call fcn.00413220
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.00412dc0
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