Function at 0x140031830
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 [0x14030d6e8]
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.1400242a0
nop
xor edx, edx
mov r8d, 0x180
lea rcx, [rbp + 0x130]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x130]
call fcn.1400242a0
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 0x140031900
movabs r12, 0x7ffffffffffffffe
cmp rdi, r12
ja 0x140031e1f
mov eax, 0xa
lea esi, [rax - 3]
cmp rdi, 8
jae 0x140031962
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 0x1400319b4
mov r14, rdi
or r14, rsi
cmp r14, r12
jbe 0x140031972
mov r14, r12
jmp 0x140031979
cmp r14, rax
cmovb r14, rax
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x70]
call fcn.1400028c0
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 0x140031aee
mov rax, r12
sub rax, rdi
cmp rax, 0x13
jb 0x140031e25
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 0x140031a3f
mov rsi, r13
or rsi, 7
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x140031a19
mov rsi, rax
jmp 0x140031a26
cmp rsi, 0xa
mov eax, 0xa
cmovb rsi, rax
lea rdx, [rsi + 1]
lea rcx, [rbp - 0x70]
call fcn.1400028c0
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 [0x1402ed9c0]
movups xmmword [rbx + r12 + 0x10], xmm1
mov eax, dword [0x1402ed9d0]
mov dword [rbx + r12 + 0x20], eax
movzx eax, word [0x1402ed9d4]
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.140024510
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140031d6b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031ae4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031ae4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140110974
jmp 0x140031d6b
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 0x140031b10
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
nop
mov rax, r12
sub rax, rdi
cmp rax, 0x13
jb 0x140031e19
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 0x140031b97
mov rbx, r12
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
jbe 0x140031b6f
mov rbx, rax
jmp 0x140031b7c
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x28]
call fcn.1400028c0
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 [0x1402ed9c0]
movups xmmword [rbx + r13 + 0x10], xmm1
mov eax, dword [0x1402ed9d0]
mov dword [rbx + r13 + 0x20], eax
movzx eax, word [0x1402ed9d4]
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.140024510
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140031c4b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031c46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031c46
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140110974
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 0x140031cb2
mov rsi, r12
or rsi, 7
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x140031c8f
mov rsi, rax
jmp 0x140031c9c
cmp rsi, 0xa
mov eax, 0xa
cmovb rsi, rax
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x28]
call fcn.1400028c0
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 [0x1402ed9e8]
movups xmmword [rsi + rbx + 0x10], xmm1
mov eax, dword [0x1402ed9f8]
mov dword [rsi + rbx + 0x20], eax
movzx eax, word [0x1402ed9fc]
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.140024510
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140031d5b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031d55
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031d55
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140110974
nop
cmp byte [rbp - 0x68], 0
je 0x140031d6b
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.140031e30
nop
lea rcx, [rbx + 0x180]
lea rdx, [rbp + 0x130]
call fcn.140031e30
nop
cmp r14, 8
jb 0x140031dd0
lea rdx, [r14*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140031dc7
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031dc7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.140110974
nop
lea rcx, [rbp + 0x130]
call fcn.1400243c0
nop
lea rcx, [rbp - 0x50]
call fcn.1400243c0
mov rax, rbx
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.140110ce0
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.1400013e0
nop
call fcn.1400013e0
nop
call fcn.1400013e0
int3