Function at 0x4149f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f28c
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x43a050]
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 - 0x298]
call fcn.00402030
push 0
mov dword [ebp - 4], 0
call fcn.0041bfa5
add esp, 4
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], edx
call fcn.0040ba30
lea esi, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.0040c4f0
mov byte [ebp - 4], 2
mov edx, dword [eax]
test edx, edx
jne 0x414a6e
xor eax, eax
jmp 0x414a82
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414a73
sub eax, esi
sar eax, 1
push edx
lea ecx, [ebp - 0x270]
push ecx
mov ebx, eax
call fcn.004018e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414ab7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [ebp - 0x240]
call fcn.0040c560
mov byte [ebp - 4], 3
mov edx, dword [eax]
test edx, edx
jne 0x414ad0
xor eax, eax
jmp 0x414ae4
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414ad5
sub eax, esi
sar eax, 1
push edx
lea ecx, [ebp - 0x268]
push ecx
mov ebx, eax
call fcn.004018e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414b19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 0x244], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414b40
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x264]
push edx
mov ebx, eax
call fcn.004018e0
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00419481
xor ebx, ebx
add esp, 8
cmp eax, ebx
jne 0x414bd9
movzx ecx, word [ebp - 0x224]
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x22c]
add edx, 0x76c
inc eax
mov word [ebp - 0x290], cx
movzx ecx, word [ebp - 0x238]
mov word [ebp - 0x294], dx
mov dx, word [ebp - 0x230]
mov word [ebp - 0x292], ax
mov ax, word [ebp - 0x234]
mov word [ebp - 0x28e], dx
mov word [ebp - 0x28c], ax
mov word [ebp - 0x28a], cx
xor edx, edx
push ebx
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x288], edx
mov dword [ebp - 0x274], 2
call fcn.004029f0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2b0]
test eax, eax
jne 0x414c3d
call fcn.0040bb20
mov eax, dword [ebp - 0x2a0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414c2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x298]
call fcn.00402110
mov eax, 1
jmp 0x414c71
call fcn.0040bb20
mov eax, dword [ebp - 0x2a0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414c64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x298]
call fcn.00402110
xor eax, eax
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.00418cd4
mov esp, ebp
pop ebp
ret