Function at 0x140031a60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4d0]
sub rsp, 0x5d0
mov rax, qword [0x140287748]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
mov qword [rsp + 0x50], rdx
mov r13, rcx
mov qword [rsp + 0x60], rdx
xor r14d, r14d
xor edx, edx
mov r8d, 0x180
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x50]
call fcn.140024280
nop
xor edx, edx
mov r8d, 0x180
lea rcx, [rbp + 0x130]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x130]
call fcn.140024280
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x2b0]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
lea rax, [rbp + 0x2b0]
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140031b30
movabs r12, 0x7ffffffffffffffe
cmp rdi, r12
ja 0x14003204f
mov eax, 0xa
lea esi, [rax - 3]
cmp rdi, 8
jae 0x140031b92
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rsi
lea rbx, [rdi + rdi]
mov r8, rbx
lea rdx, [rbp + 0x2b0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x70], r14w
mov r14, qword [rbp - 0x78]
mov rdi, qword [rbp - 0x80]
mov r15, qword [rsp + 0x70]
xor ecx, ecx
jmp 0x140031be4
mov r14, rdi
or r14, rsi
cmp r14, r12
jbe 0x140031ba2
mov r14, r12
jmp 0x140031ba9
cmp r14, rax
cmovb r14, rax
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x70]
call fcn.1400028e0
mov r15, rax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], r14
lea rbx, [rdi + rdi]
mov r8, rbx
lea rdx, [rbp + 0x2b0]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
xor ecx, ecx
mov word [rbx + r15], cx
cmp byte [r13], 0
je 0x140031d1e
mov rax, r12
sub rax, rdi
cmp rax, 0x13
jb 0x140032055
lea rax, [rsp + 0x70]
cmp r14, 8
cmovae rax, r15
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea r13, [rdi + 0x13]
lea r12, [rbp - 0x70]
cmp r13, 7
jbe 0x140031c6f
mov rsi, r13
or rsi, 7
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x140031c49
mov rsi, rax
jmp 0x140031c56
cmp rsi, 0xa
mov eax, 0xa
cmovb rsi, rax
lea rdx, [rsi + 1]
lea rcx, [rbp - 0x70]
call fcn.1400028e0
mov r12, rax
mov qword [rbp - 0x70], rax
mov rax, qword [rsp + 0x20]
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], rsi
lea rbx, [rdi + rdi]
mov r8, rbx
mov rdx, rax
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.System32_ntdll.dll]
movups xmmword [rbx + r12], xmm0
movups xmm1, xmmword [0x1401c60e0]
movups xmmword [rbx + r12 + 0x10], xmm1
mov eax, dword [0x1401c60f0]
mov dword [rbx + r12 + 0x20], eax
movzx eax, word [0x1401c60f4]
mov word [rbx + r12 + 0x24], ax
xor eax, eax
mov word [r12 + r13*2], ax
mov r8b, 1
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.1400244f0
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140031f9b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031d14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031d14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140113d64
jmp 0x140031f9b
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movzx eax, byte [r13 + 1]
mov qword [rbp - 0x70], rcx
mov byte [rbp - 0x68], al
test al, al
je 0x140031d40
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
nop
mov rax, r12
sub rax, rdi
cmp rax, 0x13
jb 0x140032049
lea rax, [rsp + 0x70]
cmp r14, 8
cmovae rax, r15
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea r12, [rdi + 0x13]
mov rbx, rsi
lea r13, [rsp + 0x28]
cmp r12, rsi
jbe 0x140031dc7
mov rbx, r12
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
jbe 0x140031d9f
mov rbx, rax
jmp 0x140031dac
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x28]
call fcn.1400028e0
mov r13, rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + rdi]
mov qword [rsp + 0x20], rbx
mov r8, rbx
mov rdx, rax
mov rcx, r13
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.System32_ntdll.dll]
movups xmmword [rbx + r13], xmm0
movups xmm1, xmmword [0x1401c60e0]
movups xmmword [rbx + r13 + 0x10], xmm1
mov eax, dword [0x1401c60f0]
mov dword [rbx + r13 + 0x20], eax
movzx eax, word [0x1401c60f4]
mov word [rbx + r13 + 0x24], ax
xor eax, eax
mov word [r13 + r12*2], ax
mov r8b, 1
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0x130]
call fcn.1400244f0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140031e7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031e76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031e76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140113d64
lea rdi, [rsp + 0x70]
cmp r14, 8
cmovae rdi, r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea rbx, [rsp + 0x28]
cmp r12, 7
jbe 0x140031ee2
mov rsi, r12
or rsi, 7
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x140031ebf
mov rsi, rax
jmp 0x140031ecc
cmp rsi, 0xa
mov eax, 0xa
cmovb rsi, rax
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x28]
call fcn.1400028e0
mov rbx, rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], rsi
mov rsi, qword [rsp + 0x20]
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.SysWOW64_ntdll.dll]
movups xmmword [rsi + rbx], xmm0
movups xmm1, xmmword [0x1401c6108]
movups xmmword [rsi + rbx + 0x10], xmm1
mov eax, dword [0x1401c6118]
mov dword [rsi + rbx + 0x20], eax
movzx eax, word [0x1401c611c]
mov word [rsi + rbx + 0x24], ax
xor eax, eax
mov word [rbx + r12*2], ax
mov r8b, 1
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x50]
call fcn.1400244f0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140031f8b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031f85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031f85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140113d64
nop
cmp byte [rbp - 0x68], 0
je 0x140031f9b
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
lea rdx, [rbp - 0x50]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140032060
nop
lea rcx, [rbx + 0x180]
lea rdx, [rbp + 0x130]
call fcn.140032060
nop
cmp r14, 8
jb 0x140032000
lea rdx, [r14*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140031ff7
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031ff7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.140113d64
nop
lea rcx, [rbp + 0x130]
call fcn.1400243a0
nop
lea rcx, [rbp - 0x50]
call fcn.1400243a0
mov rax, rbx
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.1401140d0
lea r11, [rsp + 0x5d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001450
nop
call fcn.140001450
nop
call fcn.140001450
int3