Function at 0x412780
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x4af0e7
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4df5dc]
xor eax, esp
mov dword [esp + 0x250], eax
push esi
push edi
mov eax, dword [0x4df5dc]
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.00492dc0
add esp, 0xc
xorps xmm0, xmm0
movdqu xmmword [esi + 0x74], xmm0
call fcn.00416b10
mov al, byte [eax + 0x108]
test al, al
je 0x412a28
call fcn.00416b10
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.00402030
mov byte [esp + 0x26c], 1
call fcn.00416b10
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x41288e
lea ecx, [esp + 0x34]
call fcn.00443320
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4128b4
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4128b4
push 1
push 0x4c592c
lea ecx, [esp + 0x3c]
call fcn.0040a280
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.00492dc0
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 0x412928
xor ecx, ecx
jmp 0x41293f
lea ecx, [esp + 0x4c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412930
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
call fcn.004024f0
mov edx, str.__r_t_n
lea ecx, [esp + 0x1c]
call fcn.00406cd0
mov edx, str.__r_t_n
lea ecx, [esp + 0x1c]
call fcn.00406d40
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.0040a1c0
push 1
push 0x4c5b00
lea ecx, [esp + 0x3c]
call fcn.0040a280
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push 0xffffffffffffffff
push 0
add eax, 0x60
push eax
call fcn.0040a1c0
push 0xc
push 0x4c5b04
lea ecx, [esp + 0x3c]
call fcn.0040a280
lea eax, [esp + 0x34]
cmp edi, eax
je 0x4129c5
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00402030
mov byte [esp + 0x26c], 1
cmp dword [esp + 0x30], 8
jb 0x4129e0
push dword [esp + 0x1c]
call fcn.0048e056
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 0x412a11
push dword [esp + 0x34]
call fcn.0048e056
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.0048d894
add esp, 0x264
ret 4