Function at 0x1400d7330
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x178]
sub rsp, 0x278
mov rax, qword [0x14035d6e8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, rcx
lea rcx, [rsp + 0x20]
call fcn.1400d40f0
mov rdx, rax
mov rcx, r15
call fcn.1400d6bf0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400d737b
call fcn.14004db90
cmp dword [r15 + 8], 1
jg 0x1400d7667
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 0x1400d7667
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 0x1400d7453
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], cx
jne 0x1400d7406
inc ebx
test ebx, ebx
jle 0x1400d7429
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.14001c970
mov ecx, dword [rsp + 0x2c]
mov edx, dword [rsp + 0x28]
lea eax, [rbx + rdx]
mov dword [rsp + 0x28], eax
cmp eax, ecx
jle 0x1400d743e
lea rcx, [rsp + 0x20]
call fcn.14001c580
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
movsxd r8, ebx
add r8, r8
call fcn.140034a80
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1400b1450
mov rbx, rax
cmp r15, rax
je 0x1400d7492
mov rcx, qword [r15]
test rcx, rcx
je 0x1400d7477
call fcn.14004db90
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 0x1400d74a1
call fcn.14004db90
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400d74b0
call fcn.14004db90
mov r8d, 1
lea rdx, [0x14027cef8]
mov rcx, r15
call fcn.14001ecb0
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 0x1400d74fd
mov edx, ebx
mov ebx, r9d
mov dword [rsp + 0x28], ebx
cmp r9d, esi
jle 0x1400d7546
lea rcx, [rsp + 0x20]
call fcn.14001c580
jmp 0x1400d7539
jge 0x1400d7546
mov eax, ebx
sub eax, r9d
je 0x1400d7546
sub ebx, eax
mov ecx, ebx
sub ecx, r9d
je 0x1400d752b
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.1402517fc
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], ebx
call fcn.14001c690
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 0x1400d75e4
cmp eax, ebx
jae 0x1400d74e1
inc r9d
cmp r9d, ebx
jle 0x1400d75c6
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 0x1400d75a3
mov edx, r13d
lea rcx, [rsp + 0x20]
call fcn.14001c580
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 0x1400d760f
jge 0x1400d760f
je 0x1400d760f
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], r9d
call fcn.14001c690
mov ebx, dword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
jmp 0x1400d760f
mov ebx, r14d
test esi, esi
jns 0x1400d7606
mov dword [rsp + 0x28], ebx
je 0x1400d7606
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001c970
mov ebx, dword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x1400d760f
mov word [rdi], r14w
mov rsi, qword [rsp + 0x2a0]
test ebx, ebx
je 0x1400d761f
lea r14d, [rbx - 1]
mov r8d, r14d
mov rdx, rdi
mov rcx, r15
call fcn.14001ed50
mov r14, qword [rsp + 0x260]
mov rbx, qword [rsp + 0x298]
test rdi, rdi
je 0x1400d764a
mov rcx, rdi
call fcn.14004db90
mov r8d, 1
lea rdx, [0x14027cef8]
mov rcx, r15
call fcn.14001ecb0
mov rdi, qword [rsp + 0x2a8]
mov rax, r15
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14024f8b0
add rsp, 0x278
pop r15
pop rbp
ret