Function at 0x140035ea0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x380
mov rbx, r9
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
mov rax, qword [0x14019ac40]
xor rax, rsp
mov qword [rsp + 0x378], rax
lea r12, [rsp + 0x270]
mov qword [rsp + 0x258], r12
movaps xmm0, xmmword [0x14016f070]
movups xmmword [rsp + 0x260], xmm0
lea rdx, [rsp + 0x258]
mov rcx, rbp
call fcn.140040450
movups xmm0, xmmword [rsp + 0x258]
movups xmmword [rsp + 0x38], xmm0
lea r8, [rsp + 0x38]
mov rcx, rsi
mov edx, 0xfde9
mov r9, rdi
call fcn.140039e00
cmp dword [rsi], 0
jne 0x1400361a7
mov rcx, rbp
mov edx, 2
call fcn.140033380
mov ebp, eax
test al, al
je 0x140035f40
xor eax, eax
jmp 0x140035f54
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140036054
mov eax, eax
add rax, qword [rdi + 8]
cmp rax, rbx
jae 0x140035f98
mov dword [rsi], 0
mov eax, dword [0x14019c710]
mov ecx, dword [0x14019dd7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x14]
jg 0x1400361df
lea rax, [0x14019a518]
mov qword [rsi + 8], rax
jmp 0x1400361a7
cmp qword [rsp + 0x260], 4
jb 0x140035fb3
mov rax, qword [rsp + 0x258]
cmp dword [rax], 0x5c3f5c5c
je 0x140035f5d
test bpl, bpl
jne 0x140035fd1
lea rdx, [rsp + 0x258]
mov rcx, rsi
call fcn.1400351a0
cmp dword [rsi], 0
jne 0x1400361a7
lea rbx, [rsp + 0x258]
mov rcx, rbx
xor edx, edx
call fcn.140032880
mov rcx, rbx
mov dl, 1
mov r8d, 2
call fcn.140033500
mov rbp, qword [rsp + 0x258]
mov rbx, qword [rsp + 0x260]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x28]
mov r8d, 2
call fcn.140030c00
cmp qword [rsp + 0x38], rbp
jne 0x140036030
cmp qword [rsp + 0x58], rbx
je 0x140036085
mov rax, qword [rsp + 0x50]
cmp rax, 3
jb 0x140036069
mov rcx, qword [rsp + 0x48]
mov dl, byte [rcx]
cmp dl, 0x5c
je 0x14003604c
cmp dl, 0x2f
jne 0x140036073
cmp byte [rcx + 1], dl
sete dl
jmp 0x140036075
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.14002e8d0
jmp 0x1400361a7
test rax, rax
je 0x140036089
mov rcx, qword [rsp + 0x48]
xor edx, edx
cmp byte [rcx + rax - 1], 0x3a
sete al
test dl, dl
jne 0x140036091
test al, al
jne 0x140036091
xor eax, eax
jmp 0x140036096
xor edx, edx
xor eax, eax
test dl, dl
je 0x140036081
mov rax, qword [rsp + 0x48]
lea r14, [rsp + 0x50]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x50], 0x5c3f5c5c
movaps xmm0, xmmword [0x14016f7b0]
movups xmmword [rsp + 0x40], xmm0
cmp byte [rax + 1], 0x3a
mov r15, qword [rsp + 0x258]
mov rbx, qword [rsp + 0x260]
jne 0x1400360ec
lea r8, [rbx + 4]
cmp r8, 0x209
jb 0x14003614f
lea rcx, [rsp + 0x38]
mov r9d, 1
mov rdx, r14
call fcn.1400291c0
jmp 0x140036154
mov dword [rsp + 0x54], 0x5c434e55
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
lea rdx, [rax + 4]
mov qword [rsp + 0x40], rdx
lea r8, [rax + rbx]
add r8, 2
cmp rcx, r8
jae 0x140036127
lea rcx, [rsp + 0x38]
mov r9d, 1
mov rdx, r14
call fcn.1400291c0
lea rbp, [rbx - 2]
cmp rbx, 2
je 0x14003614a
add r15, 2
mov rcx, qword [rsp + 0x38]
add rcx, qword [rsp + 0x40]
mov rdx, r15
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rbx, rbp
jmp 0x140036169
test rbx, rbx
je 0x140036169
mov rcx, qword [rsp + 0x38]
add rcx, qword [rsp + 0x40]
mov rdx, r15
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
add rbx, qword [rsp + 0x40]
mov qword [rsp + 0x40], rbx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x28]
mov rcx, rsi
mov edx, 0xfde9
mov r9, rdi
call fcn.140039e00
mov rcx, qword [rsp + 0x38]
cmp rcx, r14
je 0x1400361a7
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x258]
cmp rcx, r12
je 0x1400361ba
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x378]
xor rcx, rsp
call fcn.14016a260
mov rax, rsi
add rsp, 0x380
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x14019c710]
call fcn.14016a3dc
cmp dword [0x14019c710], 0xffffffff
jne 0x140035f88
lea rcx, [0x14003a600]
call fcn.14016a724
lea rcx, [0x14019c710]
call fcn.14016a37c
jmp 0x140035f88