Function at 0x1020ad9
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 1
push 0x5b1
push 0x1003a68
lea ecx, [ebp - 0x64]
call fcn.01055826
mov ebx, dword [ebp + 8]
xor esi, esi
mov eax, 0x1010420
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov eax, 0x5c2
cmp ebx, esi
jne 0x1020b4b
mov dword [ebp - 0x64], 0x80070057
mov word [ebp - 0x5e], ax
jmp 0x1020f0c
mov edx, 0x104
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x64], esi
mov word [ebp - 0x60], ax
call fcn.01063a55
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5c7
jl 0x1020b42
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x34]
push 2
call sub.Secur32.dll_GetUserNameExW
movzx edi, al
cmp edi, esi
jne 0x1020bc6
mov edx, dword [ebp - 0x2c]
cmp dword [ebp - 0xc], edx
jbe 0x1020bc6
lea ecx, [ebp - 0x34]
call fcn.010635ee
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x34]
call fcn.01063a55
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5cd
jl 0x1020b42
mov word [ebp - 0x60], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x34]
push 2
call sub.Secur32.dll_GetUserNameExW
movzx edi, al
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
call fcn.010635ee
cmp edi, esi
jne 0x1020be7
call fcn.0105d3b8
mov dword [ebp - 0x64], eax
mov eax, 0x5d1
jmp 0x1020b42
mov eax, 0x5d1
lea edx, [ebp - 4]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x64], esi
mov word [ebp - 0x60], ax
call fcn.01063982
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5d3
jl 0x1020b42
mov edx, str.____systemroot__system32_sdclt.exe__2194_
lea ecx, [ebp - 0x34]
mov word [ebp - 0x60], ax
call fcn.0106470b
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5d5
jl 0x1020b42
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x34]
mov word [ebp - 0x60], ax
call fcn.01063982
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5d6
jl 0x1020b42
lea ecx, [ebp - 0x10]
push ecx
mov word [ebp - 0x60], ax
mov eax, dword [ebx]
push ebx
call dword [eax + 0x1c]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5d8
jl 0x1020b42
push dword [ebp - 4]
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5d9
jl 0x1020b42
push dword [ebp - 0x14]
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5da
jl 0x1020b42
push dword [ebp - 0x10]
mov word [ebp - 0x60], ax
mov eax, dword [ebx]
push ebx
call dword [eax + 0x20]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5db
jl 0x1020b42
lea ecx, [ebp - 0x1c]
push ecx
mov word [ebp - 0x60], ax
mov eax, dword [ebx]
push ebx
call dword [eax + 0x44]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5e1
jl 0x1020b42
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5e2
jl 0x1020b42
lea edx, [ebp - 0x28]
push edx
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x30]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5e8
jl 0x1020b42
lea edx, [ebp - 0x18]
push edx
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push 0x100a6f4
push eax
call dword [ecx]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5ea
jl 0x1020b42
push dword [ebp - 4]
mov word [ebp - 0x60], ax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x1003a20
call edi
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
mov dword [ebp - 4], eax
call ebx
test eax, eax
mov eax, 0x5ee
jne 0x1020d86
mov dword [ebp - 0x64], 0x8007000e
jmp 0x1020b42
push dword [ebp - 4]
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5ef
jl 0x1020b42
push dword [ebp - 4]
mov word [ebp - 0x60], ax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x10039d0
call edi
push eax
mov dword [ebp - 4], eax
call ebx
test eax, eax
mov eax, 0x5f3
je 0x1020d7a
push dword [ebp - 4]
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5f4
jl 0x1020b42
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ecx
mov word [ebp - 0x60], ax
mov eax, dword [edi]
push edi
call dword [eax + 0x3c]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5f9
jl 0x1020b42
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x48]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x5fa
jl 0x1020b42
lea ecx, [ebp - 8]
push ecx
mov word [ebp - 0x60], ax
mov eax, dword [edi]
push edi
call dword [eax + 0x2c]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x600
jl 0x1020b42
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x40]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x603
jl 0x1020b42
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x48]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x606
jl 0x1020b42
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x58]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x609
jl 0x1020b42
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x38]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x611
jl 0x1020b42
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0x9c]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x614
jl 0x1020b42
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x30]
mov dword [ebp - 0x64], eax
cmp eax, esi
mov eax, 0x615
jl 0x1020b42
mov word [ebp - 0x60], ax
push dword [ebp - 4]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
call edi
mov edi, dword [ebp - 0x64]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], esi
call fcn.010635b3
lea ecx, [ebp - 0x34]
call fcn.010635b3
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x1020f42
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x1020f4f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x1020f5c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x1020f69
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x1020f76
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x1020f83
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x1020f90
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x64]
call fcn.01055a3c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4