Function at 0x416ef0
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x4be621
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4f55dc]
xor eax, esp
mov dword [esp + 0x248], eax
push esi
push edi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x84]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov dword [esp + 0xc], esi
mov word [edi], ax
mov dword [esp + 0x264], eax
call fcn.00417360
mov eax, dword [0x4f8a94]
test al, 1
jne 0x416f8c
or eax, 1
mov dword [0x4f8a94], eax
mov byte [esp + 0x264], 1
call fcn.0041b500
push 0x4cdde0
call fcn.0049c72f
add esp, 4
mov byte [esp + 0x264], 0
mov eax, dword [0x4f8a94]
cmp byte [0x4f8ba0], 0
je 0x4171e7
test al, 1
jne 0x416fc7
or eax, 1
mov dword [0x4f8a94], eax
mov byte [esp + 0x264], 2
call fcn.0041b500
push 0x4cdde0
call fcn.0049c72f
add esp, 4
mov byte [esp + 0x264], 0
xor eax, eax
mov dword [esp + 0x20], 0
push 0xffffffffffffffff
push eax
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
push 0x4f8a98
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00401fd0
mov byte [esp + 0x264], 3
mov eax, dword [0x4f8a94]
test al, 1
jne 0x41703a
or eax, 1
mov dword [0x4f8a94], eax
mov byte [esp + 0x264], 4
call fcn.0041b500
push 0x4cdde0
call fcn.0049c72f
add esp, 4
mov byte [esp + 0x264], 3
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x417053
lea ecx, [esp + 0x10]
call fcn.0040bee0
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x417077
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x417077
push 0x4d6684
lea ecx, [esp + 0x14]
call fcn.00409f80
xor eax, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov byte [esp + 0x264], 5
push 0x208
push eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push eax
call fcn.004a1910
add esp, 0xc
mov dword [esp + 0x40], 0x104
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov word [esp + 0x24a], ax
cmp word [esp + 0x44], ax
jne 0x4170eb
xor ecx, ecx
jmp 0x417101
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4170f2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x30]
call fcn.004024a0
mov edx, str.__r_t_n
lea ecx, [esp + 0x28]
call fcn.00407020
mov edx, str.__r_t_n
lea ecx, [esp + 0x28]
call fcn.00407090
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040a970
push 1
push 0x4d6c2c
lea ecx, [esp + 0x18]
call fcn.0040a5c0
push 0xffffffffffffffff
push 0
push 0x4f8af8
lea ecx, [esp + 0x1c]
call fcn.0040a970
push 0xc
push 0x4d6c30
lea ecx, [esp + 0x18]
call fcn.0040a5c0
lea eax, [esp + 0x10]
cmp edi, eax
je 0x417184
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00401fd0
mov byte [esp + 0x264], 3
cmp dword [esp + 0x3c], 8
jb 0x41719f
push dword [esp + 0x28]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov byte [esp + 0x264], al
cmp dword [esp + 0x24], 8
jb 0x4171d0
push dword [esp + 0x10]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x264], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0049bfa3
add esp, 0x25c
ret 4