Function at 0x180012190
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x620], rbx
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov r14, r8
mov rbx, rdx
mov edi, 1
xor edx, edx
lea rcx, [rbp + 0x288]
call fcn.1800ba9d0
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1800e68a0]
movdqu xmmword [rsp + 0x50], xmm1
xor r15d, r15d
mov word [rsp + 0x40], r15w
lea rdx, str.caj2pdf.exe
lea rcx, [rsp + 0x40]
call fcn.1800034c0
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x288]
lea rcx, [rbp + 0x268]
call fcn.18001dd60
nop
lea rcx, [rsp + 0x40]
call fcn.180003440
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1800e68a0]
movdqu xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], r15w
lea rdx, str.mutool.exe
lea rcx, [rsp + 0x60]
call fcn.1800034c0
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x288]
lea rcx, [rbp + 0x2a8]
call fcn.18001dd60
nop
lea rcx, [rsp + 0x60]
call fcn.180003440
lea rcx, [rbp + 0x268]
call fcn.18001bfb0
test al, al
je 0x180012596
lea rcx, [rbp + 0x2a8]
call fcn.18001bfb0
test al, al
je 0x180012596
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x2d0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x2d0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov qword [rbp + 0x238], rax
mov qword [rbp + 0x240], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x238], xmm0
lea rdx, [rbp + 0x20]
lea rax, [rbp + 0x2d0]
lea ecx, [rdi + 3]
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rcx, 1
jne 0x180012300
mov rcx, qword [rax]
mov qword [rdx], rcx
movzx ecx, word [rax + 8]
mov word [rdx + 8], cx
lea r8, [rbp + 0x20]
lea rcx, [rbp + 0x238]
call fcn.1800125f0
nop
lea rcx, [rbp - 0x48]
call fcn.1800b9840
nop
cmp qword [rax + 0x18], 8
jb 0x180012385
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
lea rcx, [rbp - 0x48]
call fcn.180003440
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x258], xmm0
movdqa xmm1, xmmword [0x1800e68a0]
movdqu xmmword [rbp + 0x258], xmm1
mov word [rbp + 0x248], r15w
lea rdx, [0x1800dbdd4]
lea rcx, [rbp + 0x248]
call fcn.1800034c0
nop
mov r8d, 9
lea rdx, str._convert
lea rcx, [rbp + 0x248]
call fcn.180003690
mov r8d, 4
lea rdx, [0x1800dc8e8]
lea rcx, [rbp + 0x248]
call fcn.180003690
mov r8, rdi
lea rdx, [0x1800dc8f4]
mov rcx, rax
call fcn.180003690
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop dword [rax]
inc r8
cmp word [r14 + r8*2], 0
jne 0x180012420
mov rdx, r14
mov rcx, rax
call fcn.180003690
mov r8, rdi
lea rdx, [0x1800dc8f4]
mov rcx, rax
call fcn.180003690
mov r8d, 2
lea rdx, [0x1800dc8f8]
lea rcx, [rbp + 0x248]
call fcn.180003690
mov r8, rsi
inc r8
cmp word [rbx + r8*2], 0
jne 0x180012464
mov rdx, rbx
mov rcx, rax
call fcn.180003690
mov r8, rdi
lea rdx, [0x1800dc8f4]
mov rcx, rax
call fcn.180003690
mov dword [rbp + 0x234], r15d
mov dword [rbp + 0x230], r15d
lea rax, [rbp - 0x28]
mov qword [rbp - 0x58], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x50], rax
lea rdx, [rbp + 0x248]
lea rcx, [rbp - 0x28]
call fcn.1800052b0
mov rbx, rax
lea rdx, [rbp + 0x268]
lea rcx, [rbp - 8]
call fcn.1800052b0
nop
lea rcx, [rbp + 0x230]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x234]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x8000000
xor r9d, r9d
mov r8b, 1
mov rdx, rbx
mov rcx, rax
call fcn.1800b8ec0
cmp dword [rbp + 0x230], 0
jne 0x18001254a
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x1800e68a0]
movdqu xmmword [rbp - 0x70], xmm1
mov word [rbp - 0x80], r15w
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.1800034c0
nop
lea rcx, [rbp - 0x80]
call fcn.18001bfb0
movzx ebx, al
lea rcx, [rbp - 0x80]
call fcn.180003440
test bl, bl
cmovne edi, r15d
lea rcx, [rbp + 0x248]
call fcn.180003440
nop
mov rcx, qword [rbp + 0x240]
test rcx, rcx
je 0x180012596
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180012596
mov rbx, qword [rbp + 0x240]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x180012596
mov rcx, qword [rbp + 0x240]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rbp + 0x2a8]
call fcn.180003440
nop
lea rcx, [rbp + 0x268]
call fcn.180003440
nop
lea rcx, [rbp + 0x288]
call fcn.180003440
mov eax, edi
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.1800bd270
mov rbx, qword [rsp + 0x620]
add rsp, 0x5f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret