Function at 0x1400d7af0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x178]
sub rsp, 0x278
mov rax, qword [0x14035e6e8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, rcx
lea rcx, [rsp + 0x20]
call fcn.1400d4460
mov rdx, rax
mov rcx, r15
call fcn.1400d73b0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400d7b3b
call fcn.14004dcf0
cmp dword [r15 + 8], 1
jg 0x1400d7e27
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 0x1400d7e27
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 0x1400d7c13
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], cx
jne 0x1400d7bc6
inc ebx
test ebx, ebx
jle 0x1400d7be9
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.14001ca50
mov ecx, dword [rsp + 0x2c]
mov edx, dword [rsp + 0x28]
lea eax, [rbx + rdx]
mov dword [rsp + 0x28], eax
cmp eax, ecx
jle 0x1400d7bfe
lea rcx, [rsp + 0x20]
call fcn.14001c660
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
movsxd r8, ebx
add r8, r8
call fcn.140034be0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1400b17b0
mov rbx, rax
cmp r15, rax
je 0x1400d7c52
mov rcx, qword [r15]
test rcx, rcx
je 0x1400d7c37
call fcn.14004dcf0
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 0x1400d7c61
call fcn.14004dcf0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400d7c70
call fcn.14004dcf0
mov r8d, 1
lea rdx, [0x14027df78]
mov rcx, r15
call fcn.14001ed90
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 0x1400d7cbd
mov edx, ebx
mov ebx, r9d
mov dword [rsp + 0x28], ebx
cmp r9d, esi
jle 0x1400d7d06
lea rcx, [rsp + 0x20]
call fcn.14001c660
jmp 0x1400d7cf9
jge 0x1400d7d06
mov eax, ebx
sub eax, r9d
je 0x1400d7d06
sub ebx, eax
mov ecx, ebx
sub ecx, r9d
je 0x1400d7ceb
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.140251fd4
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], ebx
call fcn.14001c770
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 0x1400d7da4
cmp eax, ebx
jae 0x1400d7ca1
inc r9d
cmp r9d, ebx
jle 0x1400d7d86
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 0x1400d7d63
mov edx, r13d
lea rcx, [rsp + 0x20]
call fcn.14001c660
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 0x1400d7dcf
jge 0x1400d7dcf
je 0x1400d7dcf
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], r9d
call fcn.14001c770
mov ebx, dword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
jmp 0x1400d7dcf
mov ebx, r14d
test esi, esi
jns 0x1400d7dc6
mov dword [rsp + 0x28], ebx
je 0x1400d7dc6
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001ca50
mov ebx, dword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x1400d7dcf
mov word [rdi], r14w
mov rsi, qword [rsp + 0x2a0]
test ebx, ebx
je 0x1400d7ddf
lea r14d, [rbx - 1]
mov r8d, r14d
mov rdx, rdi
mov rcx, r15
call fcn.14001ee30
mov r14, qword [rsp + 0x260]
mov rbx, qword [rsp + 0x298]
test rdi, rdi
je 0x1400d7e0a
mov rcx, rdi
call fcn.14004dcf0
mov r8d, 1
lea rdx, [0x14027df78]
mov rcx, r15
call fcn.14001ed90
mov rdi, qword [rsp + 0x2a8]
mov rax, r15
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140250070
add rsp, 0x278
pop r15
pop rbp
ret