Function at 0x1800187a0
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 r13d, r13d
mov r12d, r13d
lea r14d, [r13 + 2]
mov dword [rsp + 0xb0], r14d
mov rbx, qword [rcx + 0x78]
cmp rbx, qword [rcx + 0x80]
jbe 0x1800187e5
call fcn.180025824
mov r15, qword [rdi + 0x60]
mov r8d, 1
lea rdx, [0x180043de0]
lea rcx, [rsp + 0x30]
call fcn.18001dbd0
nop
mov dword [rsp + 0x24], 1
mov r9d, 1
lea r8, [rsp + 0x24]
lea rdx, str.SFXLocal
lea rcx, [rsp + 0x30]
call fcn.18001dad0
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, [rsp + 0x20]
lea rdx, str.SFXNetwork
lea rcx, [rsp + 0x30]
call fcn.18001dad0
mov dword [rsp + 0xb8], 1
mov r9d, 1
lea r8, [rsp + 0xb8]
lea rdx, str.SFXOther
lea rcx, [rsp + 0x30]
call fcn.18001dad0
mov rsi, qword [rdi + 0x80]
cmp qword [rdi + 0x78], rsi
jbe 0x18001887f
call fcn.180025824
cmp r15, r13
je 0x18001888a
cmp r15, qword [rdi + 0x60]
je 0x18001888f
call fcn.180025824
cmp rbx, rsi
je 0x180018bd9
mov esi, r13d
mov dword [rsp + 0xa0], r13d
cmp r15, r13
jne 0x1800188b2
call fcn.180025824
mov r11, r13
jmp 0x1800188b5
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x1800188c0
call fcn.180025824
cmp qword [rbx + 0x20], 8
jb 0x1800188d6
lea rbp, [rbx + 8]
mov qword [rsp + 0x38], rbp
mov rcx, qword [rbp]
jmp 0x1800188e2
lea rbp, [rbx + 8]
mov qword [rsp + 0x38], rbp
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r13d, eax
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
jne 0x1800188fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r15, r15
jne 0x180018909
call fcn.180025824
xor r11d, r11d
jmp 0x18001890c
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x180018917
call fcn.180025824
cmp qword [rbx + 0x20], 8
jb 0x180018924
mov rcx, qword [rbp]
jmp 0x180018927
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rcx, rax
lea rdx, str..exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180018978
test r15, r15
jne 0x180018950
call fcn.180025824
xor r11d, r11d
jmp 0x180018953
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x18001895e
call fcn.180025824
cmp qword [rbx + 0x20], 8
jb 0x18001896b
mov rcx, qword [rbp]
jmp 0x18001896e
mov rcx, rbp
call fcn.180014600
jmp 0x180018a1c
test r15, r15
jne 0x180018987
call fcn.180025824
xor r11d, r11d
jmp 0x18001898a
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x180018995
call fcn.180025824
cmp qword [rbx + 0x20], 8
jb 0x1800189a2
mov rcx, qword [rbp]
jmp 0x1800189a5
mov rcx, rbp
mov r13d, dword [rsp + 0xb8]
mov r14d, dword [rsp + 0x20]
mov ebp, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1800189cb
mov ebp, r13d
cmp eax, 4
cmove ebp, r14d
test ebp, ebp
je 0x180018b79
test r15, r15
jne 0x1800189e2
call fcn.180025824
xor r11d, r11d
jmp 0x1800189e5
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x1800189f0
call fcn.180025824
cmp qword [rbx + 0x20], 8
jb 0x180018a02
mov rbp, qword [rsp + 0x38]
mov rcx, qword [rbp]
jmp 0x180018a0a
mov rbp, qword [rsp + 0x38]
mov rcx, rbp
call fcn.180014600
mov r13d, dword [rsp + 0x28]
mov r14d, dword [rsp + 0xb0]
test eax, eax
je 0x180018b81
cmp eax, 1
je 0x180018a33
cmp eax, 7
je 0x180018a33
cmp eax, 0xf
jne 0x180018a3f
mov esi, 0xa
mov dword [rsp + 0xa0], esi
cmp eax, 0xa
jne 0x180018a4e
or esi, 7
mov dword [rsp + 0xa0], esi
cmp eax, 0xf
je 0x180018a5d
cmp eax, 3
je 0x180018a5d
cmp eax, 4
jne 0x180018a67
or esi, 2
mov dword [rsp + 0xa0], esi
mov ecx, 5
cmp eax, ecx
je 0x180018a84
cmp eax, 6
je 0x180018a84
cmp eax, 0xc
je 0x180018a84
cmp eax, 0xb
je 0x180018a84
cmp eax, 0xd
jne 0x180018a8e
or esi, 2
mov dword [rsp + 0xa0], esi
cmp eax, 0x10
jne 0x180018a9d
or esi, 4
mov dword [rsp + 0xa0], esi
mov ecx, eax
call fcn.180013de0
test eax, eax
je 0x180018ab2
or esi, 1
mov dword [rsp + 0xa0], esi
test r13b, 0x10
je 0x180018b52
mov esi, 1
mov dword [rsp + 0xa0], esi
xor r13d, r13d
cmp r15, r13
jne 0x180018ada
call fcn.180025824
mov r11, r13
jmp 0x180018add
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x180018ae8
call fcn.180025824
cmp qword [rbx + 0x18], rsi
jbe 0x180018b39
cmp r15, r13
jne 0x180018afd
call fcn.180025824
mov r11, r13
jmp 0x180018b00
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x180018b0b
call fcn.180025824
cmp qword [rbx + 0x18], rsi
ja 0x180018b16
call fcn.180021d1c
cmp qword [rbx + 0x20], 8
jb 0x180018b21
mov rbp, qword [rbp]
mov eax, 0x3a
cmp ax, word [rbp + 2]
mov eax, 5
cmovne esi, eax
mov dword [rsp + 0xa0], esi
or r12d, esi
lea rcx, [rdi + 0x90]
lea rdx, [rsp + 0xa0]
call fcn.18001d11c
jmp 0x180018bb3
or r12d, esi
and r14d, esi
mov dword [rsp + 0xb0], r14d
lea rcx, [rdi + 0x90]
lea rdx, [rsp + 0xa0]
call fcn.18001d11c
xor r13d, r13d
jmp 0x180018bb3
mov r14d, dword [rsp + 0xb0]
mov dword [rsp + 0xa0], 1
or r12d, 1
and r14d, 1
mov dword [rsp + 0xb0], r14d
lea rcx, [rdi + 0x90]
lea rdx, [rsp + 0xa0]
call fcn.18001d11c
xor r13d, r13d
cmp r15, r13
jne 0x180018bc2
call fcn.180025824
mov r11, r13
jmp 0x180018bc5
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x180018bd0
call fcn.180025824
add rbx, 0x28
jmp 0x18001886d
mov rcx, qword [rdi + 0x80]
sub rcx, qword [rdi + 0x78]
movabs rbx, 0x6666666666666667
mov rax, rbx
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x180018c34
mov rax, qword [rdi + 0xb0]
sub rax, qword [rdi + 0xa8]
sar rax, 2
cmp rax, r13
ja 0x180018c24
call fcn.180025824
mov rax, qword [rdi + 0xa8]
test byte [rax], 2
je 0x180018c34
or r12d, 0x10
cmp r14d, r13d
je 0x180018c3d
or r12d, 0x40
mov rcx, qword [rdi + 0x80]
sub rcx, qword [rdi + 0x78]
mov rax, rbx
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jbe 0x180018ccc
or r12d, 1
mov rsi, qword [rdi + 0xb0]
cmp qword [rdi + 0xa8], rsi
jbe 0x180018c7b
call fcn.180025824
mov rbx, qword [rdi + 0xa8]
cmp rbx, qword [rdi + 0xb0]
jbe 0x180018c90
call fcn.180025824
mov eax, 1
cmp rbx, rsi
je 0x180018ccc
test byte [rbx], 4
jne 0x180018cb3
test byte [rbx], 8
jne 0x180018cb3
test byte [rbx], 2
jne 0x180018cb3
test byte [rbx], 0x40
jne 0x180018cb3
mov ecx, r13d
jmp 0x180018cb8
mov ecx, 1
and eax, ecx
add rbx, 4
cmp rbx, rsi
jne 0x180018c9a
cmp eax, r13d
jne 0x180018ccc
and r12d, 0xffffffb1
cmp word [rdi + 0x124], r13w
je 0x180018ce5
mov rbp, qword [rsp + 0xa8]
and dword [rbp], 0xfff8fbf2
lea rcx, [rsp + 0x30]
call fcn.18001dbb0
mov eax, r12d
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret