Function at 0x18001d6e4
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rdi, rcx
xor r14d, r14d
mov r12d, r14d
lea r15d, [r14 + 2]
mov dword [rsp + 0xb0], r15d
mov rsi, qword [rcx + 0x78]
cmp rsi, qword [rcx + 0x80]
jbe 0x18001d729
call fcn.18005e62c
mov r13, qword [rdi + 0x60]
mov r8d, 1
lea rdx, [0x1800892e0]
lea rcx, [rsp + 0x30]
call fcn.180022a1c
nop
mov dword [rsp + 0x24], 1
mov r9d, 1
lea r8, [rsp + 0x24]
lea rdx, str.SFXLocal
lea rcx, [rsp + 0x30]
call fcn.18002291c
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [rsp + 0x20]
lea rdx, str.SFXNetwork
lea rcx, [rsp + 0x30]
call fcn.18002291c
mov dword [rsp + 0xb8], 1
mov r9d, 1
lea r8, [rsp + 0xb8]
lea rdx, str.SFXOther
lea rcx, [rsp + 0x30]
call fcn.18002291c
mov rbx, qword [rdi + 0x80]
cmp qword [rdi + 0x78], rbx
jbe 0x18001d7c3
call fcn.18005e62c
cmp r13, r14
je 0x18001d7ce
cmp r13, qword [rdi + 0x60]
je 0x18001d7d3
call fcn.18005e62c
cmp rsi, rbx
je 0x18001dba7
mov ebx, r14d
mov dword [rsp + 0xa0], ebx
cmp r13, r14
jne 0x18001d7f5
call fcn.18005e62c
mov r11, r14
jmp 0x18001d7f9
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001d804
call fcn.18005e62c
cmp qword [rsi + 0x20], 8
jb 0x18001d81a
lea rbp, [rsi + 8]
mov qword [rsp + 0x38], rbp
mov rcx, qword [rbp]
jmp 0x18001d826
lea rbp, [rsi + 8]
mov qword [rsp + 0x38], rbp
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14d, eax
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
jne 0x18001d83e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r13, r13
jne 0x18001d84d
call fcn.18005e62c
xor r11d, r11d
jmp 0x18001d851
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001d85c
call fcn.18005e62c
cmp qword [rsi + 0x20], 8
jb 0x18001d869
mov rcx, qword [rbp]
jmp 0x18001d86c
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rcx, rax
lea rdx, [0x180089348]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18001d8c1
test r13, r13
jne 0x18001d895
call fcn.18005e62c
xor r11d, r11d
jmp 0x18001d899
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001d8a4
call fcn.18005e62c
cmp qword [rsi + 0x20], 8
jb 0x18001d8b1
mov rcx, qword [rbp]
jmp 0x18001d8b4
mov rcx, rbp
call fcn.1800195b8
mov r11d, eax
jmp 0x18001d96a
test r13, r13
jne 0x18001d8d0
call fcn.18005e62c
xor r11d, r11d
jmp 0x18001d8d4
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001d8df
call fcn.18005e62c
cmp qword [rsi + 0x20], 8
jb 0x18001d8ec
mov rcx, qword [rbp]
jmp 0x18001d8ef
mov rcx, rbp
mov r14d, dword [rsp + 0xb8]
mov r15d, dword [rsp + 0x20]
mov ebp, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x18001d915
mov ebp, r14d
cmp eax, 4
cmove ebp, r15d
test ebp, ebp
je 0x18001db46
test r13, r13
jne 0x18001d92c
call fcn.18005e62c
xor r11d, r11d
jmp 0x18001d930
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001d93b
call fcn.18005e62c
cmp qword [rsi + 0x20], 8
jb 0x18001d94d
mov rbp, qword [rsp + 0x38]
mov rcx, qword [rbp]
jmp 0x18001d955
mov rbp, qword [rsp + 0x38]
mov rcx, rbp
call fcn.1800195b8
mov r11d, eax
mov r14d, dword [rsp + 0x28]
mov r15d, dword [rsp + 0xb0]
test r11d, r11d
je 0x18001db4e
cmp r11d, 1
je 0x18001d985
cmp r11d, 7
je 0x18001d985
cmp r11d, 0xf
jne 0x18001d991
mov ebx, 2
mov dword [rsp + 0xa0], ebx
cmp r11d, 0xa
jne 0x18001d9e0
or ebx, 3
mov dword [rsp + 0xa0], ebx
mov rcx, qword [rdi + 0x80]
sub rcx, qword [rdi + 0x78]
movabs r8, 0x6666666666666667
mov rax, r8
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x18001da67
or ebx, 4
mov dword [rsp + 0xa0], ebx
jmp 0x18001d9ea
movabs r8, 0x6666666666666667
cmp r11d, 0xf
je 0x18001d9fc
cmp r11d, 3
je 0x18001d9fc
cmp r11d, 4
jne 0x18001da06
or ebx, 2
mov dword [rsp + 0xa0], ebx
mov eax, 5
cmp r11d, eax
je 0x18001da28
cmp r11d, 6
je 0x18001da28
cmp r11d, 0xc
je 0x18001da28
cmp r11d, 0xb
je 0x18001da28
cmp r11d, 0xd
jne 0x18001da32
or ebx, 2
mov dword [rsp + 0xa0], ebx
cmp r11d, 0x10
jne 0x18001da67
mov rcx, qword [rdi + 0x80]
sub rcx, qword [rdi + 0x78]
mov rax, r8
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x18001da67
or ebx, 4
mov dword [rsp + 0xa0], ebx
mov ecx, r11d
call fcn.180018d98
test eax, eax
je 0x18001da7d
or ebx, 1
mov dword [rsp + 0xa0], ebx
test r14b, 0x10
je 0x18001db1f
mov ebx, 1
mov dword [rsp + 0xa0], ebx
xor r14d, r14d
cmp r13, r14
jne 0x18001daa5
call fcn.18005e62c
mov r11, r14
jmp 0x18001daa9
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001dab4
call fcn.18005e62c
cmp qword [rsi + 0x18], rbx
jbe 0x18001db06
cmp r13, r14
jne 0x18001dac9
call fcn.18005e62c
mov r11, r14
jmp 0x18001dacd
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001dad8
call fcn.18005e62c
cmp qword [rsi + 0x18], rbx
ja 0x18001dae3
call fcn.18005b7b8
cmp qword [rsi + 0x20], 8
jb 0x18001daee
mov rbp, qword [rbp]
mov eax, Ordinal_60
cmp ax, word [rbp + 2]
mov eax, 5
cmovne ebx, eax
mov dword [rsp + 0xa0], ebx
or r12d, ebx
lea rcx, [rdi + 0x90]
lea rdx, [rsp + 0xa0]
call fcn.180021f68
jmp 0x18001db80
or r12d, ebx
and r15d, ebx
mov dword [rsp + 0xb0], r15d
lea rcx, [rdi + 0x90]
lea rdx, [rsp + 0xa0]
call fcn.180021f68
xor r14d, r14d
jmp 0x18001db80
mov r15d, dword [rsp + 0xb0]
mov dword [rsp + 0xa0], 1
or r12d, 1
and r15d, 1
mov dword [rsp + 0xb0], r15d
lea rcx, [rdi + 0x90]
lea rdx, [rsp + 0xa0]
call fcn.180021f68
xor r14d, r14d
cmp r13, r14
jne 0x18001db8f
call fcn.18005e62c
mov r11, r14
jmp 0x18001db93
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001db9e
call fcn.18005e62c
add rsi, 0x28
jmp 0x18001d7b1
mov rcx, qword [rdi + 0x80]
sub rcx, qword [rdi + 0x78]
movabs rbp, 0x6666666666666667
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x18001dc02
mov rax, qword [rdi + 0xb0]
sub rax, qword [rdi + 0xa8]
sar rax, 2
cmp rax, r14
ja 0x18001dbf2
call fcn.18005e62c
mov rax, qword [rdi + 0xa8]
test byte [rax], 2
je 0x18001dc02
or r12d, 0x10
cmp r15d, r14d
je 0x18001dc0b
or r12d, 0x40
mov rcx, qword [rdi + 0x80]
sub rcx, qword [rdi + 0x78]
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jbe 0x18001dc9a
or r12d, 1
mov rsi, qword [rdi + 0xb0]
cmp qword [rdi + 0xa8], rsi
jbe 0x18001dc49
call fcn.18005e62c
mov rbx, qword [rdi + 0xa8]
cmp rbx, qword [rdi + 0xb0]
jbe 0x18001dc5e
call fcn.18005e62c
mov eax, 1
cmp rbx, rsi
je 0x18001dc9a
test byte [rbx], 4
jne 0x18001dc81
test byte [rbx], 8
jne 0x18001dc81
test byte [rbx], 2
jne 0x18001dc81
test byte [rbx], 0x40
jne 0x18001dc81
mov ecx, r14d
jmp 0x18001dc86
mov ecx, 1
and eax, ecx
add rbx, 4
cmp rbx, rsi
jne 0x18001dc68
cmp eax, r14d
jne 0x18001dc9a
and r12d, 0xffffffb1
cmp word [rdi + 0x124], r14w
je 0x18001dcb3
mov rbp, qword [rsp + 0xa8]
and dword [rbp], 0xfff8ebf2
lea rcx, [rsp + 0x30]
call fcn.1800229fc
mov eax, r12d
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret