Function at 0x180019a10
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbp, rdx
lea r15, [0x180162138]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x1801620e4]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x1801620e4], edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x1801620e4]
lea rcx, [0x180162940]
call fcn.180005644
lea rdx, [rsp + 0xc0]
lea rcx, [0x180162940]
call fcn.18001b698
nop
lea rdx, [rsp + 0x58]
lea rcx, [0x180163340]
call fcn.180008f88
nop
mov rax, qword [0x18015f768]
mov qword [rsp + 0x40], rax
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.180003ee8
mov r9, rax
xor r8d, r8d
lea rdx, str.replog__
lea rcx, str.C:TempWATCHMAN
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x40]
call fcn.180003f8c
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rbx - 8], eax
movsxd rcx, eax
xor r13d, r13d
mov word [rbx + rcx*2], r13w
lea rsi, [rbx - 0xc]
cmp dword [rsi], r13d
jl 0x180019b18
mov qword [rsp + 0x38], rbx
lock add dword [rsi], 1
jmp 0x180019b3c
mov rax, qword [0x18015f768]
mov qword [rsp + 0x38], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.180003e28
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff4
lea r14, [0x18015f758]
or r12d, 0xffffffff
cmp rcx, r14
je 0x180019b69
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r13d
jg 0x180019b69
call fcn.1800d1434
mov rbx, qword [rbp]
cmp dword [rbx - 0xc], r13d
jl 0x180019b7f
mov qword [rsp + 0x28], rbx
lock add dword [rbx - 0xc], 1
jmp 0x180019bad
mov rax, qword [0x18015f768]
mov qword [rsp + 0x28], rax
cmp rbx, r13
jne 0x180019b95
mov eax, r13d
jmp 0x180019b9e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.180003e28
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
lea rcx, [0x180162ea0]
call fcn.18001a3f4
nop
mov rax, qword [rax]
mov r8, rax
mov edx, dword [rax - 8]
lea rcx, [rsp + 0xc0]
call fcn.180008324
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, r14
je 0x180019c06
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r13d
jg 0x180019c06
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
lea rcx, str.mid
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, str.mid
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.180008324
mov r11, qword [rsp + 0x58]
mov r8, r11
mov edx, dword [r11 - 8]
lea rcx, [rsp + 0xc0]
call fcn.180008324
mov r11, qword [0x18015f768]
mov qword [rsp + 0x20], r11
mov rbx, qword [0x180162b20]
cmp dword [rbx - 0xc], r13d
jl 0x180019c67
mov qword [rsp + 0x30], rbx
lock add dword [rbx - 0xc], 1
jmp 0x180019c84
mov qword [rsp + 0x30], r11
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180003e28
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [0x18015f720]
call fcn.1800ce4cc
lea rcx, str.shver
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, str.shver
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.180008324
mov r11, qword [rsp + 0x20]
mov r8, r11
mov edx, dword [r11 - 8]
lea rcx, [rsp + 0xc0]
call fcn.180008324
mov r11, qword [0x18015f768]
mov qword [rsp + 0xc8], r11
lea rdx, [rsp + 0x60]
lea rcx, [0x180162940]
call fcn.18001b6f8
nop
mov r8, qword [rax]
lea rdx, str.uid_s
lea rcx, [rsp + 0xc8]
call fcn.180008f64
nop
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff4
cmp rcx, r14
je 0x180019d3a
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r13d
jg 0x180019d3a
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
mov rax, qword [rsp + 0xc8]
mov r8, rax
mov edx, dword [rax - 8]
lea rcx, [rsp + 0xc0]
call fcn.180008324
mov r8d, edi
lea rdx, str.rcnt_d
lea rcx, [rsp + 0xc8]
call fcn.180008f64
mov r11, qword [rsp + 0xc8]
mov r8, r11
mov edx, dword [r11 - 8]
lea rcx, [rsp + 0xc0]
call fcn.180008324
xor ecx, ecx
call fcn.1800d1cf8
mov rdi, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movsxd rbx, dword [0x1801620e8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub rdi, rbx
mov r8d, edi
lea rdx, str.instd_d
lea rcx, [rsp + 0xc8]
call fcn.180008f64
mov rbx, qword [rsp + 0xc8]
mov r8, rbx
mov edx, dword [rbx - 8]
lea rcx, [rsp + 0xc0]
call fcn.180008324
lea rcx, str.subinst
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, str.subinst
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.180008324
lea rdx, [rsp + 0x50]
lea rcx, [0x180162ea0]
call fcn.180019f7c
nop
mov rax, qword [rax]
mov r8, rax
mov edx, dword [rax - 8]
lea rcx, [rsp + 0xc0]
call fcn.180008324
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
cmp rcx, r14
je 0x180019e69
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r13d
jg 0x180019e61
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
mov rbx, qword [rsp + 0xc8]
jmp 0x180019e69
mov rbx, qword [rsp + 0xc8]
xor r9d, r9d
lea r8, [0x180018cb8]
lea rdx, [rsp + 0xc0]
lea rcx, vtable.CJobMgr.0
call fcn.18001c764
nop
lea rcx, [rbx - 0xc]
cmp rcx, r14
je 0x180019ea6
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r13d
jg 0x180019ea6
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, r14
je 0x180019ec9
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r13d
jg 0x180019ec9
call fcn.1800d1434
nop
cmp rsi, r14
je 0x180019ee6
mov eax, r12d
lock xadd dword [rsi], eax
add eax, r12d
cmp eax, r13d
jg 0x180019ee6
mov rcx, rsi
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
cmp rcx, r14
je 0x180019f09
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r13d
jg 0x180019f09
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0xc0]
add rcx, 0xfffffffffffffff4
cmp rcx, r14
je 0x180019f3b
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r13d
jg 0x180019f3b
mov rcx, qword [rsp + 0xc0]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
nop
mov rcx, qword [rbp]
add rcx, 0xfffffffffffffff4
cmp rcx, r14
je 0x180019f64
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r13d
jg 0x180019f64
mov rcx, qword [rbp]
sub rcx, 0xc
call fcn.1800d1434
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret