Function at 0x40df80
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x548
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r12, rcx
mov r13, qword [r8 + 0x28]
lea rbp, sym.core::ptr::drop_in_place::h6a21f5a5fafafde8
lea rcx, [rsp + 0x140]
xor r9d, r9d
mov r8, rbp
call r13
cmp byte [rsp + 0x140], 3
jne 0x40e082
mov r14b, byte [rsp + 0x5c0]
cmp r14b, 3
jne 0x40e08f
lea rax, [0x0042abe0]
mov qword [rsp + 0x40], rax
lea rax, [sym.__T_as_core::fmt::Display_::fmt::h684e11cbef2626ab]
mov qword [rsp + 0x48], rax
lea rax, [0x00427020]
mov qword [rsp + 0x50], rax
lea rax, [dbg.show_usize]
mov qword [rsp + 0x58], rax
lea rax, [0x00427280]
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x148], 1
lea rax, [0x00427290]
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x158], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], 2
mov rbx, qword [rbx + 0x30]
lea rcx, [rsp + 0x80]
lea r8, [rsp + 0x140]
mov rdx, rdi
call rbx
cmp byte [rsp + 0x80], 3
je 0x40e0eb
jmp 0x40e723
movups xmm0, xmmword [rsp + 0x140]
jmp 0x40e72b
lea rax, [0x00427280]
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x148], 1
mov qword [rsp + 0x150], 0
mov qword [rsp + 0x160], rbp
mov qword [rsp + 0x168], 0
mov rbx, qword [rbx + 0x30]
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x140]
mov rdx, rdi
call rbx
cmp byte [rsp + 0x40], 3
jne 0x40e390
mov r8, qword [rsp + 0x5b0]
lea rcx, [rsp + 0x140]
mov rdx, rsi
call dbg.from_utf8
cmp qword [rsp + 0x140], 1
mov esi, 9
cmovne rsi, qword [rsp + 0x150]
lea rbp, [0x00427bb4]
cmovne rbp, qword [rsp + 0x148]
mov qword [rsp + 0x120], rbp
mov qword [rsp + 0x128], rsi
cmp r14b, 2
jne 0x40e66b
lea rcx, [rsp + 0x140]
mov rdx, rbp
mov r8, rsi
call dbg.components
cmp byte [rsp + 0x178], 0
jne 0x40e172
mov al, byte [rsp + 0x150]
add al, 0xfb
cmp al, 2
jb 0x40e66b
lea r14, [rsp + 0x140]
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call dbg.components
cmp byte [rsp + 0x150], 6
je 0x40e66b
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x108], r13
mov qword [rsp + 0x110], rdi
mov qword [rsp + 0x118], r12
xor r13d, r13d
xor edx, edx
mov r8d, 0x400
mov rcx, r14
call sub.msvcrt.dll_memset
mov qword [rsp + 0x20], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov esi, 0x200
mov ebx, 2
xor r12d, r12d
jmp 0x40e203
add rsi, rsi
cmp rsi, 0x201
jb 0x40e260
mov rdi, rsi
sub rdi, r12
mov rax, r13
sub rax, r12
cmp rax, rdi
jae 0x40e286
add rdi, r12
jb 0x40e77e
mov rax, r13
add rax, r13
cmp rdi, rax
cmovb rdi, rax
mov rbp, rdi
add rbp, rdi
jb 0x40e77e
call sub.KERNEL32.dll_GetProcessHeap
xor edx, edx
mov rcx, rax
test r13, r13
je 0x40e26f
mov r8, rbx
mov r9, rbp
call fcn.0041d07c
jmp 0x40e277
mov ebp, 0x200
lea r15, [rsp + 0x140]
jmp 0x40e28f
mov r8, rbp
call fcn.0041d08c
mov rbx, rax
test rax, rax
je 0x40e794
mov r13, rdi
mov r12, rsi
mov rbp, rsi
mov r15, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, esi
mov rdx, r15
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov edi, eax
test eax, eax
jne 0x40e2b3
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40e422
mov r14d, edi
cmp rsi, r14
jne 0x40e2c9
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
je 0x40e200
cmp rsi, r14
mov rsi, r14
jbe 0x40e203
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
cmp rbp, r14
jb 0x40e7a3
lea rcx, [rsp + 0x40]
mov rdx, r15
mov r8, r14
call dbg.from_wide
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xe0], rax
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xc8], 0
xor esi, esi
test r13, r13
je 0x40e35c
call sub.KERNEL32.dll_GetProcessHeap
xor edx, edx
mov rcx, rax
mov r8, rbx
call fcn.0041d084
test rsi, rsi
mov r12, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x110]
mov r13, qword [rsp + 0x108]
je 0x40e39a
lea rcx, [rsp + 0xd0]
call sym._ZN4core3ptr13drop_in_place17h47d0d02e1f07e508E.1239
mov rbx, qword [rsp + 0x38]
jmp 0x40e66b
movups xmm0, xmmword [rsp + 0x40]
jmp 0x40e72b
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x20], xmm0
mov rsi, qword [rsp + 0xe0]
mov qword [rsp + 0x30], rsi
mov r15, qword [rsp + 0x20]
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0xf8]
mov r8, qword [rsp + 0x100]
call dbg.components
mov rbx, qword [rsp + 0x38]
lea rcx, [rsp + 0x140]
mov rdx, r15
mov r8, rsi
call dbg.components
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x140]
call dbg.iter_after<std::path::Components,std::path::Components>
cmp byte [rsp + 0xb8], 2
jne 0x40e464
xor esi, esi
cmp qword [rsp + 0x28], 0
jne 0x40e650
jmp 0x40e662
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
call sub.KERNEL32.dll_GetLastError
mov byte [rsp + 0xd0], 0
mov dword [rsp + 0xd4], eax
mov qword [rsp + 0xc8], 1
mov esi, 1
test r13, r13
jne 0x40e34a
jmp 0x40e35c
movups xmm0, xmmword [rsp + 0x80]
movups xmm1, xmmword [rsp + 0x90]
movups xmm2, xmmword [rsp + 0xa0]
movups xmm3, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0x170], xmm3
movaps xmmword [rsp + 0x160], xmm2
movaps xmmword [rsp + 0x150], xmm1
movaps xmmword [rsp + 0x140], xmm0
lea r14, [rsp + 0x140]
mov rcx, r14
call dbg.as_path
test rax, rax
je 0x40e641
test rdx, rdx
je 0x40e54a
mov r8, rax
add r8, rdx
mov rbp, rax
lea rbx, [rbp + 1]
movzx ecx, byte [rbp]
test cl, cl
js 0x40e4e5
mov rbp, rbx
cmp rbp, r8
jne 0x40e4cf
jmp 0x40e54a
add rbp, 2
cmp cl, 0xdf
ja 0x40e4fc
cmp rbx, r8
cmove rbp, rbx
cmp rbp, r8
jne 0x40e4cf
jmp 0x40e54a
cmp cl, 0xed
jne 0x40e520
cmp rbx, r8
cmove rbp, rbx
cmp rbp, r8
je 0x40e54a
add rbp, 1
cmp rbx, r8
je 0x40e545
cmp byte [rbx], 0x9f
jbe 0x40e545
jmp 0x40e641
cmp rbx, r8
mov rsi, rbp
cmove rsi, rbx
lea rbp, [rsi + 1]
cmp rsi, r8
cmove rbp, rsi
cmp cl, 0xf0
jb 0x40e545
lea rcx, [rbp + 1]
cmp rbp, r8
cmovne rbp, rcx
cmp rbp, r8
jne 0x40e4cf
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x138], rdx
lea rax, [0x004272d0]
mov qword [rsp + 0x140], rax
lea rax, [sym.__char_as_core::fmt::Display_::fmt::hc716090b3b6461e9]
mov qword [rsp + 0x148], rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x150], rax
lea rax, [sym.__T_as_core::fmt::Display_::fmt::h684e11cbef2626ab]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x5b8]
mov qword [rsp + 0x160], rax
lea rax, [sym.core::fmt::num::__impl_core::fmt::Display_for_u32_::fmt::h3313a28dc6643926]
mov qword [rsp + 0x168], rax
lea rax, [0x004272d8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 3
lea rax, [0x00428b00]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 3
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 3
lea rcx, [rsp + 0x80]
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rbx, qword [rsp + 0x38]
call rbx
mov al, byte [rsp + 0x80]
mov rcx, qword [rsp + 0x81]
mov qword [rsp + 0xe8], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0xef], rcx
cmp al, 3
jne 0x40e744
mov sil, 1
cmp qword [rsp + 0x28], 0
jne 0x40e650
jmp 0x40e662
xor esi, esi
mov rbx, qword [rsp + 0x38]
cmp qword [rsp + 0x28], 0
je 0x40e662
call sub.KERNEL32.dll_GetProcessHeap
xor edx, edx
mov rcx, rax
mov r8, r15
call fcn.0041d084
test sil, sil
jne 0x40e70b
lea rax, [rsp + 0x120]
mov qword [rsp + 0x40], rax
lea rax, [sym.__T_as_core::fmt::Display_::fmt::h684e11cbef2626ab]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x5b8]
mov qword [rsp + 0x50], rax
lea rax, [sym.core::fmt::num::__impl_core::fmt::Display_for_u32_::fmt::h3313a28dc6643926]
mov qword [rsp + 0x58], rax
lea rax, str.__at___at_.
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x148], 2
lea rax, [0x0042ad00]
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x158], 2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], 2
lea rcx, [rsp + 0x80]
lea r8, [rsp + 0x140]
mov rdx, rdi
call rbx
cmp byte [rsp + 0x80], 3
jne 0x40e723
lea r8, [0x00429273]
mov r9d, 1
mov rcx, r12
mov rdx, rdi
call r13
jmp 0x40e730
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [r12], xmm0
add rsp, 0x548
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov byte [r12], al
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xef]
mov qword [r12 + 8], rcx
mov qword [r12 + 1], rax
cmp qword [rsp + 0x28], 0
je 0x40e730
call sub.KERNEL32.dll_GetProcessHeap
xor edx, edx
mov rcx, rax
mov r8, r15
call fcn.0041d084
jmp 0x40e730
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
call dbg.capacity_overflow
mov edx, 2
mov rcx, rbp
call dbg.handle_alloc_error
ud2
mov rcx, r14
mov rdx, rbp
call dbg.slice_index_len_fail