Function at 0x140044ba0
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x590
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x508], 0xfffffffffffffffe
mov qword [rbp + 0x88], rcx
mov qword [rbp + 0x90], rcx
mov qword [rbp + 0x4d0], 0
lea rax, [rbp + 0x4d0]
add rax, 8
mov qword [rbp + 0x98], rax
mov eax, 2
mov qword [rbp + 0x4d8], rax
lea rax, [rbp + 0x4d0]
add rax, 0x10
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0x4e0], 0
mov edx, 2
xor eax, eax
mov ecx, eax
mov eax, 0x200
mov qword [rbp + 0xa8], rdx
mov rdx, rcx
mov qword [rbp + 0xb0], rdx
mov rdx, rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rax
mov r11, qword [rbp + 0xa8]
mov r10, qword [rbp + 0xb0]
mov r9, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp + 0x40], r10
mov qword [rbp + 0x48], r11
mov edx, 0x200
lea rcx, [rbp + 0xd0]
cmp rax, 0x201
mov qword [rbp + 0x50], r11
mov qword [rbp + 0x58], r10
mov qword [rbp + 0x60], r9
mov qword [rbp + 0x68], r8
mov qword [rbp + 0x70], rdx
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], rax
jb 0x140044d6d
mov rax, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x48]
mov r9, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x28]
sub r8, r9
mov qword [rbp + 0x10], r8
sub rdx, r9
cmp rdx, r8
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x20], rax
jae 0x140044d21
mov r8, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x30]
mov rax, rsp
mov qword [rax + 0x20], 2
lea rcx, [rbp + 0x4d0]
mov r9d, 2
call fcn.140049160
jmp 0x140044d06
mov rcx, qword [rbp + 0x98]
mov rax, qword [rbp + 0x4d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x20], rax
jmp 0x140044d21
mov r8, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x20]
mov eax, 0xffffffff
mov r9, rdx
sub r9, rax
cmovb rax, rdx
mov qword [r8], rax
mov r8, rcx
mov qword [rbp + 0x50], r8
mov r8, rdx
mov qword [rbp + 0x58], r8
mov qword [rbp + 0x60], rdx
mov rdx, rax
mov qword [rbp + 0x68], rdx
mov rdx, rax
mov qword [rbp + 0x70], rdx
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
mov r8, qword [rbp + 0x68]
mov r9, qword [rbp + 0x70]
mov r10, qword [rbp + 0x78]
mov r11, qword [rbp + 0x80]
mov qword [rbp - 0x10], r11
mov qword [rbp - 8], r10
mov qword [rbp - 0x38], r9
mov qword [rbp - 0x30], r8
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rax
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov ecx, eax
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov dword [rbp + 4], eax
cmp eax, 0
jne 0x140044dd3
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0
jne 0x140044de7
mov rax, qword [rbp - 0x10]
mov ecx, dword [rbp + 4]
mov ecx, ecx
mov qword [rbp - 0x40], rcx
cmp rax, rcx
je 0x140044e5c
jmp 0x140044e49
call qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
mov rax, qword [rbp + 0x88]
movsxd rdx, ecx
shl rdx, 0x20
or rdx, 2
xor ecx, ecx
add rcx, rdx
mov qword [rax + 8], rcx
movabs rcx, 0x8000000000000000
mov qword [rax], rcx
mov rax, qword [rbp + 0x4d0]
mov qword [rbp - 0x48], rax
cmp rax, 0
je 0x140044e44
mov rdx, qword [rbp - 0x48]
mov rax, qword [rbp + 0x98]
mov rcx, qword [rax]
shl rdx, 1
mov r8d, 2
call fcn.140009e80
jmp 0x140044f75
mov rax, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
mov qword [rbp - 0x50], rax
jb 0x140044e81
jmp 0x140044ebd
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140044ee2
mov rcx, qword [rbp - 0x10]
shl rcx, 1
mov eax, 0xffffffff
mov rdx, rcx
sub rdx, rax
cmovb rax, rcx
mov qword [rbp - 0x50], rax
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x20]
mov r9, qword [rbp - 0x18]
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0xa8], r9
mov qword [rbp + 0xb0], r8
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rax
jmp 0x140044c46
mov rax, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
cmp rax, rcx
jae 0x140044efc
mov rdx, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
call fcn.14000df30
jmp 0x140044ee0
ud2
lea rcx, str.internal_error:_entered_unreachable_code_rustc_f6e511eec7342f59a25f7c0534f1dbea00d01b14library_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14000eb90
jmp 0x140044f73
mov r8, qword [rbp - 0x40]
mov rdx, qword [rbp - 8]
lea rcx, [rbp + 0x4e8]
call fcn.1400453a0
jmp 0x140044f12
mov rax, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x4e8]
mov qword [rax], rcx
mov rcx, qword [rbp + 0x4f0]
mov qword [rax + 8], rcx
mov rcx, qword [rbp + 0x4f8]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp + 0x500]
mov qword [rax + 0x18], rcx
mov rax, qword [rbp + 0x4d0]
mov qword [rbp - 0x58], rax
cmp rax, 0
je 0x140044f71
mov rdx, qword [rbp - 0x58]
mov rax, qword [rbp + 0x98]
mov rcx, qword [rax]
shl rdx, 1
mov r8d, 2
call fcn.140009e80
jmp 0x140044f75
ud2
mov rax, qword [rbp + 0x90]
add rsp, 0x590
pop rbp
ret