Function at 0x1800139c8
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 0x180013a0d
call fcn.180028d94
mov r15, qword [rdi + 0x60]
mov r8d, 1
lea rdx, [0x180046e00]
lea rcx, [rsp + 0x30]
call fcn.180018e04
nop
mov dword [rsp + 0x24], 1
mov r9d, 1
lea r8, [rsp + 0x24]
lea rdx, str.SFXLocal
lea rcx, [rsp + 0x30]
call fcn.180018d04
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, [rsp + 0x20]
lea rdx, str.SFXNetwork
lea rcx, [rsp + 0x30]
call fcn.180018d04
mov dword [rsp + 0xb8], 1
mov r9d, 1
lea r8, [rsp + 0xb8]
lea rdx, str.SFXOther
lea rcx, [rsp + 0x30]
call fcn.180018d04
mov rsi, qword [rdi + 0x80]
cmp qword [rdi + 0x78], rsi
jbe 0x180013aa7
call fcn.180028d94
cmp r15, r13
je 0x180013ab2
cmp r15, qword [rdi + 0x60]
je 0x180013ab7
call fcn.180028d94
cmp rbx, rsi
je 0x180013e01
mov esi, r13d
mov dword [rsp + 0xa0], r13d
cmp r15, r13
jne 0x180013ada
call fcn.180028d94
mov r11, r13
jmp 0x180013add
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x180013ae8
call fcn.180028d94
cmp qword [rbx + 0x20], 8
jb 0x180013afe
lea rbp, [rbx + 8]
mov qword [rsp + 0x38], rbp
mov rcx, qword [rbp]
jmp 0x180013b0a
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 0x180013b22
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r15, r15
jne 0x180013b31
call fcn.180028d94
xor r11d, r11d
jmp 0x180013b34
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x180013b3f
call fcn.180028d94
cmp qword [rbx + 0x20], 8
jb 0x180013b4c
mov rcx, qword [rbp]
jmp 0x180013b4f
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 0x180013ba0
test r15, r15
jne 0x180013b78
call fcn.180028d94
xor r11d, r11d
jmp 0x180013b7b
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x180013b86
call fcn.180028d94
cmp qword [rbx + 0x20], 8
jb 0x180013b93
mov rcx, qword [rbp]
jmp 0x180013b96
mov rcx, rbp
call fcn.18000f820
jmp 0x180013c44
test r15, r15
jne 0x180013baf
call fcn.180028d94
xor r11d, r11d
jmp 0x180013bb2
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x180013bbd
call fcn.180028d94
cmp qword [rbx + 0x20], 8
jb 0x180013bca
mov rcx, qword [rbp]
jmp 0x180013bcd
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 0x180013bf3
mov ebp, r13d
cmp eax, 4
cmove ebp, r14d
test ebp, ebp
je 0x180013da1
test r15, r15
jne 0x180013c0a
call fcn.180028d94
xor r11d, r11d
jmp 0x180013c0d
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x180013c18
call fcn.180028d94
cmp qword [rbx + 0x20], 8
jb 0x180013c2a
mov rbp, qword [rsp + 0x38]
mov rcx, qword [rbp]
jmp 0x180013c32
mov rbp, qword [rsp + 0x38]
mov rcx, rbp
call fcn.18000f820
mov r13d, dword [rsp + 0x28]
mov r14d, dword [rsp + 0xb0]
test eax, eax
je 0x180013da9
cmp eax, 1
je 0x180013c5b
cmp eax, 7
je 0x180013c5b
cmp eax, 0xf
jne 0x180013c67
mov esi, 0xa
mov dword [rsp + 0xa0], esi
cmp eax, 0xa
jne 0x180013c76
or esi, 7
mov dword [rsp + 0xa0], esi
cmp eax, 0xf
je 0x180013c85
cmp eax, 3
je 0x180013c85
cmp eax, 4
jne 0x180013c8f
or esi, 2
mov dword [rsp + 0xa0], esi
mov ecx, 5
cmp eax, ecx
je 0x180013cac
cmp eax, 6
je 0x180013cac
cmp eax, 0xc
je 0x180013cac
cmp eax, 0xb
je 0x180013cac
cmp eax, 0xd
jne 0x180013cb6
or esi, 2
mov dword [rsp + 0xa0], esi
cmp eax, 0x10
jne 0x180013cc5
or esi, 4
mov dword [rsp + 0xa0], esi
mov ecx, eax
call fcn.18000f000
test eax, eax
je 0x180013cda
or esi, 1
mov dword [rsp + 0xa0], esi
test r13b, 0x10
je 0x180013d7a
mov esi, 1
mov dword [rsp + 0xa0], esi
xor r13d, r13d
cmp r15, r13
jne 0x180013d02
call fcn.180028d94
mov r11, r13
jmp 0x180013d05
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x180013d10
call fcn.180028d94
cmp qword [rbx + 0x18], rsi
jbe 0x180013d61
cmp r15, r13
jne 0x180013d25
call fcn.180028d94
mov r11, r13
jmp 0x180013d28
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x180013d33
call fcn.180028d94
cmp qword [rbx + 0x18], rsi
ja 0x180013d3e
call fcn.180025224
cmp qword [rbx + 0x20], 8
jb 0x180013d49
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.180018350
jmp 0x180013ddb
or r12d, esi
and r14d, esi
mov dword [rsp + 0xb0], r14d
lea rcx, [rdi + 0x90]
lea rdx, [rsp + 0xa0]
call fcn.180018350
xor r13d, r13d
jmp 0x180013ddb
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.180018350
xor r13d, r13d
cmp r15, r13
jne 0x180013dea
call fcn.180028d94
mov r11, r13
jmp 0x180013ded
mov r11, qword [r15]
cmp rbx, qword [r11 + 0x20]
jb 0x180013df8
call fcn.180028d94
add rbx, 0x28
jmp 0x180013a95
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 0x180013e5c
mov rax, qword [rdi + 0xb0]
sub rax, qword [rdi + 0xa8]
sar rax, 2
cmp rax, r13
ja 0x180013e4c
call fcn.180028d94
mov rax, qword [rdi + 0xa8]
test byte [rax], 2
je 0x180013e5c
or r12d, 0x10
cmp r14d, r13d
je 0x180013e65
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 0x180013ef4
or r12d, 1
mov rsi, qword [rdi + 0xb0]
cmp qword [rdi + 0xa8], rsi
jbe 0x180013ea3
call fcn.180028d94
mov rbx, qword [rdi + 0xa8]
cmp rbx, qword [rdi + 0xb0]
jbe 0x180013eb8
call fcn.180028d94
mov eax, 1
cmp rbx, rsi
je 0x180013ef4
test byte [rbx], 4
jne 0x180013edb
test byte [rbx], 8
jne 0x180013edb
test byte [rbx], 2
jne 0x180013edb
test byte [rbx], 0x40
jne 0x180013edb
mov ecx, r13d
jmp 0x180013ee0
mov ecx, 1
and eax, ecx
add rbx, 4
cmp rbx, rsi
jne 0x180013ec2
cmp eax, r13d
jne 0x180013ef4
and r12d, 0xffffffb1
cmp word [rdi + 0x124], r13w
je 0x180013f0d
mov rbp, qword [rsp + 0xa8]
and dword [rbp], 0xfff8fbf2
lea rcx, [rsp + 0x30]
call fcn.180018de4
mov eax, r12d
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret