Function at 0x1001c2a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.101f99e0
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ecx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x101c], ebx
call fcn.1001c7e0
push 0x410
mov edi, eax
lea eax, [ebp - 0x814]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test edi, edi
jne 0x1001c4e0
push 0x400
lea eax, [ebp - 0x404]
mov dword [ebp - 0x1020], edi
push edi
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x1020]
push eax
push 0x200
lea eax, [ebp - 0x404]
push eax
push esi
call fcn.1001bd90
add esp, 0x1c
test eax, eax
je 0x1001c4b6
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x1018]
call fcn.10002490
mov edi, dword [ebp - 0x1018]
xor esi, esi
mov ebx, edi
movzx eax, word [edi]
test ax, ax
je 0x1001c3be
mov ecx, eax
jmp 0x1001c360
push ecx
push 0x10202944
call sub.msvcrt.dll_wcschr
add esp, 8
test eax, eax
je 0x1001c37a
test esi, esi
jne 0x1001c37c
mov esi, ebx
jmp 0x1001c37c
xor esi, esi
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x1001c360
test esi, esi
je 0x1001c3be
mov eax, dword [edi - 8]
sub esi, edi
sar esi, 1
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or ecx, eax
jge 0x1001c3b5
push esi
lea ecx, [ebp - 0x1018]
call fcn.10003310
mov edi, dword [ebp - 0x1018]
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
push dword [ebp - 0x101c]
lea ecx, [ebp - 0x1018]
call fcn.10002490
mov esi, dword [ebp - 0x1018]
mov ebx, esi
movzx eax, word [esi]
test ax, ax
je 0x1001c46c
mov ecx, eax
push ecx
push 0x10202944
call sub.msvcrt.dll_wcschr
add esp, 8
test eax, eax
je 0x1001c405
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x1001c3e5
cmp ebx, esi
je 0x1001c46c
mov eax, dword [esi - 8]
sub ebx, esi
mov ecx, dword [esi - 0xc]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
sar ebx, 1
or edx, eax
mov dword [ebp - 0x101c], ebx
jge 0x1001c439
push ecx
lea ecx, [ebp - 0x1018]
call fcn.10003310
mov esi, dword [ebp - 0x1018]
mov ecx, dword [esi - 0xc]
mov ebx, ecx
mov edx, dword [ebp - 0x101c]
sub ebx, edx
lea eax, [ebx*2 + 2]
push eax
lea eax, [esi + edx*2]
push eax
lea eax, [ecx*2 + 2]
push eax
push esi
call fcn.10007350
add esp, 0x10
mov dword [esi - 0xc], ebx
xor eax, eax
mov word [esi + ebx*2], ax
push esi
push edi
push 0x102040c0
lea eax, [ebp - 0x814]
push 0x208
push eax
call fcn.1000aa70
lea edx, [esi - 0x10]
add esp, 0x14
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001c4a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x1001c4b6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1020]
test eax, eax
je 0x1001c5db
mov ecx, dword [ebp - 0x1024]
push eax
call fcn.1001c7e0
mov edi, eax
lea ebx, [ebp - 0x814]
test edi, edi
je 0x1001c5db
push 0x202
lea eax, [ebp - 0x208]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x800
lea eax, [ebp - 0x1014]
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 0x10]
add esp, 0x18
test esi, esi
je 0x1001c56b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001c515
sub ecx, edx
sar ecx, 1
je 0x1001c56b
lea ecx, [ebp - 0x208]
mov edx, 0x101
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffefd]
test eax, eax
je 0x1001c55d
movzx eax, word [esi + ecx]
test ax, ax
je 0x1001c55d
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1001c535
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x1001c58d
test edx, edx
jne 0x1001c564
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x1001c58d
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x101c], 0x101
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1001c5db
push ebx
push edi
push 0x102040c0
lea eax, [ebp - 0x1014]
push 0x400
push eax
call fcn.1000aa70
mov ecx, dword [ebp - 0x1024]
lea eax, [ebp - 0x208]
add esp, 0x14
push dword [ebp + 0x14]
push eax
push 2
push 4
lea eax, [ebp - 0x1014]
push eax
call fcn.1001cae0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x10