Function at 0x18003783c
Capabilities:
Get session user name

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x270
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x180071060]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, r8
mov rbx, rdx
xor r13d, r13d
mov esi, r13d
mov dword [rsp + 0x50], r13d
lea r12, [0x1800759e0]
mov edi, 0x80
cmp word [0x1800759e0], r13w
jne 0x18003798d
mov word [r11 - 0x138], r13w
xor edx, edx
lea r8d, [rdi + 0x7e]
lea rcx, [r11 - 0x136]
call fcn.18003e200
mov dword [rsp + 0x50], edi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, r13d
je 0x18003798d
lea rdx, str.system
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r13d
jne 0x180037979
lea r9, str.agentUser
lea r8, str.SoftwareWOW6432Nodeprojonepodlp_smpcache_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0xe0]
call fcn.1800337bc
cmp qword [rsp + 0xf8], r13
jne 0x180037939
mov r8d, edi
lea rdx, [rsp + 0x160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x18003795f
lea rdx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rdx, qword [rsp + 0xe8]
mov r8d, edi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp qword [rsp + 0x100], 8
jb 0x18003798d
mov rcx, qword [rsp + 0xe8]
call fcn.18003cec4
jmp 0x18003798d
mov r8d, edi
lea rdx, [rsp + 0x160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x180075ae0], r13b
jne 0x1800379dc
lea rcx, [rsp + 0xb0]
call fcn.1800366c8
cmp qword [rax + 0x20], 0x10
jb 0x1800379b0
mov rdx, qword [rax + 8]
jmp 0x1800379b4
lea rdx, [rax + 8]
mov r8d, edi
lea rcx, [0x180075ae0]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp qword [rsp + 0xd0], 0x10
jb 0x1800379dc
mov rcx, qword [rsp + 0xb8]
call fcn.18003cec4
cmp word [0x1800759e0], r13w
je 0x180038179
cmp byte [0x180075ae0], r13b
je 0x180038179
mov r12d, 7
cmp byte [rbx + 8], r12b
jne 0x180038175
lea r14d, [r12 + 8]
mov qword [rsp + 0x100], r14
mov qword [rsp + 0xf8], r13
mov byte [rsp + 0xe8], r13b
lea r8d, [r12 + 1]
lea rdx, str.i_action
lea rcx, [rsp + 0xe0]
call fcn.180006c70
nop
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xc8], r13
mov byte [rsp + 0xb8], r13b
xor r8d, r8d
lea rdx, [0x18005c2e7]
lea rcx, [rsp + 0xb0]
call fcn.180006c70
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xe0]
mov rdx, rbx
lea rcx, [rsp + 0x108]
call fcn.180035d9c
nop
cmp qword [rsp + 0x100], 0x10
jb 0x180037aa6
mov rcx, qword [rsp + 0xe8]
call fcn.18003cec4
mov qword [rsp + 0x100], r14
mov qword [rsp + 0xf8], r13
mov byte [rsp + 0xe8], r13b
lea rcx, [rsp + 0x110]
cmp qword [rsp + 0x128], 0x10
cmovae rcx, qword [rsp + 0x110]
mov r8, r12
mov rdi, qword [rsp + 0x120]
cmp rdi, r12
cmovb r8, rdi
lea rdx, str.replace
call fcn.180046cc0
movsxd rcx, eax
mov eax, r13d
cmp rdi, r12
setne al
cmp rdi, r12
mov r12, 0xffffffffffffffff
cmovb eax, r12d
cmp rcx, r13
cmovne eax, ecx
cmp eax, r13d
je 0x180037b7a
lea rcx, [rsp + 0x110]
cmp qword [rsp + 0x128], 0x10
cmovae rcx, qword [rsp + 0x110]
mov r12d, 6
mov r8, r12
cmp rdi, r12
cmovb r8, rdi
lea rdx, str.delete
call fcn.180046cc0
movsxd rcx, eax
mov eax, r13d
cmp rdi, r12
setne al
cmp rdi, r12
mov r12, 0xffffffffffffffff
cmovb eax, r12d
cmp rcx, r13
cmovne eax, ecx
cmp eax, r13d
jne 0x180037bfd
lea rdx, str.i_key_columns
mov rcx, rbx
call fcn.1800217b4
cmp byte [rax + 8], 4
jne 0x180037bbb
lea rdx, str.i_key_columns
mov rcx, rbx
call fcn.1800217b4
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.1800205e4
mov esi, 1
cmp qword [rax + 0x18], r13
je 0x180037bbb
mov dil, r13b
jmp 0x180037bbe
mov dil, 1
test sil, 1
je 0x180037bd9
cmp qword [rsp + 0x80], 0x10
jb 0x180037bd9
mov rcx, qword [rsp + 0x68]
call fcn.18003cec4
cmp dil, r13b
je 0x180037bfd
cmp qword [rsp + 0x128], 0x10
jb 0x180037bf6
mov rcx, qword [rsp + 0x110]
call fcn.18003cec4
xor eax, eax
jmp 0x18003817b
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, str.t_regrisk_log
lea rcx, [rsp + 0x60]
call fcn.1800201a8
mov rdi, rax
lea rdx, str.i_dt
mov rcx, rbx
call fcn.1800217b4
mov rcx, rax
mov rdx, rdi
call fcn.1800204dc
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x50], rdx
lea rdx, [0x180075ae0]
lea rcx, [rsp + 0x60]
call fcn.1800201a8
mov rdi, rax
lea rdx, str.client_unique
mov rcx, rbx
call fcn.1800217b4
mov rcx, rax
mov rdx, rdi
call fcn.1800204dc
lea rsi, str.user_name
mov rdx, rsi
mov rcx, rbx
call fcn.1800217b4
cmp byte [rax + 8], r13b
jne 0x180037ebf
mov qword [rsp + 0x180], r14
mov qword [rsp + 0x178], r13
mov byte [rsp + 0x168], r13b
mov qword [rsp + 0x1a8], r14
mov qword [rsp + 0x1a0], r13
mov byte [rsp + 0x190], r13b
mov dword [rsp + 0x1b0], r13d
mov qword [rsp + 0x1d8], r14
mov qword [rsp + 0x1d0], r13
mov byte [rsp + 0x1c0], r13b
mov qword [rsp + 0x200], r14
mov qword [rsp + 0x1f8], r13
mov byte [rsp + 0x1e8], r13b
mov qword [rsp + 0x228], r14
mov qword [rsp + 0x220], r13
mov byte [rsp + 0x210], r13b
mov qword [rsp + 0x250], r14
mov qword [rsp + 0x248], r13
mov byte [rsp + 0x238], r13b
lea rcx, [rsp + 0x160]
call fcn.18003695c
cmp eax, r13d
je 0x180037de0
cmp qword [rsp + 0x178], r13
je 0x180037de0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.180020250
mov rdi, rax
mov rdx, rsi
mov rcx, rbx
call fcn.1800217b4
mov rcx, rax
mov rdx, rdi
call fcn.1800204dc
lea rdx, [rsp + 0x130]
mov qword [rsp + 0x50], rdx
mov byte [rsp + 0x138], 1
btr dword [rsp + 0x138], 8
mov qword [rsp + 0x140], r13
mov qword [rsp + 0x148], r13
mov qword [rsp + 0x150], r13
mov qword [rsp + 0x130], 1
lea rdx, str.i_user_data
mov rcx, rbx
call fcn.1800217b4
mov rcx, rax
lea rdx, [rsp + 0x130]
call fcn.1800204dc
jmp 0x180037eb2
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x150], 7
mov qword [rsp + 0x148], r13
mov word [rsp + 0x138], r13w
xor eax, eax
mov rcx, r12
lea rdi, [0x1800759e0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [0x1800759e0]
lea rcx, [rsp + 0x130]
call fcn.180006f50
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.180013ba0
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.180020250
mov rdi, rax
mov rdx, rsi
mov rcx, rbx
call fcn.1800217b4
mov rcx, rax
mov rdx, rdi
call fcn.1800204dc
nop
cmp qword [rsp + 0x80], 0x10
jb 0x180037e87
mov rcx, qword [rsp + 0x68]
call fcn.18003cec4
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x78], r13
mov byte [rsp + 0x68], r13b
cmp qword [rsp + 0x150], 8
jb 0x180037eb2
mov rcx, qword [rsp + 0x138]
call fcn.18003cec4
nop
lea rcx, [rsp + 0x160]
call fcn.1800381a8
lea rdx, str.data_time
mov rcx, rbx
call fcn.1800217b4
cmp byte [rax + 8], r13b
jne 0x180037fa9
mov byte [rsp + 0x130], r13b
xor eax, eax
mov qword [rsp + 0x131], rax
mov qword [rsp + 0x139], rax
mov qword [rsp + 0x141], rax
mov dword [rsp + 0x149], eax
mov word [rsp + 0x14d], ax
mov byte [rsp + 0x14f], 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 + 0x130]
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x88]
call fcn.1800201a8
mov rdi, rax
lea rdx, str.data_time
mov rcx, rbx
call fcn.1800217b4
mov rcx, rax
mov rdx, rdi
call fcn.1800204dc
cmp rbp, r13
je 0x180038156
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 + 0x150], 7
mov qword [rsp + 0x148], r13
mov word [rsp + 0x138], r13w
xor eax, eax
mov rcx, r12
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x130]
call fcn.180006f50
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.180013ba0
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.180020250
mov rdi, rax
lea rdx, str.attach_name
mov rcx, rbx
call fcn.1800217b4
mov rcx, rax
mov rdx, rdi
call fcn.1800204dc
nop
cmp qword [rsp + 0x80], 0x10
jb 0x18003805e
mov rcx, qword [rsp + 0x68]
call fcn.18003cec4
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x78], r13
mov byte [rsp + 0x68], r13b
cmp qword [rsp + 0x150], 8
jb 0x180038088
mov rcx, qword [rsp + 0x138]
call fcn.18003cec4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x150], 7
mov qword [rsp + 0x148], r13
mov word [rsp + 0x138], r13w
xor eax, eax
mov rcx, r12
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x130]
call fcn.180006f50
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.180013ba0
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.180020250
mov rdi, rax
lea rdx, str.attachment
mov rcx, rbx
call fcn.1800217b4
mov rcx, rax
mov rdx, rdi
call fcn.1800204dc
nop
cmp qword [rsp + 0x80], 0x10
jb 0x18003812b
mov rcx, qword [rsp + 0x68]
call fcn.18003cec4
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x78], r13
mov byte [rsp + 0x68], r13b
cmp qword [rsp + 0x150], 8
jb 0x180038156
mov rcx, qword [rsp + 0x138]
call fcn.18003cec4
nop
cmp qword [rsp + 0x128], 0x10
jb 0x18003816e
mov rcx, qword [rsp + 0x110]
call fcn.18003cec4
mov eax, 1
jmp 0x18003817b
xor eax, eax
jmp 0x18003817b
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18003c6c0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret