Function at 0x10020f43
Capabilities:
Get session user name

Disassembly:
push 0x18c
mov eax, 0x10053740
call fcn.100383ca
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x17c], esi
mov edi, 0x80
cmp word [0x1006ab20], si
jne 0x10021035
xor eax, eax
push 0xfe
mov word [ebp - 0x134], ax
lea eax, [ebp - 0x132]
push esi
push eax
call fcn.10039730
add esp, 0xc
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x174], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10021035
push str.system
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10021022
lea eax, [ebp - 0x150]
push eax
mov edx, str.agentUser
mov ecx, str.Softwareprojonepodlp_smpcache_
call fcn.1001f620
pop ecx
cmp dword [ebp - 0x13c], esi
jne 0x10020ff1
lea eax, [ebp - 0x134]
jmp 0x10021006
cmp dword [ebp - 0x138], 8
mov eax, dword [ebp - 0x14c]
jae 0x10021006
lea eax, [ebp - 0x14c]
push edi
push eax
push 0x1006ab20
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea esi, [ebp - 0x150]
call fcn.10012b60
xor esi, esi
jmp 0x10021035
push edi
lea eax, [ebp - 0x134]
push eax
push 0x1006ab20
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x1006ac20], 0
jne 0x10021071
lea eax, [ebp - 0x198]
push eax
call fcn.1002f2f1
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x10021056
mov eax, dword [eax + 4]
jmp 0x10021059
add eax, 4
push edi
push eax
push 0x1006ac20
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x198]
call fcn.100079e0
cmp word [0x1006ab20], si
je 0x10021172
cmp byte [0x1006ac20], 0
je 0x10021172
cmp byte [ebx + 8], 7
jne 0x10021172
push str.i_action
lea ecx, [ebp - 0x198]
call fcn.10007970
sub esp, 0x1c
mov dword [ebp - 4], esi
mov ecx, esp
mov dword [ebp - 0x174], esp
push 0x10057aef
call fcn.10007970
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x198]
mov edi, ebx
call fcn.100019b0
add esp, 0x20
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 2
call fcn.100079e0
mov ecx, str.replace
lea edi, [ebp - 0x16c]
call fcn.1000c790
test al, al
jne 0x10021105
mov ecx, str.delete
call fcn.1000c790
test al, al
je 0x1002117a
mov esi, str.i_key_columns
push ebx
mov edx, esi
call fcn.10026599
cmp byte [eax + 8], 4
jne 0x10021143
push ebx
mov edx, esi
call fcn.10026599
push eax
lea ecx, [ebp - 0x150]
call fcn.1002584c
cmp dword [eax + 0x14], 0
mov dword [ebp - 0x17c], 1
mov byte [ebp - 0x16d], 0
jne 0x1002114a
mov byte [ebp - 0x16d], 1
test byte [ebp - 0x17c], 1
je 0x1002115e
lea ecx, [ebp - 0x150]
call fcn.100079e0
cmp byte [ebp - 0x16d], 0
je 0x1002117a
lea ecx, [ebp - 0x16c]
call fcn.100079e0
xor eax, eax
call fcn.1003844d
ret
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x174], esp
push str.t_print_log
call fcn.1002540d
push ebx
mov edx, str.i_dt
mov byte [ebp - 4], 3
call fcn.10026599
mov edi, eax
mov byte [ebp - 4], 2
call fcn.100256e1
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x174], esp
push 0x1006ac20
call fcn.1002540d
push ebx
mov edx, str.client_unique
mov byte [ebp - 4], 4
call fcn.10026599
mov edi, eax
mov byte [ebp - 4], 2
call fcn.100256e1
mov edi, str.user_name
push ebx
mov edx, edi
call fcn.10026599
cmp byte [eax + 8], 0
jne 0x10021322
lea esi, [ebp - 0xe4]
call fcn.10020eea
mov ebx, esi
mov byte [ebp - 4], 5
call fcn.1002faec
test eax, eax
je 0x10021273
cmp dword [ebp - 0xd0], 0
je 0x10021273
sub esp, 0x18
mov edx, esi
mov esi, esp
mov dword [ebp - 0x174], esp
call fcn.1002548e
push dword [ebp - 0x178]
mov edx, edi
mov byte [ebp - 4], 6
call fcn.10026599
mov edi, eax
mov byte [ebp - 4], 5
call fcn.100256e1
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x174], esp
push 1
call fcn.100253af
push dword [ebp - 0x178]
mov edx, str.i_user_data
mov byte [ebp - 4], 7
call fcn.10026599
mov edi, eax
mov byte [ebp - 4], 5
call fcn.100256e1
jmp 0x100212dc
mov eax, 0x1006ab20
lea ecx, [ebp - 0x150]
call fcn.10007a10
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 8
call fcn.10001480
sub esp, 0x10
mov byte [ebp - 4], 9
mov edx, eax
mov esi, esp
mov dword [ebp - 0x174], esp
call fcn.1002548e
push dword [ebp - 0x178]
mov edx, edi
mov byte [ebp - 4], 0xa
call fcn.10026599
mov edi, eax
mov byte [ebp - 4], 9
call fcn.100256e1
lea ecx, [ebp - 0x30]
call fcn.100079e0
lea esi, [ebp - 0x150]
call fcn.10012b60
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.100079e0
lea ecx, [ebp - 0x70]
call fcn.100079e0
lea ecx, [ebp - 0x8c]
call fcn.100079e0
lea ecx, [ebp - 0xa8]
call fcn.100079e0
lea ecx, [ebp - 0xc8]
call fcn.100079e0
lea ecx, [ebp - 0xe4]
call fcn.100079e0
mov ebx, dword [ebp - 0x178]
push ebx
mov ebx, str.data_time
mov edx, ebx
call fcn.10026599
cmp byte [eax + 8], 0
jne 0x100213c8
push 7
xor eax, eax
mov byte [ebp - 0x34], 0
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x138]
push eax
movzx eax, word [ebp - 0x13a]
push eax
movzx eax, word [ebp - 0x13c]
push eax
movzx eax, word [ebp - 0x13e]
push eax
movzx eax, word [ebp - 0x142]
push eax
movzx eax, word [ebp - 0x144]
push eax
push str._04d__02d__02d__02d:_02d:_02d
lea eax, [ebp - 0x34]
push 0x20
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0xc
lea eax, [ebp - 0x34]
mov esi, esp
mov dword [ebp - 0x174], esp
push eax
call fcn.1002540d
push dword [ebp - 0x178]
mov edx, ebx
mov byte [ebp - 4], 0xb
call fcn.10026599
mov edi, eax
mov byte [ebp - 4], 2
call fcn.100256e1
lea ecx, [ebp - 0x16c]
call fcn.100079e0
xor eax, eax
inc eax
jmp 0x10021174