Function at 0x401170
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402bf7
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x101
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4013fc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00401500
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x274]
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
push str.runneradmin
movq qword [ebp - 0x224], xmm0
call fcn.00401500
push str.Lain
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.00401500
lea ebx, [ebp - 0x244]
mov byte [ebp - 4], 2
lea edi, [ebp - 0x274]
mov dword [ebp - 0x224], 0
mov ecx, ebx
mov dword [ebp - 0x220], 0
sub ecx, edi
mov dword [ebp - 0x21c], 0
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4012ea
cmp eax, 0xaaaaaaa
ja 0x40141a
lea esi, [eax + eax*2]
shl esi, 3
test esi, esi
jne 0x401278
xor eax, eax
jmp 0x4012b2
cmp esi, 0x1000
jb 0x4012a9
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x40141f
push eax
call fcn.00401bfb
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4013ec
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4012b2
push esi
call fcn.00401bfb
add esp, 4
add esi, eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], esi
lea esi, [ebp - 0x224]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x244], esi
push esi
push eax
mov edx, ebx
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.00401a40
add esp, 8
mov dword [ebp - 0x220], eax
push 0x4014a0
push 2
push 0x18
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 5
push eax
call fcn.00401c2b
mov edi, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x240]
cmp edi, dword [ebp - 0x220]
je 0x4013b5
nop dword [eax + eax]
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x40132a
mov eax, dword [edi]
cmp dword [ebp - 0x22c], 7
lea esi, [ebp - 0x240]
mov ecx, dword [ebp - 0x230]
cmova esi, ebx
cmp ecx, dword [edi + 0x10]
jne 0x4013a6
mov edx, ecx
test edx, edx
je 0x401361
sub esi, eax
nop dword [eax]
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x4013a6
add eax, 2
sub edx, 1
jne 0x401350
lea ecx, [ebp - 0x224]
call fcn.00401690
mov eax, dword [ebp - 0x22c]
cmp eax, 7
jbe 0x4013a2
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x401398
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4013ec
push ecx
push ebx
call fcn.00401d40
add esp, 8
mov al, 1
jmp 0x4013fe
add edi, 0x18
cmp edi, dword [ebp - 0x220]
jne 0x401320
lea ecx, [ebp - 0x224]
call fcn.00401690
mov eax, dword [ebp - 0x22c]
cmp eax, 7
jbe 0x4013fc
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4013f2
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4013f2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.00401d40
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401bed
mov esp, ebp
pop ebp
ret
call fcn.00401a30
call fcn.004010c0
int3