Function at 0x18001d050
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 0x18001d095
call fcn.18005dfbc
mov r13, qword [rdi + 0x60]
mov r8d, 1
lea rdx, [0x1800881e0]
lea rcx, [rsp + 0x30]
call fcn.180022398
nop
mov dword [rsp + 0x24], 1
mov r9d, 1
lea r8, [rsp + 0x24]
lea rdx, str.SFXLocal
lea rcx, [rsp + 0x30]
call fcn.180022298
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [rsp + 0x20]
lea rdx, str.SFXNetwork
lea rcx, [rsp + 0x30]
call fcn.180022298
mov dword [rsp + 0xb8], 1
mov r9d, 1
lea r8, [rsp + 0xb8]
lea rdx, str.SFXOther
lea rcx, [rsp + 0x30]
call fcn.180022298
mov rbx, qword [rdi + 0x80]
cmp qword [rdi + 0x78], rbx
jbe 0x18001d12f
call fcn.18005dfbc
cmp r13, r14
je 0x18001d13a
cmp r13, qword [rdi + 0x60]
je 0x18001d13f
call fcn.18005dfbc
cmp rsi, rbx
je 0x18001d513
mov ebx, r14d
mov dword [rsp + 0xa0], ebx
cmp r13, r14
jne 0x18001d161
call fcn.18005dfbc
mov r11, r14
jmp 0x18001d165
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001d170
call fcn.18005dfbc
cmp qword [rsi + 0x20], 8
jb 0x18001d186
lea rbp, [rsi + 8]
mov qword [rsp + 0x38], rbp
mov rcx, qword [rbp]
jmp 0x18001d192
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 0x18001d1aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r13, r13
jne 0x18001d1b9
call fcn.18005dfbc
xor r11d, r11d
jmp 0x18001d1bd
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001d1c8
call fcn.18005dfbc
cmp qword [rsi + 0x20], 8
jb 0x18001d1d5
mov rcx, qword [rbp]
jmp 0x18001d1d8
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rcx, rax
lea rdx, [0x180088248]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18001d22d
test r13, r13
jne 0x18001d201
call fcn.18005dfbc
xor r11d, r11d
jmp 0x18001d205
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001d210
call fcn.18005dfbc
cmp qword [rsi + 0x20], 8
jb 0x18001d21d
mov rcx, qword [rbp]
jmp 0x18001d220
mov rcx, rbp
call fcn.180018f24
mov r11d, eax
jmp 0x18001d2d6
test r13, r13
jne 0x18001d23c
call fcn.18005dfbc
xor r11d, r11d
jmp 0x18001d240
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001d24b
call fcn.18005dfbc
cmp qword [rsi + 0x20], 8
jb 0x18001d258
mov rcx, qword [rbp]
jmp 0x18001d25b
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 0x18001d281
mov ebp, r14d
cmp eax, 4
cmove ebp, r15d
test ebp, ebp
je 0x18001d4b2
test r13, r13
jne 0x18001d298
call fcn.18005dfbc
xor r11d, r11d
jmp 0x18001d29c
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001d2a7
call fcn.18005dfbc
cmp qword [rsi + 0x20], 8
jb 0x18001d2b9
mov rbp, qword [rsp + 0x38]
mov rcx, qword [rbp]
jmp 0x18001d2c1
mov rbp, qword [rsp + 0x38]
mov rcx, rbp
call fcn.180018f24
mov r11d, eax
mov r14d, dword [rsp + 0x28]
mov r15d, dword [rsp + 0xb0]
test r11d, r11d
je 0x18001d4ba
cmp r11d, 1
je 0x18001d2f1
cmp r11d, 7
je 0x18001d2f1
cmp r11d, 0xf
jne 0x18001d2fd
mov ebx, 2
mov dword [rsp + 0xa0], ebx
cmp r11d, 0xa
jne 0x18001d34c
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 0x18001d3d3
or ebx, 4
mov dword [rsp + 0xa0], ebx
jmp 0x18001d356
movabs r8, 0x6666666666666667
cmp r11d, 0xf
je 0x18001d368
cmp r11d, 3
je 0x18001d368
cmp r11d, 4
jne 0x18001d372
or ebx, 2
mov dword [rsp + 0xa0], ebx
mov eax, 5
cmp r11d, eax
je 0x18001d394
cmp r11d, 6
je 0x18001d394
cmp r11d, 0xc
je 0x18001d394
cmp r11d, 0xb
je 0x18001d394
cmp r11d, 0xd
jne 0x18001d39e
or ebx, 2
mov dword [rsp + 0xa0], ebx
cmp r11d, 0x10
jne 0x18001d3d3
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 0x18001d3d3
or ebx, 4
mov dword [rsp + 0xa0], ebx
mov ecx, r11d
call fcn.180018704
test eax, eax
je 0x18001d3e9
or ebx, 1
mov dword [rsp + 0xa0], ebx
test r14b, 0x10
je 0x18001d48b
mov ebx, 1
mov dword [rsp + 0xa0], ebx
xor r14d, r14d
cmp r13, r14
jne 0x18001d411
call fcn.18005dfbc
mov r11, r14
jmp 0x18001d415
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001d420
call fcn.18005dfbc
cmp qword [rsi + 0x18], rbx
jbe 0x18001d472
cmp r13, r14
jne 0x18001d435
call fcn.18005dfbc
mov r11, r14
jmp 0x18001d439
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001d444
call fcn.18005dfbc
cmp qword [rsi + 0x18], rbx
ja 0x18001d44f
call fcn.18005b148
cmp qword [rsi + 0x20], 8
jb 0x18001d45a
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.1800218e4
jmp 0x18001d4ec
or r12d, ebx
and r15d, ebx
mov dword [rsp + 0xb0], r15d
lea rcx, [rdi + 0x90]
lea rdx, [rsp + 0xa0]
call fcn.1800218e4
xor r14d, r14d
jmp 0x18001d4ec
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.1800218e4
xor r14d, r14d
cmp r13, r14
jne 0x18001d4fb
call fcn.18005dfbc
mov r11, r14
jmp 0x18001d4ff
mov r11, qword [r13]
cmp rsi, qword [r11 + 0x20]
jb 0x18001d50a
call fcn.18005dfbc
add rsi, 0x28
jmp 0x18001d11d
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 0x18001d56e
mov rax, qword [rdi + 0xb0]
sub rax, qword [rdi + 0xa8]
sar rax, 2
cmp rax, r14
ja 0x18001d55e
call fcn.18005dfbc
mov rax, qword [rdi + 0xa8]
test byte [rax], 2
je 0x18001d56e
or r12d, 0x10
cmp r15d, r14d
je 0x18001d577
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 0x18001d606
or r12d, 1
mov rsi, qword [rdi + 0xb0]
cmp qword [rdi + 0xa8], rsi
jbe 0x18001d5b5
call fcn.18005dfbc
mov rbx, qword [rdi + 0xa8]
cmp rbx, qword [rdi + 0xb0]
jbe 0x18001d5ca
call fcn.18005dfbc
mov eax, 1
cmp rbx, rsi
je 0x18001d606
test byte [rbx], 4
jne 0x18001d5ed
test byte [rbx], 8
jne 0x18001d5ed
test byte [rbx], 2
jne 0x18001d5ed
test byte [rbx], 0x40
jne 0x18001d5ed
mov ecx, r14d
jmp 0x18001d5f2
mov ecx, 1
and eax, ecx
add rbx, 4
cmp rbx, rsi
jne 0x18001d5d4
cmp eax, r14d
jne 0x18001d606
and r12d, 0xffffffb1
cmp word [rdi + 0x124], r14w
je 0x18001d61f
mov rbp, qword [rsp + 0xa8]
and dword [rbp], 0xfff8ebf2
lea rcx, [rsp + 0x30]
call fcn.180022378
mov eax, r12d
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret