Function at 0x455a50
Capabilities:
Get session user name

Disassembly:
sub esp, 0x830
mov eax, dword [0x4d9540]
mov ecx, 0x4e3a5c
push ebp
push esi
test ecx, ecx
push edi
mov dword [esp + 0x838], 0
mov dword [esp + 0x1c], eax
je 0x455ab0
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x455ab0
push esi
lea ecx, [esp + 0x20]
call fcn.004012f0
test eax, eax
je 0x455ab0
mov edx, dword [esp + 0x1c]
inc esi
push esi
push 0x4e3a5c
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [0x4ee0b4]
test eax, eax
je 0x455ad6
mov ecx, dword [0x4ea600]
test ecx, ecx
je 0x455ad6
push eax
lea eax, [esp + 0x20]
push 0x4dccd4
push eax
call fcn.00401a70
add esp, 0xc
mov ecx, dword [0x4ea1f4]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x455b3b
mov edx, dword [0x4e3a2c]
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 0x455b24
xor eax, eax
jmp 0x455b2b
lea eax, [esp + 0x38]
push eax
call ebp
lea ecx, [esp + 0x38]
push ecx
push eax
mov ecx, 0x4ea1f4
call fcn.00401630
mov eax, dword [0x4ecbf8]
push ebx
test eax, eax
je 0x455b5b
lea edx, [esp + 0x18]
push 0x27
push edx
mov ebx, 1
call fcn.0048eb30
add esp, 8
jmp 0x455bc3
mov eax, dword [0x4d9540]
mov ecx, 0x4e3a28
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x455bba
mov edx, ecx
shr edx, 0x10
jne 0x455b85
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x14]
push eax
call fcn.0040ff70
jmp 0x455bba
push 0x4e3a28
call ebp
mov esi, eax
test esi, esi
je 0x455bba
push esi
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x455bba
mov edi, dword [esp + 0x14]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, 0x4e3a28
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 0x455bdc
mov dword [esp + 0x1c], ecx
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x455bf2
mov ecx, dword [0x4d9540]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax]
push edx
lea ecx, [esp + 0x20]
call fcn.004016e0
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test bl, 2
je 0x455c2b
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
and ebx, 0xfffffffd
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x455c2b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x455c2b
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
test bl, 1
pop ebx
je 0x455c5c
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x455c5c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x455c5c
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], 3
jle 0x455c89
mov ecx, 0x4dccd0
test ecx, ecx
jne 0x455c73
xor eax, eax
jmp 0x455c7a
push 0x4dccd0
call ebp
push 0x4dccd0
push eax
lea ecx, [esp + 0x20]
call fcn.00401850
mov edx, str.Unicode
test edx, edx
jne 0x455c96
xor eax, eax
jmp 0x455c9d
push str.Unicode
call ebp
push str.Unicode
push eax
lea ecx, [esp + 0x20]
call fcn.00401850
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], 2
jle 0x455e04
mov ecx, dword [0x4d9540]
mov edx, 0x4dac04
test edx, edx
mov dword [esp + 0x10], ecx
je 0x455d07
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x455d07
push esi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x455d07
mov eax, dword [esp + 0x10]
inc esi
push esi
push 0x4dac04
push eax
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
mov ecx, dword [0x4d9540]
mov edx, 0x4dccb8
test edx, edx
mov dword [esp + 0x2c], ecx
jne 0x455d1e
xor eax, eax
jmp 0x455d25
push 0x4dccb8
call ebp
mov ecx, dword [0x4ecbe0]
push ecx
mov ecx, dword [ecx - 8]
push ecx
push 0x4dccb8
push eax
lea ecx, [esp + 0x3c]
call fcn.004017b0
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xc]
push edx
call fcn.00401200
lea ecx, [esp + 0x2c]
call fcn.004014c0
mov eax, dword [0x4d9540]
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.004017b0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
call fcn.00401200
lea ecx, [esp + 0x28]
call fcn.004014c0
mov ecx, dword [0x4d9540]
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.004017b0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401200
lea ecx, [esp + 0x14]
call fcn.004014c0
mov eax, dword [esp + 0x20]
mov ecx, 0x4ea1f4
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00401850
lea ecx, [esp + 0x20]
call fcn.004014c0
lea ecx, [esp + 0x24]
call fcn.004014c0
lea ecx, [esp + 0xc]
call fcn.004014c0
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0x4d9b58
lea ecx, [esp + 0x10]
call fcn.004014f0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push 0x4ecd40
push ecx
lea edx, [esp + 0x20]
push 0x4ecd48
push edx
call fcn.0040f0a0
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040f0a0
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040f0a0
push eax
mov ecx, 0x4ea250
call fcn.0040ec90
lea ecx, [esp + 0x24]
call fcn.004014c0
lea ecx, [esp + 0x20]
call fcn.004014c0
lea ecx, [esp + 0x14]
call fcn.004014c0
lea ecx, [esp + 0xc]
call fcn.004014c0
push 0x4ea250
lea ecx, [esp + 0x38]
call fcn.00401200
push 0x4e3a5c
lea ecx, [esp + 0x34]
call fcn.004014f0
call fcn.0040ada0
pop edi
pop esi
test eax, eax
pop ebp
je 0x455ec2
push str.___Admin
lea ecx, [esp + 4]
call fcn.004014f0
lea edx, [esp]
lea ecx, [esp + 0x24]
push edx
call fcn.0040f810
lea ecx, [esp]
call fcn.004014c0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 4]
push ecx
push edx
call fcn.0040f0a0
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.004014c0
lea ecx, [esp + 0x24]
call fcn.004014c0
lea ecx, [esp + 0x28]
call fcn.004014c0
lea ecx, [esp + 0xc]
call fcn.004014c0
lea ecx, [esp + 0x10]
call fcn.004014c0
add esp, 0x830
ret