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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0xf40
mov qword [rsp + 0x118], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x180059640]
xor rax, rsp
mov qword [rsp + 0xf30], rax
mov edi, edx
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
sub rcx, qword [rsi + 0x78]
movabs rbp, 0x6666666666666667
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
je 0x180014e77
xor eax, eax
jmp 0x1800153c6
xor ebx, ebx
cmp bx, word [rsi + 0x124]
je 0x180014e89
xor eax, eax
jmp 0x1800153c6
cmp qword [rsi + 0x28], 8
jb 0x180014e96
mov rdx, qword [rsi + 0x10]
jmp 0x180014e9a
lea rdx, [rsi + 0x10]
lea rcx, [rsp + 0x320]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x180014ece
call fcn.180028d94
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x180014edf
mov rdx, qword [rax + 8]
jmp 0x180014ee3
lea rdx, [rax + 8]
lea rcx, [rsp + 0x320]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x320]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
cmp al, bl
jne 0x180014f0d
xor eax, eax
jmp 0x1800153c6
lea rcx, [rsp + 0x320]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jl 0x1800150b5
lea rcx, [rsp + 0x60]
call fcn.180010308
nop
lea rcx, [rsp + 0x60]
call fcn.180010398
cmp eax, ebx
jne 0x180014f4e
lea rcx, [rsp + 0x60]
call fcn.180010348
xor eax, eax
jmp 0x1800153c6
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x60]
call fcn.180010728
cmp eax, ebx
jne 0x180014f69
jmp 0x1800150a4
lea rcx, [0x180059508]
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
mov edx, 0x1f4b
lea rcx, [0x18005b300]
call fcn.18001bc10
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x180014fbf
call fcn.180028d94
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x180014fd0
mov r9, qword [rax + 8]
jmp 0x180014fd4
lea r9, [rax + 8]
mov r8, qword [rsp + 0x30]
lea rdx, [0x180046fb8]
lea rcx, [rsp + 0xb20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r12d, 7
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], rbx
mov word [rsp + 0x80], bx
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, [rsp + 0xb20]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0xb20]
lea rcx, [rsp + 0x78]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x78]
call fcn.180018b24
nop
cmp qword [rsp + 0x98], 8
jb 0x180015064
mov rcx, qword [rsp + 0x80]
call fcn.180025e24
mov qword [rsp + 0x48], 0x400000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x48]
call fcn.1800183e4
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
cmp eax, ebx
jg 0x18001509f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov ebx, 1
lea rcx, [rsp + 0x60]
call fcn.180010348
mov eax, ebx
jmp 0x1800153c6
movzx ecx, word [rsp + 0x320]
call fcn.180011708
cmp eax, ebx
jne 0x1800150cd
xor eax, eax
jmp 0x1800153c6
lea rcx, [rsp + 0x320]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov r12d, 7
or rbp, 0xffffffffffffffff
cmp eax, 5
jne 0x1800152c2
bt edi, 0x13
jb 0x1800150fb
xor eax, eax
jmp 0x1800153c6
lea rcx, [rsp + 0x320]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x1800151ee
lea rcx, [0x180059508]
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov edx, 0x1f4c
lea rcx, [0x18005b300]
call fcn.18001bc10
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xb8], rbx
mov word [rsp + 0xa8], bx
xor eax, eax
mov rcx, rbp
mov rdx, qword [rsp + 0x20]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0xa0]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0xa0]
call fcn.180018b24
nop
cmp qword [rsp + 0xc0], 8
jb 0x1800151ab
mov rcx, qword [rsp + 0xa8]
call fcn.180025e24
mov qword [rsp + 0x50], 0x200000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x50]
call fcn.1800183e4
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
cmp eax, ebx
jg 0x1800152c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1800152c2
lea rcx, [0x180059508]
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x28]
mov edx, 0x1f4d
lea rcx, [0x18005b300]
call fcn.18001bc10
mov qword [rsp + 0x110], r12
mov qword [rsp + 0x108], rbx
mov word [rsp + 0xf8], bx
xor eax, eax
mov rcx, rbp
mov rdx, qword [rsp + 0x28]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0xf0]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0xf0]
call fcn.180018b24
nop
cmp qword [rsp + 0x110], 8
jb 0x180015288
mov rcx, qword [rsp + 0xf8]
call fcn.180025e24
mov qword [rsp + 0x40], 0x100000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x40]
call fcn.1800183e4
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
cmp eax, ebx
jg 0x1800152c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [0x180059508]
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x38]
mov edx, 0x1f4b
lea rcx, [0x18005b300]
call fcn.18001bc10
movzx r9d, word [rsp + 0x320]
mov r8, qword [rsp + 0x38]
lea rdx, str._s__C:
lea rcx, [rsp + 0x120]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0xe8], r12
mov qword [rsp + 0xe0], rbx
mov word [rsp + 0xd0], bx
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x120]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0xc8]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0xc8]
call fcn.180018b24
nop
cmp qword [rsp + 0xe8], 8
jb 0x180015387
mov rcx, qword [rsp + 0xd0]
call fcn.180025e24
mov qword [rsp + 0x58], 0x80000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x58]
call fcn.1800183e4
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov ecx, ebp
lock xadd dword [rdx + 0x10], ecx
add ecx, ebp
cmp ecx, ebx
jg 0x1800153c1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 1
mov rcx, qword [rsp + 0xf30]
xor rcx, rsp
call fcn.180026540
lea r11, [rsp + 0xf40]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret