Function at 0x14001d014
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x258]
sub rsp, 0x330
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140049080]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov edi, r8d
mov rsi, rdx
mov r15, rcx
mov bl, r8b
and edi, 0xfffffffe
and bl, 1
je 0x14001d073
test dil, 4
je 0x14001d073
mov eax, 0x57
jmp 0x14001d2ee
or eax, 0xffffffff
test dil, 2
je 0x14001d093
cmp r9d, eax
je 0x14001d093
bt r9d, 0xa
jae 0x14001d08c
test bl, bl
jne 0x14001d093
and edi, 0xfffffffd
mov dword [rdx + 0x10], r9d
test edi, edi
je 0x14001d2ec
test dil, 0x2a
je 0x14001d0fe
cmp r9d, eax
je 0x14001d0b1
bt r9d, 0xa
jae 0x14001d0b1
test bl, bl
jne 0x14001d0fe
lea r8, [rsp + 0x44]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
nop
test eax, eax
jne 0x14001d0cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
jmp 0x14001d2ee
mov eax, dword [rsp + 0x44]
test bl, bl
je 0x14001d0dd
bt eax, 0xa
jb 0x14001d0fe
mov dword [rsi + 0x10], eax
mov ecx, dword [rsp + 0x60]
shl rcx, 0x20
mov eax, dword [rsp + 0x64]
add rcx, rax
mov qword [rsi + 8], rcx
mov rax, qword [rsp + 0x58]
mov qword [rsi], rax
and edi, 0xffffffd5
test edi, edi
je 0x14001d2ec
movzx r9d, bl
xor r9d, 1
add r9d, 0x10
shl r9d, 0x15
mov r8d, 0x80
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.14001d4ec
nop
mov ebx, eax
test eax, eax
je 0x14001d151
mov rcx, qword [rsp + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x14001d14a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
je 0x14001d442
mov eax, ebx
jmp 0x14001d2ee
mov r14, qword [0x14004fde0]
lea r13, [0x14001ce80]
test r14, r14
jne 0x14001d19d
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop
test rax, rax
je 0x14001d190
lea rdx, str.GetFileInformationByHandleEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
mov r14, rax
test rax, rax
jne 0x14001d193
mov r14, r13
mov rax, r14
xchg qword [0x14004fde0], rax
mov rbx, qword [rsp + 0x30]
cmp r14, r13
je 0x14001d2d0
cmp edi, 6
je 0x14001d20d
test dil, 0x22
je 0x14001d20d
mov r9d, 0x28
lea r8, [rbp - 0x60]
xor edx, edx
mov rcx, rbx
mov rax, r14
call qword [0x14002d718]
nop
test eax, eax
jne 0x14001d1fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x14001d34e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
je 0x14001d42a
jmp 0x14001d34e
mov eax, dword [rbp - 0x40]
mov dword [rsi + 0x10], eax
mov rax, qword [rbp - 0x50]
mov qword [rsi], rax
and edi, 0xffffffdd
test dil, 6
je 0x14001d26e
mov r9d, 8
lea r8, [rsp + 0x30]
lea edx, [r9 + 1]
mov rcx, rbx
mov rax, r14
call qword [0x14002d718]
nop
test eax, eax
jne 0x14001d25d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x14001d34e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
je 0x14001d430
jmp 0x14001d34e
mov eax, dword [rsp + 0x30]
mov dword [rsi + 0x10], eax
mov eax, dword [rsp + 0x34]
mov dword [rsi + 0x14], eax
and edi, 0xfffffff9
mov r9d, 0x18
test r9b, dil
je 0x14001d2d0
lea r8, [rsp + 0x40]
lea edx, [r9 - 0x17]
mov rcx, rbx
mov rax, r14
call qword [0x14002d718]
nop
test eax, eax
jne 0x14001d2bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x14001d34e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
je 0x14001d436
jmp 0x14001d34e
mov rax, qword [rsp + 0x48]
mov qword [rsi + 8], rax
mov eax, dword [rsp + 0x50]
mov dword [rsi + 0x18], eax
and edi, 0xffffffe7
test edi, edi
jne 0x14001d31a
cmp rbx, 0xffffffffffffffff
je 0x14001d2ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
je 0x14001d442
xor eax, eax
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14001e7d0
nop
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
nop
test eax, eax
jne 0x14001d352
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x14001d34e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
je 0x14001d442
mov eax, edi
jmp 0x14001d2ee
mov edx, dword [rsp + 0x68]
mov dword [rsi + 0x10], edx
mov rax, qword [rsp + 0x7c]
mov qword [rsi], rax
mov ecx, dword [rbp - 0x6c]
shl rcx, 0x20
mov eax, dword [rbp - 0x68]
add rcx, rax
mov qword [rsi + 8], rcx
mov eax, dword [rbp - 0x70]
mov dword [rsi + 0x18], eax
and edi, 0xffffffc5
mov eax, edi
shr eax, 2
test al, 1
je 0x14001d3eb
shr edx, 0xa
test dl, 1
je 0x14001d3e4
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
nop
cmp rax, 0xffffffffffffffff
jne 0x14001d3d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x14001d34e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
je 0x14001d43c
jmp 0x14001d34e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov eax, dword [rbp - 0xc]
mov dword [rsi + 0x14], eax
jmp 0x14001d3e8
and dword [rsi + 0x14], 0
and edi, 0xfffffffb
test edi, edi
jne 0x14001d40c
cmp rbx, 0xffffffffffffffff
je 0x14001d2ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
je 0x14001d442
jmp 0x14001d2ec
cmp rbx, 0xffffffffffffffff
je 0x14001d420
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
je 0x14001d442
mov eax, 0x32
jmp 0x14001d2ee
call sub.api_ms_win_crt_runtime_l1_1_0.dll_terminate
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll_terminate
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll_terminate
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll_terminate
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll_terminate
nop