Function at 0x1400c75e0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x178]
sub rsp, 0x278
mov rax, qword [0x1401674b8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, rcx
lea rcx, [rsp + 0x20]
call fcn.1400c43a0
mov rdx, rax
mov rcx, r15
call fcn.1400c6ea0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400c762b
call fcn.1400443e0
cmp dword [r15 + 8], 1
jg 0x1400c7917
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400c7917
mov qword [rsp + 0x298], rbx
mov qword [rsp + 0x2a0], rsi
mov qword [rsp + 0x2a8], rdi
mov qword [rsp + 0x260], r14
xor r14d, r14d
mov edx, r14d
mov ecx, r14d
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x2c], ecx
mov qword [rsp + 0x20], r14
cmp word [rsp + 0x40], r14w
je 0x1400c7703
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], cx
jne 0x1400c76b6
inc ebx
test ebx, ebx
jle 0x1400c76d9
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.1400195a0
mov ecx, dword [rsp + 0x2c]
mov edx, dword [rsp + 0x28]
lea eax, [rbx + rdx]
mov dword [rsp + 0x28], eax
cmp eax, ecx
jle 0x1400c76ee
lea rcx, [rsp + 0x20]
call fcn.140019200
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
movsxd r8, ebx
add r8, r8
call fcn.140032f60
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14009f7b0
mov rbx, rax
cmp r15, rax
je 0x1400c7742
mov rcx, qword [r15]
test rcx, rcx
je 0x1400c7727
call fcn.1400443e0
mov rcx, qword [rbx]
mov qword [r15], rcx
mov qword [rbx], r14
mov eax, dword [rbx + 8]
mov dword [r15 + 8], eax
mov eax, dword [rbx + 0xc]
mov dword [r15 + 0xc], eax
mov qword [rbx + 8], r14
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400c7751
call fcn.1400443e0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400c7760
call fcn.1400443e0
mov r8d, 1
lea rdx, [0x140135a88]
mov rcx, r15
call fcn.14001cb90
mov r9d, 0x80
mov qword [rsp + 0x20], r14
mov ebx, r14d
mov dword [rsp + 0x2c], r14d
cmp r9d, ebx
mov rdi, r14
mov esi, r14d
jle 0x1400c77ad
mov edx, ebx
mov ebx, r9d
mov dword [rsp + 0x28], ebx
cmp r9d, esi
jle 0x1400c77f6
lea rcx, [rsp + 0x20]
call fcn.140019200
jmp 0x1400c77e9
jge 0x1400c77f6
mov eax, ebx
sub eax, r9d
je 0x1400c77f6
sub ebx, eax
mov ecx, ebx
sub ecx, r9d
je 0x1400c77db
movsxd r8, ecx
add eax, r9d
movsxd rcx, eax
add r8, r8
movsxd rax, r9d
lea rdx, [rdi + rcx*2]
lea rcx, [rdi + rax*2]
call fcn.14011194e
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], ebx
call fcn.1400193a0
mov rdi, qword [rsp + 0x20]
mov ebx, dword [rsp + 0x28]
mov esi, dword [rsp + 0x2c]
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r9d, eax
test eax, eax
je 0x1400c7894
cmp eax, ebx
jae 0x1400c7791
inc r9d
cmp r9d, ebx
jle 0x1400c7876
mov qword [rsp + 0x270], r12
mov r12d, r9d
sub r12d, ebx
mov qword [rsp + 0x268], r13
movsxd r13, ebx
mov ebx, r9d
mov dword [rsp + 0x28], ebx
cmp r9d, esi
jle 0x1400c7853
mov edx, r13d
lea rcx, [rsp + 0x20]
call fcn.140019200
mov ebx, dword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
movsxd r8, r12d
lea rcx, [rdi + r13*2]
add r8, r8
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r13, qword [rsp + 0x268]
mov r12, qword [rsp + 0x270]
jmp 0x1400c78bf
jge 0x1400c78bf
je 0x1400c78bf
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], r9d
call fcn.1400193a0
mov ebx, dword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
jmp 0x1400c78bf
mov ebx, r14d
test esi, esi
jns 0x1400c78b6
mov dword [rsp + 0x28], ebx
je 0x1400c78b6
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400195a0
mov ebx, dword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x1400c78bf
mov word [rdi], r14w
mov rsi, qword [rsp + 0x2a0]
test ebx, ebx
je 0x1400c78cf
lea r14d, [rbx - 1]
mov r8d, r14d
mov rdx, rdi
mov rcx, r15
call fcn.14001cc30
mov r14, qword [rsp + 0x260]
mov rbx, qword [rsp + 0x298]
test rdi, rdi
je 0x1400c78fa
mov rcx, rdi
call fcn.1400443e0
mov r8d, 1
lea rdx, [0x140135a88]
mov rcx, r15
call fcn.14001cb90
mov rdi, qword [rsp + 0x2a8]
mov rax, r15
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14010f980
add rsp, 0x278
pop r15
pop rbp
ret