Function at 0x140029010
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 r14, rdx
mov rsi, rcx
mov rax, qword [0x1402f4538]
xor rax, rsp
mov qword [rsp + 0x378], rax
lea r12, [rsp + 0x270]
mov qword [rsp + 0x258], r12
mov qword [rsp + 0x260], 0
mov qword [rsp + 0x268], 0x104
lea rdx, [rsp + 0x258]
mov rcx, r14
call fcn.1400209c0
mov rax, qword [rsp + 0x260]
cmp rax, 4
jb 0x1400290af
mov rcx, qword [rsp + 0x258]
cmp dword [rcx], 0x2f3f2f2f
jne 0x1400290af
lea rcx, [rsp + 0x258]
mov edx, 3
call fcn.140025480
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x258]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x38]
mov rcx, rsi
mov edx, 0xfde9
mov r9, rdi
call fcn.14002cc90
cmp dword [rsi], 0
jne 0x140029323
xor r15d, r15d
mov rcx, r14
xor edx, edx
call fcn.140026030
mov ebp, eax
test al, al
jne 0x140029107
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400291ed
mov r15d, eax
add r15, qword [rdi + 8]
cmp r15, rbx
jae 0x14002914b
mov dword [rsi], 0
mov eax, dword [0x1402f5d00]
mov ecx, dword [0x1402f6910]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002935b
lea rax, str._4__
mov qword [rsi + 8], rax
jmp 0x140029323
cmp qword [rsp + 0x260], 4
jb 0x140029166
mov rax, qword [rsp + 0x258]
cmp dword [rax], 0x5c3f5c5c
je 0x140029110
test bpl, bpl
jne 0x140029184
lea rdx, [rsp + 0x258]
mov rcx, rsi
call fcn.140027de0
cmp dword [rsi], 0
jne 0x140029323
lea rbx, [rsp + 0x258]
mov rcx, rbx
mov edx, 3
call fcn.140025480
mov rcx, rbx
mov dl, 1
mov r8d, 3
call fcn.140026190
movups xmm0, xmmword [rsp + 0x258]
movups xmmword [rsp + 0x28], xmm0
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x28]
xor r8d, r8d
call fcn.140023dd0
mov rax, qword [rsp + 0x50]
cmp rax, 3
jb 0x140029202
mov rcx, qword [rsp + 0x48]
movzx edx, byte [rcx]
cmp edx, 0x5c
je 0x1400291e5
cmp edx, 0x2f
jne 0x140029207
cmp byte [rcx + 1], dl
sete dl
jmp 0x140029209
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.1400715f0
jmp 0x140029323
mov rcx, qword [rsp + 0x48]
xor edx, edx
xor r8d, r8d
cmp byte [rcx + rax - 1], 0x3a
cmove r8, rcx
test dl, dl
cmovne r8, rcx
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], 0x208
mov dword [rsp + 0x50], 0x5c3f5c5c
mov qword [rsp + 0x40], 4
cmp byte [r8 + 1], 0x3a
jne 0x140029278
mov r15, qword [rsp + 0x258]
mov r14, qword [rsp + 0x260]
lea r8, [r14 + 4]
cmp r8, 0x209
jb 0x1400292bf
lea rcx, [rsp + 0x38]
mov r9d, 1
mov rdx, rbx
call fcn.14001cd30
jmp 0x1400292d0
mov r15, qword [rsp + 0x258]
mov rax, qword [rsp + 0x260]
mov dword [rsp + 0x54], 0x5c434e55
mov qword [rsp + 0x40], 8
lea r14, [rax - 2]
lea r8, [rax + 6]
cmp r8, 0x209
jb 0x1400292c6
lea rcx, [rsp + 0x38]
mov r9d, 1
mov rdx, rbx
call fcn.14001cd30
jmp 0x1400292cc
test r14, r14
jne 0x1400292d0
jmp 0x1400292e5
cmp rax, 2
je 0x1400292e5
add r15, 2
mov rcx, qword [rsp + 0x38]
add rcx, qword [rsp + 0x40]
mov rdx, r15
mov r8, r14
call fcn.140242bf0
add r14, qword [rsp + 0x40]
mov qword [rsp + 0x40], r14
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x28]
mov rcx, rsi
mov edx, 0xfde9
mov r9, rdi
call fcn.14002cc90
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x140029323
call qword [0x1402f0bf8]
mov rcx, qword [rsp + 0x258]
cmp rcx, r12
je 0x140029336
call qword [0x1402f0bf8]
mov rcx, qword [rsp + 0x378]
xor rcx, rsp
call fcn.140241350
mov rax, rsi
add rsp, 0x380
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1402f5d00]
call fcn.14024119c
cmp dword [0x1402f5d00], 0xffffffff
jne 0x14002913b
lea rcx, [fcn.1400039b0]
call fcn.140241370
lea rcx, [0x1402f5d00]
call fcn.140241204
jmp 0x14002913b