Function at 0x14000106e
Capabilities:
Get session user name

Disassembly:
jmp 0x140005690
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0xd0
mov rax, qword [0x14000b030]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor r14d, r14d
mov qword [rsp + 0xe0], rbp
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x34], r14d
lea rax, [0x140009948]
lea rcx, str.SensorDBSynchTrace
mov qword [0x14000b178], r14
mov qword [0x14000b160], rax
lea rax, [0x14000b168]
mov qword [0x14000b168], r14
mov qword [0x14000b020], rax
mov qword [0x14000b180], 1
call fcn.14000105f
lea r8d, [r14 + 0x7f]
lea rcx, [rsp + 0x41]
xor edx, edx
mov byte [rsp + 0x40], r14b
call sub.MSVCR120.dll_memset
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x38], 0x80
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rcx, qword [0x14000b020]
lea rbp, [0x14000b020]
cmp rcx, rbp
je 0x140005765
test byte [rcx + 0x1c], 8
je 0x140005765
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0xa]
lea r9, [rsp + 0x40]
lea r8, [0x140009960]
call fcn.140001055
lea r8, [rsp + 0x40]
lea rdx, str.C:Users_sAppDataLocalLowExportedData.bin
lea rcx, [0x14000b280]
call qword [sym.imp.MSVCR120.dll_sprintf]
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [0x14000b278], eax
call fcn.140001023
mov ebx, eax
test eax, eax
je 0x1400057bf
mov rcx, qword [0x14000b020]
cmp rcx, rbp
je 0x1400057bf
test byte [rcx + 0x1c], 8
je 0x1400057bf
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009960]
mov edx, 0xb
mov r9d, eax
call fcn.140001041
lea rcx, [0x140001073]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x1400057fc
mov rax, qword [0x14000b020]
cmp rax, rbp
je 0x14000583b
test byte [rax + 0x1c], 8
je 0x140005803
mov rcx, qword [rax + 0x10]
lea r8, [0x140009960]
mov edx, 0xc
call fcn.140001078
mov rax, qword [0x14000b020]
cmp rax, rbp
je 0x14000583b
test byte [rax + 0x1c], 2
je 0x14000583b
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov rcx, qword [0x14000b020]
mov r9d, dword [0x14000b278]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009960]
mov edx, 0xd
mov dword [rsp + 0x20], eax
call fcn.14000105a
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp dword [0x14000b278], eax
jne 0x140005885
lea rcx, [0x14000b1b0]
call fcn.140001096
mov ebx, eax
test eax, eax
je 0x140005885
mov rcx, qword [0x14000b020]
cmp rcx, rbp
je 0x140005885
test byte [rcx + 0x1c], 8
je 0x140005885
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009960]
mov edx, 0xe
mov r9d, eax
call fcn.140001041
lea r8, str.Global_valSyncDB
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov qword [0x14000b1a0], rax
test rax, rax
jne 0x1400058e9
mov rax, qword [0x14000b020]
cmp rax, rbp
je 0x140005a98
test byte [rax + 0x1c], 8
je 0x140005a98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14000b020]
lea r8, [0x140009960]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xf
call fcn.140001041
jmp 0x140005a98
lea r8, str.GlobalMutexEvent
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov qword [0x14000b1a8], rax
test rax, rax
jne 0x14000594d
mov rax, qword [0x14000b020]
cmp rax, rbp
je 0x140005a98
test byte [rax + 0x1c], 8
je 0x140005a98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x10
mov rcx, qword [0x14000b020]
lea r8, [0x140009960]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x140005a98
lea r8, str.GlobalUpdateRecordEvent
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov qword [0x14000b270], rax
test rax, rax
jne 0x140005994
mov rax, qword [0x14000b020]
cmp rax, rbp
je 0x140005a98
test byte [rax + 0x1c], 8
je 0x140005a98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x11
jmp 0x14000592e
lea rax, [rsp + 0x30]
lea r8, [0x14000107d]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0xe8], rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x1400059fc
mov rcx, qword [0x14000b020]
cmp rcx, rbp
je 0x140005a90
test byte [rcx + 0x1c], 8
je 0x140005a90
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x12]
lea r8, [0x140009960]
mov r9d, ebx
call fcn.140001041
jmp 0x140005a90
lea rax, [rsp + 0x34]
lea r8, [0x140001005]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0xf0], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140005a59
mov rcx, qword [0x14000b020]
cmp rcx, rbp
je 0x140005a71
test byte [rcx + 0x1c], 8
je 0x140005a71
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x13]
lea r8, [0x140009960]
mov r9d, ebx
call fcn.140001041
jmp 0x140005a71
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140005a88
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [0x14000b190]
mov rbp, qword [rsp + 0xe0]
cmp rcx, 0xffffffffffffffff
je 0x140005ab3
call qword [sym.imp.ADVAPI32.dll_CloseTrace]
mov rax, qword [0x14000b270]
test rax, rax
je 0x140005acf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14000b270], r14
mov dword [0x14000b19c], r14d
call fcn.14000100a
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140005ed0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xd0
pop r14
ret