Function at 0x180039d3c
Capabilities:
Get session user name

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x2d0
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x2c8], rax
mov rbp, r8
mov rbx, rdx
xor r12d, r12d
mov esi, r12d
mov dword [rsp + 0x50], r12d
lea r13, [0x180079f80]
mov edi, 0x80
cmp word [0x180079f80], r12w
jne 0x180039e88
mov word [r11 - 0x1c8], r12w
xor edx, edx
lea r8d, [rdi + 0x7e]
lea rcx, [r11 - 0x1c6]
call fcn.180041420
mov dword [rsp + 0x50], edi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, r12d
je 0x180039e88
lea rdx, str.system
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r12d
jne 0x180039e74
lea r9, str.agentUser
lea r8, str.SoftwareWOW6432Nodeprojonepodlp_smpcache_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0xe0]
call fcn.180022b94
cmp qword [rsp + 0xf8], r12
jne 0x180039e34
mov r8d, edi
lea rdx, [rsp + 0x130]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x180039e5a
lea rdx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rdx, qword [rsp + 0xe8]
mov r8d, edi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp qword [rsp + 0x100], 8
jb 0x180039e88
mov rcx, qword [rsp + 0xe8]
call fcn.18003c228
jmp 0x180039e88
mov r8d, edi
lea rdx, [rsp + 0x130]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x18007a080], r12b
jne 0x180039ed7
lea rcx, [rsp + 0xb0]
call fcn.180038e30
cmp qword [rax + 0x20], 0x10
jb 0x180039eab
mov rdx, qword [rax + 8]
jmp 0x180039eaf
lea rdx, [rax + 8]
mov r8d, edi
lea rcx, [0x18007a080]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp qword [rsp + 0xd0], 0x10
jb 0x180039ed7
mov rcx, qword [rsp + 0xb8]
call fcn.18003c228
cmp word [0x180079f80], r12w
je 0x18003a635
cmp byte [0x18007a080], r12b
je 0x18003a635
cmp byte [rbx + 8], 7
jne 0x18003a631
mov r13d, 0xf
mov qword [rsp + 0x100], r13
mov qword [rsp + 0xf8], r12
mov byte [rsp + 0xe8], r12b
lea r8d, [r13 - 7]
lea rdx, str.i_action
lea rcx, [rsp + 0xe0]
call fcn.180002794
nop
mov qword [rsp + 0xd0], r13
mov qword [rsp + 0xc8], r12
mov byte [rsp + 0xb8], r12b
xor r8d, r8d
lea rdx, [0x18005d383]
lea rcx, [rsp + 0xb0]
call fcn.180002794
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xe0]
mov rdx, rbx
lea rcx, [rsp + 0x108]
call fcn.1800015fc
nop
cmp qword [rsp + 0x100], 0x10
jb 0x180039f9b
mov rcx, qword [rsp + 0xe8]
call fcn.18003c228
mov qword [rsp + 0x100], r13
mov qword [rsp + 0xf8], r12
mov byte [rsp + 0xe8], r12b
lea rdx, str.replace
lea rcx, [rsp + 0x108]
call fcn.18000b78c
cmp al, r12b
jne 0x180039fe9
lea rdx, str.delete
lea rcx, [rsp + 0x108]
call fcn.18000b78c
cmp al, r12b
je 0x18003a06c
lea rdx, str.i_key_columns
mov rcx, rbx
call fcn.18002c22c
cmp byte [rax + 8], 4
jne 0x18003a02a
lea rdx, str.i_key_columns
mov rcx, rbx
call fcn.18002c22c
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.18002b05c
mov esi, 1
cmp qword [rax + 0x18], r12
je 0x18003a02a
mov dil, r12b
jmp 0x18003a02d
mov dil, 1
test sil, 1
je 0x18003a048
cmp qword [rsp + 0x80], 0x10
jb 0x18003a048
mov rcx, qword [rsp + 0x68]
call fcn.18003c228
cmp dil, r12b
je 0x18003a06c
cmp qword [rsp + 0x128], 0x10
jb 0x18003a065
mov rcx, qword [rsp + 0x110]
call fcn.18003c228
xor eax, eax
jmp 0x18003a637
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, str.t_safecheck_result
lea rcx, [rsp + 0x60]
call fcn.18002ac20
mov rdi, rax
lea rdx, str.i_dt
mov rcx, rbx
call fcn.18002c22c
mov rcx, rax
mov rdx, rdi
call fcn.18002af54
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x50], rdx
lea rdx, [0x18007a080]
lea rcx, [rsp + 0x60]
call fcn.18002ac20
mov rdi, rax
lea rdx, str.client_unique
mov rcx, rbx
call fcn.18002c22c
mov rcx, rax
mov rdx, rdi
call fcn.18002af54
lea rsi, str.user_name
mov rdx, rsi
mov rcx, rbx
call fcn.18002c22c
cmp byte [rax + 8], r12b
jne 0x18003a377
mov qword [rsp + 0x150], r13
mov qword [rsp + 0x148], r12
mov byte [rsp + 0x138], r12b
mov qword [rsp + 0x178], r13
mov qword [rsp + 0x170], r12
mov byte [rsp + 0x160], r12b
mov dword [rsp + 0x180], r12d
mov qword [rsp + 0x1a8], r13
mov qword [rsp + 0x1a0], r12
mov byte [rsp + 0x190], r12b
mov qword [rsp + 0x1d0], r13
mov qword [rsp + 0x1c8], r12
mov byte [rsp + 0x1b8], r12b
mov qword [rsp + 0x1f8], r13
mov qword [rsp + 0x1f0], r12
mov byte [rsp + 0x1e0], r12b
mov qword [rsp + 0x220], r13
mov qword [rsp + 0x218], r12
mov byte [rsp + 0x208], r12b
mov qword [rsp + 0x248], r13
mov qword [rsp + 0x240], r12
mov byte [rsp + 0x230], r12b
mov qword [rsp + 0x270], r13
mov qword [rsp + 0x268], r12
mov byte [rsp + 0x258], r12b
mov qword [rsp + 0x298], r13
mov qword [rsp + 0x290], r12
mov byte [rsp + 0x280], r12b
lea rcx, [rsp + 0x130]
call fcn.180039028
cmp eax, r12d
je 0x18003a297
cmp qword [rsp + 0x148], r12
je 0x18003a297
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.18002acc8
mov rdi, rax
mov rdx, rsi
mov rcx, rbx
call fcn.18002c22c
mov rcx, rax
mov rdx, rdi
call fcn.18002af54
lea rdx, [rsp + 0x2a0]
mov qword [rsp + 0x50], rdx
mov byte [rsp + 0x2a8], 1
btr dword [rsp + 0x2a8], 8
mov qword [rsp + 0x2b0], r12
mov qword [rsp + 0x2b8], r12
mov qword [rsp + 0x2c0], r12
mov qword [rsp + 0x2a0], 1
lea rdx, str.i_user_data
mov rcx, rbx
call fcn.18002c22c
mov rcx, rax
lea rdx, [rsp + 0x2a0]
call fcn.18002af54
jmp 0x18003a36a
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x2c0], 7
mov qword [rsp + 0x2b8], r12
mov word [rsp + 0x2a8], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x180079f80]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [0x180079f80]
lea rcx, [rsp + 0x2a0]
call fcn.180002a18
nop
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x60]
call fcn.180001484
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.18002acc8
mov rdi, rax
mov rdx, rsi
mov rcx, rbx
call fcn.18002c22c
mov rcx, rax
mov rdx, rdi
call fcn.18002af54
nop
cmp qword [rsp + 0x80], 0x10
jb 0x18003a33f
mov rcx, qword [rsp + 0x68]
call fcn.18003c228
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x68], r12b
cmp qword [rsp + 0x2c0], 8
jb 0x18003a36a
mov rcx, qword [rsp + 0x2a8]
call fcn.18003c228
nop
lea rcx, [rsp + 0x130]
call fcn.18003a660
lea rdx, str.data_time
mov rcx, rbx
call fcn.18002c22c
cmp byte [rax + 8], r12b
jne 0x18003a461
mov byte [rsp + 0x2a0], r12b
xor eax, eax
mov qword [rsp + 0x2a1], rax
mov qword [rsp + 0x2a9], rax
mov qword [rsp + 0x2b1], rax
mov dword [rsp + 0x2b9], eax
mov word [rsp + 0x2bd], ax
mov byte [rsp + 0x2bf], al
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5a]
movzx ecx, word [rsp + 0x58]
movzx edi, word [rsp + 0x56]
movzx r8d, word [rsp + 0x52]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r8d
lea r8, str._04d__02d__02d__02d:_02d:_02d
mov edx, 0x20
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x88]
call fcn.18002ac20
mov rdi, rax
lea rdx, str.data_time
mov rcx, rbx
call fcn.18002c22c
mov rcx, rax
mov rdx, rdi
call fcn.18002af54
cmp rbp, r12
je 0x18003a612
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
mov qword [rsp + 0x2c0], 7
mov qword [rsp + 0x2b8], r12
mov word [rsp + 0x2a8], r12w
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x2a0]
call fcn.180002a18
nop
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x60]
call fcn.180001484
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.18002acc8
mov rdi, rax
lea rdx, str.attach_name
mov rcx, rbx
call fcn.18002c22c
mov rcx, rax
mov rdx, rdi
call fcn.18002af54
nop
cmp qword [rsp + 0x80], 0x10
jb 0x18003a51a
mov rcx, qword [rsp + 0x68]
call fcn.18003c228
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x68], r12b
cmp qword [rsp + 0x2c0], 8
jb 0x18003a544
mov rcx, qword [rsp + 0x2a8]
call fcn.18003c228
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x2c0], 7
mov qword [rsp + 0x2b8], r12
mov word [rsp + 0x2a8], r12w
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x2a0]
call fcn.180002a18
nop
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x60]
call fcn.180001484
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.18002acc8
mov rdi, rax
lea rdx, str.attachment
mov rcx, rbx
call fcn.18002c22c
mov rcx, rax
mov rdx, rdi
call fcn.18002af54
nop
cmp qword [rsp + 0x80], 0x10
jb 0x18003a5e7
mov rcx, qword [rsp + 0x68]
call fcn.18003c228
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x68], r12b
cmp qword [rsp + 0x2c0], 8
jb 0x18003a612
mov rcx, qword [rsp + 0x2a8]
call fcn.18003c228
nop
cmp qword [rsp + 0x128], 0x10
jb 0x18003a62a
mov rcx, qword [rsp + 0x110]
call fcn.18003c228
mov eax, 1
jmp 0x18003a637
xor eax, eax
jmp 0x18003a637
xor eax, eax
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.18003c1d0
mov rbx, qword [rsp + 0x300]
add rsp, 0x2d0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret