Function at 0x100213ca
Capabilities:
Get session user name

Disassembly:
push 0x18c
mov eax, 0x10053e43
call fcn.1003899a
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x17c], esi
mov edi, 0x80
cmp word [0x1006bb20], si
jne 0x100214a6
xor eax, eax
push 0xfe
mov word [ebp - 0x16c], ax
lea eax, [ebp - 0x16a]
push esi
push eax
call fcn.1003b960
add esp, 0xc
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - 0x174], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100214a6
push str.system
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10021493
lea eax, [ebp - 0x50]
push eax
mov edx, str.agentUser
mov ecx, str.Softwareprojonepodlp_smpcache_
call fcn.1001fa7a
pop ecx
cmp dword [ebp - 0x3c], esi
jne 0x1002146e
lea eax, [ebp - 0x16c]
jmp 0x1002147a
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x1002147a
lea eax, [ebp - 0x4c]
push edi
push eax
push 0x1006bb20
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea esi, [ebp - 0x50]
call fcn.10007e50
xor esi, esi
jmp 0x100214a6
push edi
lea eax, [ebp - 0x16c]
push eax
push 0x1006bb20
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x1006bc20], 0
jne 0x100214e2
lea eax, [ebp - 0x198]
push eax
call fcn.1002f71d
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x100214c7
mov eax, dword [eax + 4]
jmp 0x100214ca
add eax, 4
push edi
push eax
push 0x1006bc20
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x198]
call fcn.10007db0
cmp word [0x1006bb20], si
je 0x100215d4
cmp byte [0x1006bc20], 0
je 0x100215d4
cmp byte [ebx + 8], 7
jne 0x100215d4
push str.i_action
lea ecx, [ebp - 0x198]
call fcn.10007d40
sub esp, 0x1c
mov dword [ebp - 4], esi
mov ecx, esp
mov dword [ebp - 0x174], esp
push 0x10058aef
call fcn.10007d40
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x198]
mov edi, ebx
call fcn.100019d0
add esp, 0x20
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 2
call fcn.10007db0
mov ecx, str.replace
lea edi, [ebp - 0x6c]
call fcn.1000cc40
test al, al
jne 0x10021570
mov ecx, str.delete
call fcn.1000cc40
test al, al
je 0x100215dc
mov esi, str.i_key_columns
push ebx
mov edx, esi
call fcn.1002698a
cmp byte [eax + 8], 4
jne 0x100215ab
push ebx
mov edx, esi
call fcn.1002698a
push eax
lea ecx, [ebp - 0x50]
call fcn.10025c3d
cmp dword [eax + 0x14], 0
mov dword [ebp - 0x17c], 1
mov byte [ebp - 0x16d], 0
jne 0x100215b2
mov byte [ebp - 0x16d], 1
test byte [ebp - 0x17c], 1
je 0x100215c3
lea ecx, [ebp - 0x50]
call fcn.10007db0
cmp byte [ebp - 0x16d], 0
je 0x100215dc
lea ecx, [ebp - 0x6c]
call fcn.10007db0
xor eax, eax
call fcn.10038a1d
ret
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x174], esp
push str.t_print_log
call fcn.100257fe
push ebx
mov edx, str.i_dt
mov byte [ebp - 4], 3
call fcn.1002698a
mov edi, eax
mov byte [ebp - 4], 2
call fcn.10025ad2
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x174], esp
push 0x1006bc20
call fcn.100257fe
push ebx
mov edx, str.client_unique
mov byte [ebp - 4], 4
call fcn.1002698a
mov edi, eax
mov byte [ebp - 4], 2
call fcn.10025ad2
mov edi, str.user_name
push ebx
mov edx, edi
call fcn.1002698a
cmp byte [eax + 8], 0
jne 0x1002174a
lea esi, [ebp - 0x16c]
call fcn.10021344
mov ebx, esi
mov byte [ebp - 4], 5
call fcn.1002ffa6
test eax, eax
je 0x100216d5
cmp dword [ebp - 0x158], 0
je 0x100216d5
sub esp, 0x18
mov edx, esi
mov esi, esp
mov dword [ebp - 0x174], esp
call fcn.1002587f
push dword [ebp - 0x178]
mov edx, edi
mov byte [ebp - 4], 6
call fcn.1002698a
mov edi, eax
mov byte [ebp - 4], 5
call fcn.10025ad2
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x174], esp
push 1
call fcn.100257a0
push dword [ebp - 0x178]
mov edx, str.i_user_data
mov byte [ebp - 4], 7
call fcn.1002698a
mov edi, eax
mov byte [ebp - 4], 5
call fcn.10025ad2
jmp 0x10021735
mov eax, 0x1006bb20
lea ecx, [ebp - 0x50]
call fcn.10007de0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 8
call fcn.100014a0
sub esp, 0x10
mov byte [ebp - 4], 9
mov edx, eax
mov esi, esp
mov dword [ebp - 0x174], esp
call fcn.1002587f
push dword [ebp - 0x178]
mov edx, edi
mov byte [ebp - 4], 0xa
call fcn.1002698a
mov edi, eax
mov byte [ebp - 4], 9
call fcn.10025ad2
lea ecx, [ebp - 0x30]
call fcn.10007db0
lea esi, [ebp - 0x50]
call fcn.10007e50
lea esi, [ebp - 0x16c]
mov byte [ebp - 4], 2
call fcn.100217e7
mov ebx, dword [ebp - 0x178]
push ebx
mov ebx, str.data_time
mov edx, ebx
call fcn.1002698a
cmp byte [eax + 8], 0
jne 0x100217d7
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 - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x38]
push eax
movzx eax, word [ebp - 0x3a]
push eax
movzx eax, word [ebp - 0x3c]
push eax
movzx eax, word [ebp - 0x3e]
push eax
movzx eax, word [ebp - 0x42]
push eax
movzx eax, word [ebp - 0x44]
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.100257fe
push dword [ebp - 0x178]
mov edx, ebx
mov byte [ebp - 4], 0xb
call fcn.1002698a
mov edi, eax
mov byte [ebp - 4], 2
call fcn.10025ad2
lea ecx, [ebp - 0x6c]
call fcn.10007db0
xor eax, eax
inc eax
jmp 0x100215d6