Function at 0x1801d13d0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc60]
sub rsp, 0xd60
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xdb8], rbx
mov rax, qword [0x18032a080]
xor rax, rsp
mov qword [rbp + 0xc50], rax
mov rbx, r8
mov r15, rdx
mov r12, rcx
cmp qword [rdx + 0x10], 0
je 0x1801d1c52
cmp qword [r8 + 0x50], 0
je 0x1801d1c52
mov r14, qword [r8 + 0x10]
test r14, r14
je 0x1801d1c52
cmp qword [r8 + 0x30], 0
je 0x1801d1c52
cmp qword [r8 + 0x70], 0
je 0x1801d1c52
cmp qword [r8 + 0x90], 0
je 0x1801d1c52
lea rsi, [r8 + 0x60]
mov r9, rsi
mov r10, qword [rsi + 0x18]
cmp r10, 8
jb 0x1801d1470
mov r9, qword [rsi]
mov r11, qword [rsi + 0x10]
mov edx, 1
cmp r11, rdx
jne 0x1801d14a5
mov r8d, edx
lea rcx, [0x1802729b0]
sub r9, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r9], ax
jne 0x1801d14a5
add rcx, 2
sub r8, rdx
jne 0x1801d1490
jmp 0x1801d14e8
mov r8, rsi
cmp r10, 8
jb 0x1801d14b1
mov r8, qword [rsi]
cmp r11, rdx
jne 0x1801d1c52
lea rcx, [0x18027bf8c]
sub r8, rcx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x1801d1c52
add rcx, 2
sub rdx, 1
jne 0x1801d14d0
mov rdi, qword [r12]
add rdi, 8
cmp rdi, rbx
je 0x1801d150d
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1801d1502
mov rdx, qword [rbx]
mov r8, r14
mov rcx, rdi
call fcn.180007110
lea r8, [rbx + 0x20]
lea rcx, [rdi + 0x20]
cmp rcx, r8
je 0x1801d1530
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1801d1527
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
call fcn.180007110
lea r14, [rbx + 0x40]
lea rcx, [rdi + 0x40]
cmp rcx, r14
je 0x1801d1553
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x1801d154a
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
call fcn.180007110
lea rcx, [rdi + 0x60]
cmp rcx, rsi
je 0x1801d1572
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1801d1569
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
call fcn.180007110
lea r8, [rbx + 0x80]
lea rcx, [rdi + 0x80]
cmp rcx, r8
je 0x1801d159b
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1801d1592
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
call fcn.180007110
lea r8, [rbx + 0xa0]
lea rcx, [rdi + 0xa0]
cmp rcx, r8
je 0x1801d15c4
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1801d15bb
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
call fcn.180007110
lea rdx, [rbx + 0xc0]
lea rcx, [rdi + 0xc0]
cmp rcx, rdx
je 0x1801d15e3
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
call fcn.1801d1c90
mov rax, qword [r12]
xor r13d, r13d
mov qword [rax + 0x128], r13
mov rdx, r15
lea rcx, [rbp - 0x48]
call fcn.180007b10
nop
lea rcx, [rbp - 0x48]
call fcn.1800f3e40
test al, al
jne 0x1801d1614
lea rcx, [rbp - 0x48]
call fcn.1800f5040
lea rcx, [rbp - 0x48]
call fcn.1800f3e40
mov rbx, 0xffffffffffffffff
lea r15, [0x18032a858]
lea rcx, [0x180332f60]
test al, al
jne 0x1801d175f
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x28], rcx
mov rcx, qword [0x180332f60]
test rcx, rcx
je 0x1801d1655
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r8, qword [0x18032a868]
test r8, r8
je 0x1801d1679
mov rdx, r15
cmp qword [0x18032a870], 8
cmovae rdx, qword [0x18032a858]
jmp 0x1801d173f
xor edx, edx
mov r8d, 0x20c
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x10]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1801d1749
mov word [rbp + 0x1fa], r13w
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x410]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x208
lea rdx, [rbp + 0x410]
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [rax - 1]
cmp ecx, 0x207
ja 0x1801d1724
mov eax, eax
add rax, rax
cmp rax, 0x412
jae 0x1801d1c82
mov word [rbp + rax + 0x410], r13w
lea rax, [rbp + 0x410]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1801d1710
lea rdx, [rbp + 0x410]
jmp 0x1801d173f
lea rax, [rbp - 0x10]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1801d1730
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x48]
call fcn.180007110
nop
mov rcx, qword [0x180332f60]
test rcx, rcx
je 0x1801d175b
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x28], r13
mov rcx, qword [r12]
add rcx, 0x138
lea rax, [rbp - 0x48]
cmp rcx, rax
je 0x1801d178a
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
call fcn.180007110
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x180291a20]
movdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x30], r13w
mov r8d, 8
lea rdx, str.download
lea rcx, [rsp + 0x30]
call fcn.180007110
nop
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x50]
call fcn.1800f8180
mov rdi, rax
lea rax, [rbp - 0x48]
cmp rax, rdi
je 0x1801d1806
lea rcx, [rbp - 0x48]
call fcn.180007090
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 7
mov word [rdi], r13w
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1801d184b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801d1846
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801d1846
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r13w
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1801d18a4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801d189f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801d189f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r13w
mov r8, rsi
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x70]
call fcn.1800f8180
mov rdi, rax
lea rax, [rbp - 0x48]
cmp rax, rdi
je 0x1801d18fd
lea rcx, [rbp - 0x48]
call fcn.180007090
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 7
mov word [rdi], r13w
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1801d1941
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801d193c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801d193c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r13w
lea rcx, [rbp - 0x48]
call fcn.1800f3e40
test al, al
jne 0x1801d196a
lea rcx, [rbp - 0x48]
call fcn.1800f5040
lea rcx, [rbp - 0x48]
call fcn.1800f3e40
test al, al
jne 0x1801d1aa4
mov qword [rbp - 0x20], r13
lea rax, [0x180332f60]
mov qword [rbp - 0x20], rax
mov rcx, qword [0x180332f60]
test rcx, rcx
je 0x1801d199d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r8, qword [0x18032a868]
test r8, r8
je 0x1801d19c1
cmp qword [0x18032a870], 8
cmovae r15, qword [0x18032a858]
mov rdx, r15
jmp 0x1801d1a84
xor edx, edx
mov r8d, 0x20c
lea rcx, [rbp + 0x200]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x200]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1801d1a8e
mov word [rbp + 0x40a], r13w
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x830]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x208
lea rdx, [rbp + 0x830]
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [rax - 1]
cmp ecx, 0x207
ja 0x1801d1a69
mov eax, eax
add rax, rax
cmp rax, 0x412
jae 0x1801d1c7c
mov word [rbp + rax + 0x830], r13w
lea rax, [rbp + 0x830]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1801d1a56
lea rdx, [rbp + 0x830]
jmp 0x1801d1a81
lea rax, [rbp + 0x200]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1801d1a70
lea rdx, [rbp + 0x200]
mov r8, rbx
lea rcx, [rbp - 0x48]
call fcn.180007110
nop
mov rcx, qword [0x180332f60]
test rcx, rcx
je 0x1801d1aa0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x20], r13
mov rcx, qword [r12]
add rcx, 0x158
lea rax, [rbp - 0x48]
cmp rcx, rax
je 0x1801d1acf
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
call fcn.180007110
mov r8, r14
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x70]
call fcn.1800f8180
mov rbx, rax
lea rax, [rbp - 0x48]
cmp rax, rbx
je 0x1801d1b13
lea rcx, [rbp - 0x48]
call fcn.180007090
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x1801d1b56
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801d1b51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801d1b51
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r13w
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, rdx
sub rax, rcx
cmp rax, 0x10
jb 0x1801d1bae
lea rdi, [rcx + 0x10]
mov qword [rbp - 0x38], rdi
lea rbx, [rbp - 0x48]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x48]
lea rcx, [rbx + rcx*2]
mov r8d, 0x20
lea rdx, str..NewVersion.data
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r13w
jmp 0x1801d1bcc
mov qword [rsp + 0x20], InitCommonControls
lea r9, str..NewVersion.data
mov edx, InitCommonControls
lea rcx, [rbp - 0x48]
call fcn.180007c90
mov rcx, qword [r12]
add rcx, 0x100
mov r8b, 1
lea rdx, [rbp - 0x48]
call fcn.1800fc600
mov rcx, qword [r12]
mov byte [rcx], al
mov rax, qword [r12]
mov rcx, qword [rax + 0x130]
test rcx, rcx
je 0x1801d1bfd
mov byte [rcx + 8], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1801d1c40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801d1c3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801d1c3b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r13w
mov rcx, qword [rbp + 0xc50]
xor rcx, rsp
call fcn.18022a7d0
mov rbx, qword [rsp + 0xdb8]
add rsp, 0xd60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18022ae28
nop
call fcn.18022ae28
int3