Function at 0x180019be0
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 [0x180056150]
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 0x180019c4f
xor eax, eax
jmp 0x18001a19e
xor ebx, ebx
cmp bx, word [rsi + 0x124]
je 0x180019c61
xor eax, eax
jmp 0x18001a19e
cmp qword [rsi + 0x28], 8
jb 0x180019c6e
mov rdx, qword [rsi + 0x10]
jmp 0x180019c72
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 0x180019ca6
call fcn.180025824
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x180019cb7
mov rdx, qword [rax + 8]
jmp 0x180019cbb
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 0x180019ce5
xor eax, eax
jmp 0x18001a19e
lea rcx, [rsp + 0x320]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jl 0x180019e8d
lea rcx, [rsp + 0x60]
call fcn.1800150e8
nop
lea rcx, [rsp + 0x60]
call fcn.180015178
cmp eax, ebx
jne 0x180019d26
lea rcx, [rsp + 0x60]
call fcn.180015128
xor eax, eax
jmp 0x18001a19e
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x60]
call fcn.180015508
cmp eax, ebx
jne 0x180019d41
jmp 0x180019e7c
lea rcx, [0x180056020]
mov rax, qword [0x180056020]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
mov edx, 0x1f4b
lea rcx, [0x180058300]
call fcn.1800209b8
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 0x180019d97
call fcn.180025824
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x180019da8
mov r9, qword [rax + 8]
jmp 0x180019dac
lea r9, [rax + 8]
mov r8, qword [rsp + 0x30]
lea rdx, [0x180043f98]
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.180007420
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x78]
call fcn.18001d8f0
nop
cmp qword [rsp + 0x98], 8
jb 0x180019e3c
mov rcx, qword [rsp + 0x80]
call fcn.1800228ac
mov qword [rsp + 0x48], 0x400000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x48]
call fcn.18001d1b0
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 0x180019e77
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov ebx, 1
lea rcx, [rsp + 0x60]
call fcn.180015128
mov eax, ebx
jmp 0x18001a19e
movzx ecx, word [rsp + 0x320]
call fcn.1800164e0
cmp eax, ebx
jne 0x180019ea5
xor eax, eax
jmp 0x18001a19e
lea rcx, [rsp + 0x320]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov r12d, 7
or rbp, 0xffffffffffffffff
cmp eax, 5
jne 0x18001a09a
bt edi, 0x13
jb 0x180019ed3
xor eax, eax
jmp 0x18001a19e
lea rcx, [rsp + 0x320]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x180019fc6
lea rcx, [0x180056020]
mov rax, qword [0x180056020]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov edx, 0x1f4c
lea rcx, [0x180058300]
call fcn.1800209b8
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.180007420
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0xa0]
call fcn.18001d8f0
nop
cmp qword [rsp + 0xc0], 8
jb 0x180019f83
mov rcx, qword [rsp + 0xa8]
call fcn.1800228ac
mov qword [rsp + 0x50], 0x200000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x50]
call fcn.18001d1b0
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 0x18001a09a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x18001a09a
lea rcx, [0x180056020]
mov rax, qword [0x180056020]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x28]
mov edx, 0x1f4d
lea rcx, [0x180058300]
call fcn.1800209b8
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.180007420
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0xf0]
call fcn.18001d8f0
nop
cmp qword [rsp + 0x110], 8
jb 0x18001a060
mov rcx, qword [rsp + 0xf8]
call fcn.1800228ac
mov qword [rsp + 0x40], 0x100000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x40]
call fcn.18001d1b0
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 0x18001a09a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [0x180056020]
mov rax, qword [0x180056020]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x38]
mov edx, 0x1f4b
lea rcx, [0x180058300]
call fcn.1800209b8
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.180007420
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0xc8]
call fcn.18001d8f0
nop
cmp qword [rsp + 0xe8], 8
jb 0x18001a15f
mov rcx, qword [rsp + 0xd0]
call fcn.1800228ac
mov qword [rsp + 0x58], 0x80000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x58]
call fcn.18001d1b0
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 0x18001a199
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.180022fd0
lea r11, [rsp + 0xf40]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret