Function at 0x1001f033
Capabilities:
Get session user name

Disassembly:
push 0x170
mov eax, 0x1003962f
call fcn.10022aaa
mov eax, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], eax
mov edi, 0x80
cmp word [0x10048e80], si
jne 0x1001f11f
xor eax, eax
push 0xfe
mov word [ebp - 0x168], ax
lea eax, [ebp - 0x166]
push esi
push eax
call fcn.10028000
add esp, 0xc
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x168]
push eax
mov dword [ebp - 0x170], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1001f11f
push str.system
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001f10c
lea eax, [ebp - 0x4c]
push eax
mov edx, str.agentUser
mov ecx, str.Softwareprojonepodlp_smpcache_
call fcn.10013ad2
pop ecx
mov dword [ebp - 4], esi
cmp dword [ebp - 0x38], esi
jne 0x1001f0e3
lea eax, [ebp - 0x168]
jmp 0x1001f0ef
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x1001f0ef
lea eax, [ebp - 0x48]
push edi
push eax
push 0x10048e80
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x4c]
call fcn.1000d330
xor esi, esi
jmp 0x1001f11f
push edi
lea eax, [ebp - 0x168]
push eax
push 0x10048e80
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x10048f80], 0
jne 0x1001f160
lea eax, [ebp - 0x4c]
push eax
call fcn.10020370
pop ecx
mov dword [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x1001f144
mov eax, dword [eax + 4]
jmp 0x1001f147
add eax, 4
push edi
push eax
push 0x10048f80
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.10001fa0
cmp word [0x10048e80], si
je 0x1001f271
cmp byte [0x10048f80], 0
je 0x1001f271
cmp byte [ebx + 8], 7
jne 0x1001f271
push str.i_action
lea ecx, [ebp - 0x4c]
call fcn.10001f30
sub esp, 0x1c
mov dword [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x170], esp
push 0x1003ce67
call fcn.10001f30
lea eax, [ebp - 0x4c]
mov edi, ebx
mov byte [ebp - 4], 3
push eax
lea ebx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.10014d05
add esp, 0x20
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.10001fa0
push str.replace
mov eax, ebx
call fcn.1001e927
pop ecx
test al, al
jne 0x1001f1f8
push str.delete
mov eax, ebx
call fcn.1001e927
pop ecx
test al, al
je 0x1001f279
mov ebx, dword [ebp - 0x178]
mov esi, str.i_key_columns
push ebx
mov edx, esi
call fcn.100190a4
cmp byte [eax + 8], 4
jne 0x1001f23d
push ebx
mov edx, esi
call fcn.100190a4
push eax
lea ecx, [ebp - 0x4c]
call fcn.10018314
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0
mov dword [ebp - 0x17c], 1
mov byte [ebp - 0x169], 0
jne 0x1001f244
mov byte [ebp - 0x169], 1
mov dword [ebp - 4], 5
test byte [ebp - 0x17c], 1
je 0x1001f25c
lea ecx, [ebp - 0x4c]
call fcn.10001fa0
cmp byte [ebp - 0x169], 0
je 0x1001f27f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10001fa0
xor eax, eax
call fcn.10022b2d
ret
mov ebx, dword [ebp - 0x178]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x170], esp
push str.t_wxwork_log
call fcn.10017f54
push ebx
mov edx, str.i_dt
mov byte [ebp - 4], 7
call fcn.100190a4
mov edi, eax
mov byte [ebp - 4], 5
call fcn.10018229
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x170], esp
push 0x10048f80
call fcn.10017f54
push ebx
mov edx, str.client_unique
mov byte [ebp - 4], 8
call fcn.100190a4
mov edi, eax
mov byte [ebp - 4], 5
call fcn.10018229
mov edi, str.user_name
push ebx
mov edx, edi
call fcn.100190a4
cmp byte [eax + 8], 0
jne 0x1001f3ec
lea eax, [ebp - 0x168]
push eax
call fcn.1001ef78
lea eax, [ebp - 0x168]
push eax
mov byte [ebp - 4], 9
call fcn.10020386
pop ecx
test eax, eax
je 0x1001f379
cmp dword [ebp - 0x154], 0
je 0x1001f379
sub esp, 0x18
lea edx, [ebp - 0x168]
mov esi, esp
mov dword [ebp - 0x170], esp
call fcn.10017fd5
push ebx
mov edx, edi
mov byte [ebp - 4], 0xa
call fcn.100190a4
mov edi, eax
mov byte [ebp - 4], 9
call fcn.10018229
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x170], esp
push 1
call fcn.10017f0f
push ebx
mov edx, str.i_user_data
mov byte [ebp - 4], 0xb
call fcn.100190a4
mov edi, eax
mov byte [ebp - 4], 9
call fcn.10018229
jmp 0x1001f3dc
mov eax, 0x10048e80
lea ecx, [ebp - 0x4c]
call fcn.10001fd0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xc
call fcn.10003db0
sub esp, 0x10
mov byte [ebp - 4], 0xd
mov edx, eax
mov esi, esp
mov dword [ebp - 0x170], esp
call fcn.10017fd5
push ebx
mov edx, edi
mov byte [ebp - 4], 0xe
call fcn.100190a4
mov edi, eax
mov byte [ebp - 4], 0xd
call fcn.10018229
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call fcn.10001fa0
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.1000d330
lea eax, [ebp - 0x168]
push eax
mov byte [ebp - 4], 5
call fcn.1001f56a
push ebx
mov edx, str.data_time
call fcn.100190a4
cmp byte [eax + 8], 0
jne 0x1001f475
push 7
xor eax, eax
mov byte [ebp - 0x30], 0
pop ecx
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x34]
push eax
movzx eax, word [ebp - 0x36]
push eax
movzx eax, word [ebp - 0x38]
push eax
movzx eax, word [ebp - 0x3a]
push eax
movzx eax, word [ebp - 0x3e]
push eax
movzx eax, word [ebp - 0x40]
push eax
push str._04d__02d__02d__02d:_02d:_02d
lea eax, [ebp - 0x30]
push 0x20
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0xc
lea eax, [ebp - 0x30]
mov esi, esp
mov dword [ebp - 0x170], esp
push eax
call fcn.10017f54
push ebx
mov edx, str.data_time
mov byte [ebp - 4], 0xf
call fcn.100190a4
mov edi, eax
mov byte [ebp - 4], 5
call fcn.10018229
cmp dword [ebp - 0x174], 0
je 0x1001f556
push dword [ebp - 0x174]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x4c]
call fcn.10001fd0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x10
call fcn.10003db0
sub esp, 0x10
mov byte [ebp - 4], 0x11
mov edx, eax
mov esi, esp
mov dword [ebp - 0x170], esp
call fcn.10017fd5
push ebx
mov edx, str.attach_name
mov byte [ebp - 4], 0x12
call fcn.100190a4
mov edi, eax
mov byte [ebp - 4], 0x11
call fcn.10018229
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
call fcn.10001fa0
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.1000d330
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x4c]
call fcn.10001fd0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x13
call fcn.10003db0
sub esp, 0x10
mov byte [ebp - 4], 0x14
mov edx, eax
mov esi, esp
mov dword [ebp - 0x170], esp
call fcn.10017fd5
push ebx
mov edx, str.attachment
mov byte [ebp - 4], 0x15
call fcn.100190a4
mov edi, eax
mov byte [ebp - 4], 0x14
call fcn.10018229
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
call fcn.10001fa0
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.1000d330
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10001fa0
xor eax, eax
inc eax
jmp 0x1001f273