Function at 0x140018340
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x538
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x4b0], 0xfffffffffffffffe
mov rsi, r9
mov rbx, r8
mov rdi, rdx
lea rdx, [rbp - 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001906d
mov qword [rbp + 0x400], rbx
mov qword [rbp + 0x408], rsi
movabs rax, 0x14749ad006e95b31
mov qword [rbp + 0x1c0], rax
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0x430], rax
movabs rcx, 0x40bc6108abfdd09a
mov qword [rbp + 0x1c0], rcx
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0x438], rax
movabs rax, 0x1474f4b9649b3f5d
mov qword [rbp + 0x1c0], rax
mov qword [rbp + 0x2d0], rcx
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x1c8], rax
lea rax, [rbp + 0x1c0]
mov qword [rbp + 0x2d0], rax
mov rax, qword [rbp + 0x2d0]
movaps xmm0, xmmword [rbp + 0x430]
xorps xmm0, xmmword [rax]
movaps xmmword [rbp + 0x430], xmm0
mov r14, qword [rdi + 0x10]
lea rcx, [rbp + 0x430]
call fcn.140193da0
mov rbx, rax
movabs rcx, 0x7fffffffffffffff
mov rax, r14
xor rax, rcx
cmp rax, rbx
jb 0x140019087
mov r12, qword [rdi]
mov qword [rbp + 0x420], rdi
mov rdx, qword [rdi + 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x450], xmm0
mov r15, rbx
add r15, r14
mov edi, 0xf
lea rsi, [rbp + 0x450]
mov r13, rsi
cmp r15, 0x10
jb 0x1400184e8
mov rax, r15
or rax, 0xf
mov qword [rbp + 0x428], rdx
js 0x1400184b1
cmp rax, 0x17
mov edi, 0x16
cmovae rdi, rax
lea rcx, [rdi + 1]
cmp rdi, 0xfff
jae 0x1400184c5
call fcn.14010eb54
mov r13, rax
jmp 0x1400184da
movabs rdi, 0x7fffffffffffffff
movabs rcx, 0x8000000000000000
add rcx, 0x27
call fcn.14010eb54
lea r13, [rax + 0x27]
and r13, 0xffffffffffffffe0
mov qword [r13 - 8], rax
mov qword [rbp + 0x450], r13
mov rdx, qword [rbp + 0x428]
cmp rdx, 0x10
cmovb r12, qword [rbp + 0x420]
mov qword [rbp + 0x460], r15
mov qword [rbp + 0x468], rdi
mov rcx, r13
mov rdx, r12
mov r8, r14
call fcn.14017c490
add r14, r13
lea rdx, [rbp + 0x430]
mov rcx, r14
mov r8, rbx
call fcn.14017c490
mov byte [r13 + r15], 0
mov rax, qword [rbp + 0x460]
cmp qword [rbp + 0x468], 0x10
jb 0x140018543
mov rsi, qword [rbp + 0x450]
mov qword [rbp + 0x3e0], rsi
mov qword [rbp + 0x3e8], rax
lea rcx, [rbp + 0x490]
lea rdx, [rbp + 0x3e0]
call fcn.140019bc0
xorps xmm0, xmm0
movaps xmmword [rbp + 0x480], xmm0
movaps xmmword [rbp + 0x470], xmm0
lea rcx, [rbp - 0x50]
call fcn.1401954d0
mov r14, rax
movabs rax, 0x7fffffffffffffff
cmp r14, rax
jae 0x14001908c
cmp r14, 7
ja 0x1400185d0
mov qword [rbp + 0x480], r14
mov qword [rbp + 0x488], 7
lea r8, [r14 + r14]
lea rcx, [rbp + 0x470]
lea rdx, [rbp - 0x50]
call fcn.14017c490
lea rax, [r14*2 + 0x470]
add rax, rbp
jmp 0x140018671
mov qword [rbp + 0x488], 7
mov rax, r14
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x140019091
cmp rax, 0xb
mov esi, 0xa
cmovae rsi, rax
lea rcx, [rsi + rsi]
cmp rsi, 0x7ff
jb 0x14001863c
movabs rax, 0x7fffffffffffffec
cmp rsi, rax
jae 0x140019091
add rcx, 0x29
call fcn.14010eb54
mov r15, rax
add r15, 0x27
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x140018648
add rcx, 2
call fcn.14010eb54
mov r15, rax
mov qword [rbp + 0x470], r15
mov qword [rbp + 0x480], r14
mov qword [rbp + 0x488], rsi
lea r8, [r14 + r14]
lea rdx, [rbp - 0x50]
mov rcx, r15
call fcn.14017c490
lea rax, [r15 + r14*2]
mov word [rax], 0
lea r15, [rbp + 0x2d0]
lea r8, [rbp + 0x470]
lea r9, [rbp + 0x490]
mov rcx, r15
mov qword [rbp + 0x428], r8
call fcn.140016d40
mov rsi, qword [rbp + 0x400]
cmp qword [rbp + 0x2e8], 8
jb 0x1400186b2
mov r15, qword [rbp + 0x2d0]
mov dword [rsp + 0x20], 1
lea rcx, [rbp + 0x1c0]
mov rdx, r15
mov r8d, 0x20
mov r9d, 0x40
call fcn.1400117d0
mov rax, qword [rbp + 0x2e8]
cmp rax, 8
jb 0x140018721
mov rcx, qword [rbp + 0x2d0]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14001871c
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140019082
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14010eb98
mov qword [rbp + 0x2e0], 0
mov qword [rbp + 0x2e8], 7
mov word [rbp + 0x2d0], 0
mov rax, qword [rbp + 0x488]
cmp rax, 8
jb 0x14001878c
mov rcx, qword [rbp + 0x470]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140018787
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140019082
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14010eb98
mov rax, qword [rbp + 0x4a8]
cmp rax, 8
jb 0x1400187d8
mov rcx, qword [rbp + 0x490]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x1400187d3
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140019082
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14010eb98
mov qword [rbp + 0x4a0], 0
mov qword [rbp + 0x4a8], 7
mov word [rbp + 0x490], 0
mov rax, qword [rbp + 0x468]
cmp rax, 0x10
jb 0x14001883c
mov rcx, qword [rbp + 0x450]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140018837
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140019082
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14010eb98
mov rax, qword [rbp + 0x1c0]
movsxd rax, dword [rax + 4]
cmp dword [rbp + rax + 0x1d0], 0
jne 0x14001901d
mov r15, qword [rbp + rax + 0x208]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x2d0], xmm0
movaps xmmword [rbp + 0x2e0], xmm0
test r15, r15
je 0x1400188e2
mov rax, qword [r15 + 0x38]
mov rax, qword [rax]
test rax, rax
je 0x14001888d
mov rcx, qword [r15 + 0x50]
cmp dword [rcx], 0
jle 0x14001888d
movzx eax, byte [rax]
jmp 0x14001889b
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x30]
cmp eax, 0xffffffff
je 0x1400188e2
mov qword [rbp + 0x490], 0
mov word [rbp + 0x498], 1
mov qword [rbp + 0x450], r15
mov byte [rbp + 0x458], 1
mov byte [rbp + 0x459], al
lea rcx, [rbp + 0x2d0]
lea rdx, [rbp + 0x450]
lea r8, [rbp + 0x490]
xor r9d, r9d
call fcn.140017190
jmp 0x1400188ff
mov qword [rbp + 0x2e0], 0
mov qword [rbp + 0x2e8], 0xf
mov byte [rbp + 0x2d0], 0
lea r15, [rbp + 0x2d0]
mov rax, qword [rsi + 0x18]
cmp r15, rsi
je 0x140018960
cmp rax, 0x10
jb 0x140018949
mov rcx, qword [rsi]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140018944
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140019082
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14010eb98
movaps xmm0, xmmword [rbp + 0x2d0]
movaps xmm1, xmmword [rbp + 0x2e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x14001899e
cmp rax, 0x10
jb 0x14001899e
mov rcx, qword [rbp + 0x2d0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140018999
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140019082
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14010eb98
lea rcx, [rbp + 0x1c0]
call fcn.140013f70
movabs rax, 0x1474f4b903fa4b38
mov qword [rbp + 0x2d0], rax
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x410], rax
movabs rcx, 0x40bc6108abfdd09a
mov qword [rbp + 0x2d0], rcx
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x418], rax
movabs rax, 0x1474f4b9649b3f5d
mov qword [rbp + 0x2d0], rax
mov qword [rbp + 0x490], rcx
mov rax, qword [rbp + 0x490]
mov qword [rbp + 0x2d8], rax
mov qword [rbp + 0x490], r15
mov rax, qword [rbp + 0x490]
movaps xmm0, xmmword [rbp + 0x410]
xorps xmm0, xmmword [rax]
movaps xmmword [rbp + 0x410], xmm0
mov rsi, qword [rbp + 0x420]
mov rbx, qword [rsi + 0x10]
lea rcx, [rbp + 0x410]
call fcn.140193da0
mov r15, rax
mov rax, rbx
movabs rcx, 0x7fffffffffffffff
xor rax, rcx
cmp rax, r15
jb 0x140019096
mov r13, qword [rsi]
mov r14, qword [rsi + 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x480], xmm0
movaps xmmword [rbp + 0x470], xmm0
lea rsi, [r15 + rbx]
mov edi, 0xf
lea r12, [rbp + 0x470]
cmp rsi, 0x10
jb 0x140018aef
mov rax, rsi
or rax, 0xf
js 0x140018abb
cmp rax, 0x17
mov edi, 0x16
cmovae rdi, rax
lea rcx, [rdi + 1]
cmp rdi, 0xfff
jae 0x140018acf
call fcn.14010eb54
mov r12, rax
jmp 0x140018ae8
movabs rcx, 0x8000000000000000
movabs rdi, 0x7fffffffffffffff
add rcx, 0x27
call fcn.14010eb54
mov r12, rax
add r12, 0x27
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
mov qword [rbp + 0x470], r12
cmp r14, 0x10
mov rdx, qword [rbp + 0x420]
cmovae rdx, r13
mov qword [rbp + 0x480], rsi
mov qword [rbp + 0x488], rdi
mov rcx, r12
mov r8, rbx
call fcn.14017c490
add rbx, r12
lea rdx, [rbp + 0x410]
mov rcx, rbx
mov r8, r15
call fcn.14017c490
mov byte [r12 + rsi], 0
mov rax, qword [rbp + 0x480]
cmp qword [rbp + 0x488], 0x10
jb 0x140018b50
mov rcx, qword [rbp + 0x470]
mov qword [rbp + 0x428], rcx
mov rcx, qword [rbp + 0x428]
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], rax
lea rcx, [rbp + 0x450]
lea rdx, [rbp + 0x3f0]
call fcn.140019bc0
xorps xmm0, xmm0
movaps xmmword [rbp + 0x440], xmm0
movaps xmmword [rbp + 0x430], xmm0
lea rcx, [rbp - 0x50]
call fcn.1401954d0
mov rdi, rax
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
jae 0x14001909b
cmp rdi, 7
ja 0x140018be4
mov qword [rbp + 0x440], rdi
mov qword [rbp + 0x448], 7
lea r8, [rdi + rdi]
lea rcx, [rbp + 0x430]
lea rdx, [rbp - 0x50]
call fcn.14017c490
lea rax, [rdi*2 + 0x430]
add rax, rbp
jmp 0x140018c85
mov qword [rbp + 0x448], 7
mov rax, rdi
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x1400190a0
cmp rax, 0xb
mov esi, 0xa
cmovae rsi, rax
lea rcx, [rsi + rsi]
cmp rsi, 0x7ff
jb 0x140018c50
movabs rax, 0x7fffffffffffffec
cmp rsi, rax
jae 0x1400190a0
add rcx, 0x29
call fcn.14010eb54
mov rbx, rax
add rbx, 0x27
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140018c5c
add rcx, 2
call fcn.14010eb54
mov rbx, rax
mov qword [rbp + 0x430], rbx
mov qword [rbp + 0x440], rdi
mov qword [rbp + 0x448], rsi
lea r8, [rdi + rdi]
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.14017c490
lea rax, [rbx + rdi*2]
mov word [rax], 0
lea rdi, [rbp + 0x490]
lea r8, [rbp + 0x430]
lea r9, [rbp + 0x450]
mov rcx, rdi
call fcn.140016d40
cmp qword [rbp + 0x4a8], 8
jb 0x140018cb8
mov rdi, qword [rbp + 0x490]
mov dword [rsp + 0x20], 1
lea rcx, [rbp + 0x2d0]
mov rdx, rdi
mov r8d, 0x20
mov r9d, 0x40
call fcn.1400117d0
mov rax, qword [rbp + 0x4a8]
cmp rax, 8
jb 0x140018d27
mov rcx, qword [rbp + 0x490]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140018d22
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140019082
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14010eb98
mov qword [rbp + 0x4a0], 0
mov qword [rbp + 0x4a8], 7
mov word [rbp + 0x490], 0
mov rax, qword [rbp + 0x448]
cmp rax, 8
jb 0x140018d92
mov rcx, qword [rbp + 0x430]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140018d8d
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140019082
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14010eb98
mov rax, qword [rbp + 0x468]
cmp rax, 8
jb 0x140018dde
mov rcx, qword [rbp + 0x450]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140018dd9
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140019082
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14010eb98
mov qword [rbp + 0x460], 0
mov qword [rbp + 0x468], 7
mov word [rbp + 0x450], 0
mov rax, qword [rbp + 0x488]
cmp rax, 0x10
jb 0x140018e42
mov rcx, qword [rbp + 0x470]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140018e3d
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140019082
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14010eb98
mov rax, qword [rbp + 0x2d0]
movsxd rax, dword [rax + 4]
cmp dword [rbp + rax + 0x2e0], 0
jne 0x140018fc2
mov rdi, qword [rbp + rax + 0x318]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x490], xmm0
movaps xmmword [rbp + 0x4a0], xmm0
test rdi, rdi
je 0x140018ee8
mov rax, qword [rdi + 0x38]
mov rax, qword [rax]
test rax, rax
je 0x140018e93
mov rcx, qword [rdi + 0x50]
cmp dword [rcx], 0
jle 0x140018e93
movzx eax, byte [rax]
jmp 0x140018ea1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
cmp eax, 0xffffffff
je 0x140018ee8
mov qword [rbp + 0x450], 0
mov word [rbp + 0x458], 1
mov qword [rbp + 0x470], rdi
mov byte [rbp + 0x478], 1
mov byte [rbp + 0x479], al
lea rcx, [rbp + 0x490]
lea rdx, [rbp + 0x470]
lea r8, [rbp + 0x450]
xor r9d, r9d
call fcn.140017190
jmp 0x140018f05
mov qword [rbp + 0x4a0], 0
mov qword [rbp + 0x4a8], 0xf
mov byte [rbp + 0x490], 0
lea rcx, [rbp + 0x490]
mov rsi, qword [rbp + 0x408]
mov rax, qword [rsi + 0x18]
cmp rcx, rsi
je 0x140018f6d
cmp rax, 0x10
jb 0x140018f56
mov rcx, qword [rsi]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140018f51
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140019082
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14010eb98
movaps xmm0, xmmword [rbp + 0x490]
movaps xmm1, xmmword [rbp + 0x4a0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140018fab
cmp rax, 0x10
jb 0x140018fab
mov rcx, qword [rbp + 0x490]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140018fa6
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140019082
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14010eb98
lea rcx, [rbp + 0x2d0]
call fcn.140013f70
mov rax, qword [rbp + 0x2d0]
movsxd rax, dword [rax + 4]
lea rsi, [rbp + 0x380]
lea rcx, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rax + 0x2d0], rcx
mov rax, qword [rbp + 0x2d0]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0xb0]
mov dword [rbp + rax + 0x2cc], ecx
lea rcx, [rbp + 0x2e0]
call fcn.14000eea0
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x380], rax
mov rcx, rsi
call fcn.14010f180
mov rax, qword [rbp + 0x1c0]
movsxd rax, dword [rax + 4]
lea rsi, [rbp + 0x270]
lea rcx, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rax + 0x1c0], rcx
mov rax, qword [rbp + 0x1c0]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0xb0]
mov dword [rbp + rax + 0x1bc], ecx
lea rcx, [rbp + 0x1d0]
call fcn.14000eea0
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x270], rax
mov rcx, rsi
call fcn.14010f180
nop
add rsp, 0x538
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.14018c4a0
call fcn.140001fc0
call fcn.140001fc0
call fcn.140001a10
call fcn.140001fc0
call fcn.140001fc0
call fcn.140001a10
int3