Function at 0x415e40
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x46e477
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x250], eax
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x264]
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 + 0x10], esi
mov word [edi], ax
mov dword [esp + 0x26c], eax
xorps xmm0, xmm0
push 0x40
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
push eax
lea eax, [esi + 0x34]
push eax
movdqu xmmword [esi + 0x24], xmm0
call fcn.00451fb0
add esp, 0xc
xorps xmm0, xmm0
movdqu xmmword [esi + 0x74], xmm0
call fcn.0041ad00
mov al, byte [eax + 0x108]
test al, al
je 0x416102
call fcn.0041ad00
xor ecx, ecx
mov dword [esp + 0x44], 0
push 0xffffffffffffffff
push ecx
mov word [esp + 0x3c], cx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0
push eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
call fcn.00403ac0
mov byte [esp + 0x26c], 1
call fcn.0041ad00
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x415f4e
lea ecx, [esp + 0x34]
call fcn.00413a40
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x415f74
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x415f74
push 1
push 0x47cc40
lea ecx, [esp + 0x3c]
call fcn.004039e0
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov byte [esp + 0x26c], 2
push 0x208
push eax
mov word [esp + 0x54], ax
lea eax, [esp + 0x56]
push eax
call fcn.00451fb0
add esp, 0xc
mov dword [esp + 0x18], 0x104
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov word [esp + 0x252], ax
cmp word [esp + 0x4c], ax
jne 0x415fe8
xor ecx, ecx
jmp 0x415fff
lea ecx, [esp + 0x4c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415ff0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
call fcn.00403be0
mov edx, str.__r_t_n
lea ecx, [esp + 0x1c]
call fcn.0040f470
mov edx, str.__r_t_n
lea ecx, [esp + 0x1c]
call fcn.0040f4e0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00403920
push 1
push 0x47cdec
lea ecx, [esp + 0x3c]
call fcn.004039e0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push 0xffffffffffffffff
push 0
add eax, 0x60
push eax
call fcn.00403920
push 0xc
push 0x47cdf0
lea ecx, [esp + 0x3c]
call fcn.004039e0
cmp byte [esp + 0x274], 0
je 0x41608b
push 8
push str..pending
lea ecx, [esp + 0x3c]
call fcn.004039e0
lea eax, [esp + 0x34]
cmp edi, eax
je 0x41609f
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00403ac0
mov byte [esp + 0x26c], 1
cmp dword [esp + 0x30], 8
jb 0x4160ba
push dword [esp + 0x1c]
call fcn.0044baac
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov byte [esp + 0x26c], al
cmp dword [esp + 0x48], 8
jb 0x4160eb
push dword [esp + 0x34]
call fcn.0044baac
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov dword [esp + 0x26c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0044bab1
add esp, 0x264
ret 4