Function at 0x18004e530
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x180087e88]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor r11d, r11d
mov qword [rbp - 0x70], rdx
lea r14d, [rcx - 0xc]
mov dword [rbp - 0x80], ecx
mov dword [rbp - 0x7c], ecx
mov ebx, r11d
mov dword [rsp + 0x70], ebx
mov r13, r8
mov dword [rsp + 0x78], r14d
mov rsi, rdx
lea r8, [0x180000000]
mov edi, ecx
mov eax, ecx
cmp ecx, r14d
jbe 0x18004ecef
mov rcx, qword [rbp - 0x70]
lea r10d, [r11 + 0x61]
mov edx, dword [rsp + 0x78]
mov r12d, dword [rsp + 0x78]
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x60], edx
add eax, 0xffffffef
mov r9d, 0x16
movabs r8, 0x7fffffffffffffff
cmp eax, 0x1b
ja case.0x18004e5ee.18
lea rdx, [0x180000000]
movzx eax, byte [rdx + rax + 0x4f080]
mov ecx, dword [rdx + rax*4 + 0x4f05c]
add rcx, rdx
jmp rcx
mov eax, 0x10d
cmp eax, 0x10d
je 0x18004e609
cmp eax, 0x8359
je 0x18004f015
jmp 0x18004e60d
mov qword [rbp - 0x78], r11
add eax, 0x824c
cmp eax, 0x10498
jbe 0x18004e5f5
mov r8d, SHSetFolderPathW
lea rdx, [rbp - 0x30]
lea rcx, [0x18007db40]
call fcn.18004bdc0
mov r15d, dword [r13]
mov rdx, rax
mov qword [rsp + 0x68], rax
mov r10d, 0x61
mov dword [rsp + 0x60], r15d
jmp 0x18004e6e3
mov r8d, 2
mov word [rbp - 0x26], r10w
lea rdx, [0x18007da8c]
lea rcx, [rbp - 0x25]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov r10d, 0x61
jmp case.0x18004e5ee.18
mov rbx, qword [r13]
mov rdi, qword [r13 + 8]
cmp rbx, rdi
je 0x18004e6d5
nop dword [rax]
mov qword [rsp + 0x58], r11
xor r9d, r9d
mov dword [rsp + 0x50], 0x12d
xor r8d, r8d
mov qword [rsp + 0x48], r11
xor edx, edx
mov qword [rsp + 0x40], r11
xor ecx, ecx
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r11
call fcn.18004d8f0
cmp eax, dword [rsi]
je 0x18004ece0
add rbx, 0x10
mov r11d, 0
cmp rbx, rdi
jne 0x18004e680
lea r10d, [r11 + 0x61]
mov ebx, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov r15d, dword [rsp + 0x60]
mov eax, dword [rbp - 0x7c]
xor r11d, r11d
dec eax
mov dword [rbp - 0x7c], eax
cmp eax, r14d
ja 0x18004e5b9
mov edi, dword [rbp - 0x80]
lea r8, [0x180000000]
lea r13d, [rdi + 0x264]
cmp edi, r13d
jae 0x18004f015
mov esi, dword [rsp + 0x78]
movaps xmmword [rsp + 0x370], xmm6
movsd xmm6, qword [rbp - 0x70]
movaps xmmword [rsp + 0x360], xmm7
movsd xmm7, qword [0x180080b18]
movaps xmmword [rsp + 0x350], xmm8
movaps xmmword [rsp + 0x340], xmm9
movaps xmmword [rsp + 0x330], xmm10
movsd xmm10, qword [0x180080b40]
movaps xmmword [rsp + 0x320], xmm11
movsd xmm11, qword [0x180080b48]
movaps xmmword [rsp + 0x310], xmm12
movaps xmmword [rsp + 0x300], xmm13
movsd xmm13, qword [0x180080b50]
cmp edi, 0xad
ja 0x18004ed53
je 0x18004efcf
lea eax, [rdi - 0x14]
cmp eax, 0x7e
ja case.0x18004e7b5.20
movzx eax, byte [r8 + rax + 0x4f0b4]
mov ecx, dword [r8 + rax*4 + 0x4f09c]
add rcx, r8
jmp rcx
cmp qword [r13 + 0x10], 0x35
jb case.0x18004e5ee.18
mov r15d, 0x56
nop dword [rax + rax]
cmp r15d, 0x6116
ja 0x18004eaab
je 0x18004e960
cmp r15d, 0x56
je 0x18004e957
cmp r15d, 0x1886
je 0x18004e821
cmp r15d, 0x30b6
je 0x18004e815
cmp r15d, 0x48e6
jne 0x18004ec58
mov qword [rbp - 0x60], r11
jmp 0x18004ec58
mov dword [rbp - 0x68], 0x36
jmp 0x18004ec58
mov esi, 0xb
mov qword [rbp - 0x38], ILRemoveLastID
cmp qword [r13 + 0x10], rsi
mov r14, r13
mov byte [rbp - 0x50], 0
cmovb rsi, qword [r13 + 0x10]
cmp qword [r13 + 0x18], 0x10
jb 0x18004e849
mov r14, qword [r13]
cmp rsi, 0xf
ja 0x18004e86c
mov r8, rsi
mov qword [rbp - 0x40], rsi
mov rdx, r14
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rsi - 0x50], 0
jmp 0x18004e8fb
cmp rsi, r8
ja 0x18004f055
mov rdi, rsi
or rdi, 0xf
cmp rdi, r8
jbe 0x18004e886
mov rdi, r8
jmp 0x18004e88e
cmp rdi, 0x16
cmovb rdi, r9
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x18004e8c7
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18004f04f
mov rcx, rax
call fcn.1800791f8
test rax, rax
je 0x18004ece8
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x18004e8d9
test rcx, rcx
je 0x18004e8d6
call fcn.1800791f8
mov rbx, rax
jmp 0x18004e8d9
mov rbx, r11
mov r8, rsi
mov qword [rbp - 0x40], rsi
mov rdx, r14
mov qword [rbp - 0x38], rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], 0
mov qword [rbp - 0x50], rbx
mov ebx, dword [rsp + 0x70]
or ebx, 2
lea rdx, [rbp - 0x50]
lea rcx, [0x180087df8]
mov dword [rsp + 0x70], ebx
call fcn.180045fa0
mov rax, qword [rbp - 0x38]
cmp rax, 0x10
jb 0x18004ec45
mov rcx, qword [rbp - 0x50]
lea rdx, [rax + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004e94d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ece8
call fcn.180079234
jmp 0x18004ec45
mov qword [rbp - 0x58], r11
jmp 0x18004ec58
mov rax, qword [r13 + 0x10]
mov qword [rbp - 0x38], ILRemoveLastID
mov byte [rbp - 0x50], 0
cmp rax, 0xb
jb 0x18004f049
add rax, 0xfffffffffffffff5
mov esi, 6
cmp rax, rsi
cmovb rsi, rax
cmp qword [r13 + 0x18], 0x10
mov rax, r13
jb 0x18004e998
mov rax, qword [r13]
lea r14, [rax + 0xb]
cmp rsi, 0xf
ja 0x18004e9bf
mov r8, rsi
mov qword [rbp - 0x40], rsi
mov rdx, r14
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rsi - 0x50], 0
jmp 0x18004ea4e
cmp rsi, r8
ja 0x18004f055
mov rdi, rsi
or rdi, 0xf
cmp rdi, r8
jbe 0x18004e9d9
mov rdi, r8
jmp 0x18004e9e1
cmp rdi, 0x16
cmovb rdi, r9
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x18004ea1a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18004f04f
mov rcx, rax
call fcn.1800791f8
test rax, rax
je 0x18004ece8
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x18004ea2c
test rcx, rcx
je 0x18004ea29
call fcn.1800791f8
mov rbx, rax
jmp 0x18004ea2c
mov rbx, r11
mov r8, rsi
mov qword [rbp - 0x40], rsi
mov rdx, r14
mov qword [rbp - 0x38], rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], 0
mov qword [rbp - 0x50], rbx
mov ebx, dword [rsp + 0x70]
or ebx, 1
lea rdx, [rbp - 0x50]
lea rcx, [0x180087e18]
mov dword [rsp + 0x70], ebx
call fcn.180045fa0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x18004eaa0
mov rcx, qword [rbp - 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ea9b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ece8
call fcn.180079234
xor r11d, r11d
mov r12d, r11d
jmp 0x18004ec48
cmp r15d, 0x7946
je 0x18004eade
cmp r15d, 0x9176
je 0x18004ead3
cmp r15d, 0xa9a6
jne 0x18004ec58
mov byte [rbp - 0x78], 1
jmp 0x18004f015
call qword [sym.imp.SHELL32.dll_SHLoadNonloadedIconOverlayIdentifiers]
jmp 0x18004ec45
mov rax, qword [r13 + 0x10]
mov qword [rbp - 0x38], ILRemoveLastID
mov byte [rbp - 0x50], 0
cmp rax, 0x11
jb 0x18004f049
add rax, 0xffffffffffffffef
mov esi, 0x24
cmp rax, rsi
cmovb rsi, rax
cmp qword [r13 + 0x18], 0x10
mov rax, r13
jb 0x18004eb16
mov rax, qword [r13]
lea r14, [rax + 0x11]
cmp rsi, 0xf
ja 0x18004eb3d
mov r8, rsi
mov qword [rbp - 0x40], rsi
mov rdx, r14
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rsi - 0x50], 0
jmp 0x18004ebcc
cmp rsi, r8
ja 0x18004f055
mov rdi, rsi
or rdi, 0xf
cmp rdi, r8
jbe 0x18004eb57
mov rdi, r8
jmp 0x18004eb5f
cmp rdi, 0x16
cmovb rdi, r9
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x18004eb98
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18004f04f
mov rcx, rax
call fcn.1800791f8
test rax, rax
je 0x18004ece8
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x18004ebaa
test rcx, rcx
je 0x18004eba7
call fcn.1800791f8
mov rbx, rax
jmp 0x18004ebaa
mov rbx, r11
mov r8, rsi
mov qword [rbp - 0x40], rsi
mov rdx, r14
mov qword [rbp - 0x38], rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], 0
mov qword [rbp - 0x50], rbx
mov ebx, dword [rsp + 0x70]
or ebx, 4
lea rdx, [rbp - 0x50]
lea rcx, [0x180087dd8]
mov dword [rsp + 0x70], ebx
call fcn.180045fa0
mov rax, qword [rbp - 0x38]
cmp rax, 0x10
jb 0x18004ec1f
mov rcx, qword [rbp - 0x50]
lea rdx, [rax + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ec1a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ece8
call fcn.180079234
mov r8, qword [rbp - 0x60]
lea rax, [rbp - 0x20]
mov edx, dword [rbp - 0x68]
mov r9d, r12d
mov rcx, qword [rbp - 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
xor r11d, r11d
movabs r8, 0x7fffffffffffffff
mov r9d, 0x16
add r15d, 0x1830
cmp r15d, 0xc180
jbe 0x18004e7d0
mov rsi, qword [rbp - 0x70]
mov r10d, 0x61
mov r14d, dword [rsp + 0x78]
jmp case.0x18004e5ee.18
movzx eax, word [0x180080030]
mov word [rbp - 0x2c], ax
mov eax, dword [str.Thre]
mov dword [rbp - 0x2a], eax
movzx eax, byte [0x180080038]
mov byte [rbp - 0x26], al
jmp case.0x18004e5ee.18
movzx eax, word [0x18008003c]
lea rdx, [0x180080040]
mov word [rbp - 0x30], ax
lea rcx, [rbp - 0x2e]
movzx eax, byte [0x18008003e]
mov r8d, 3
mov byte [rbp - 0x2e], al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov r10d, 0x61
jmp case.0x18004e5ee.18
mov rax, rbx
jmp 0x18004f019
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, qword [rbp - 0x70]
mov r15d, dword [rsp + 0x78]
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x60], r15d
jmp 0x18004e701
xorps xmm6, xmm6
mov esi, r11d
jmp case.0x18004e7b5.20
mov rcx, qword [0x180087fc8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x18004efae
mov rcx, qword [0x180087fc8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, r15d
lea rcx, str.vim.HealthUpdateManager
call fcn.1800790c0
jmp 0x18004efae
mov byte [rbp - 0x78], 0
jmp case.0x18004e7b5.20
mov eax, edi
sub eax, 0xc5
je 0x18004ed9e
sub eax, 0x33
je 0x18004ed8a
sub eax, 0x33
je case.0x18004e7b5.24
sub eax, 0x33
je 0x18004ed7f
cmp eax, 0x33
jne case.0x18004e7b5.20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthread]
jmp 0x18004efae
dec dword [0x180087fe0]
jmp case.0x18004e7b5.20
mov edx, r15d
lea rcx, str.OnChallengePlatform
call fcn.1800790c0
jmp 0x18004efae
movd xmm9, r15d
lea eax, [r15 + 1]
cvtdq2pd xmm9, xmm9
movd xmm12, eax
mulsd xmm9, xmm13
cvtdq2pd xmm12, xmm12
cvttsd2si r12d, xmm9
mulsd xmm12, xmm13
movd xmm8, r12d
cvtdq2pd xmm8, xmm8
comisd xmm12, xmm8
jbe 0x18004ef9c
nop word [rax + rax]
mov r15d, 0x114
nop word [rax + rax]
mov eax, r15d
sub eax, 0x114
je 0x18004ef49
cmp eax, 1
jne 0x18004ef67
movaps xmm0, xmm8
subsd xmm0, xmm9
mulsd xmm0, xmm10
divsd xmm0, xmm11
cvttsd2si r14d, xmm0
cmp r14d, esi
jle 0x18004ef67
mov edi, 0x102
nop dword [rax]
mov eax, edi
sub eax, 0x102
je 0x18004ef21
sub eax, 0x52
je 0x18004eefc
sub eax, 0x52
je 0x18004ee99
sub eax, 0x52
je 0x18004ee6b
cmp eax, 0x52
jne 0x18004ef38
mov rcx, qword [0x180087fb8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x18004ef33
movsd xmm1, qword [0x180087fd8]
mov rcx, qword [0x180087fc0]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm7
addsd xmm1, xmm0
movsd qword [0x180087fd8], xmm1
call rdx
jmp 0x18004ef33
cmp esi, 0x64
jne 0x18004ef38
mov ebx, 0xfd
cmp ebx, 0xfd
je 0x18004eec6
cmp ebx, 0x3c49
jne 0x18004eeec
mov rcx, qword [0x180087fb0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x18004eeec
mov rcx, qword [0x180087fb0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movsd xmm0, qword [0x180087fd0]
addsd xmm0, xmm6
movsd qword [0x180087fd0], xmm0
add ebx, 0x3b4c
cmp ebx, 0x7698
jbe 0x18004eea7
jmp 0x18004ef33
movsd xmm1, qword [0x180087fd8]
movd xmm0, esi
mov esi, r14d
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm7
subsd xmm1, xmm0
movsd qword [0x180087fd8], xmm1
jmp 0x18004ef38
mov rcx, qword [0x180087fb8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, qword [rsp + 0x68]
add edi, 0x52
cmp edi, 0x29c
jb 0x18004ee30
jmp 0x18004ef67
xor edx, edx
mov dword [rsp + 0x78], r12d
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x26]
call fcn.1800634d0
movq xmm0, rax
addsd xmm6, xmm0
mov rdx, qword [rsp + 0x68]
inc r15d
cmp r15d, 0x116
jb 0x18004edf0
inc r12d
movd xmm8, r12d
cvtdq2pd xmm8, xmm8
comisd xmm12, xmm8
ja 0x18004ede0
mov edi, dword [rbp - 0x80]
mov r15d, dword [rsp + 0x60]
mov rcx, qword [0x180087fc8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, qword [rsp + 0x68]
add edi, 0x33
lea r8, [0x180000000]
mov dword [rbp - 0x80], edi
mov r11d, 0
cmp edi, r13d
jb 0x18004e783
movaps xmm12, xmmword [rsp + 0x310]
movaps xmm11, xmmword [rsp + 0x320]
movaps xmm10, xmmword [rsp + 0x330]
movaps xmm9, xmmword [rsp + 0x340]
movaps xmm8, xmmword [rsp + 0x350]
movaps xmm7, xmmword [rsp + 0x360]
movaps xmm6, xmmword [rsp + 0x370]
movaps xmm13, xmmword [rsp + 0x300]
mov rax, qword [rbp - 0x78]
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.180079740
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.180060f50
int3
call fcn.180060dd0
int3
call fcn.180060f10
int3