Function at 0x180032460
Capabilities:
Check if file exists
Delete file
Get disk size
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
add rcx, 0x90
lea r9, [rbp - 0x79]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1800327e8
mov rdi, qword [rsp + 0x20]
shr rdi, 0x14
cmp edi, 0xffffffff
je 0x1800327e8
mov qword [rbp - 0x29], 7
xor r12d, r12d
mov qword [rbp - 0x31], r12
mov word [rbp - 0x41], r12w
lea r8d, [r12 + 9]
lea rdx, str.UDISKSIZE
lea rcx, [rbp - 0x41]
call fcn.180004cc0
nop
mov qword [rbp - 0x51], 7
mov qword [rbp - 0x59], r12
mov word [rbp - 0x69], r12w
lea r8d, [r12 + 9]
lea rdx, [0x1800a8448]
lea rcx, [rbp - 0x69]
call fcn.180004cc0
nop
mov r9d, edi
lea r8, [0x1800a99cc]
lea edx, [r12 + 0x14]
lea rcx, [rbp + 0xf]
call fcn.18007b670
mov qword [rbp - 1], 7
mov qword [rbp - 9], r12
mov word [rbp - 0x19], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0xf]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x19]
call fcn.180004cc0
nop
lea r9, [rbp - 0x19]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x69]
mov rcx, rsi
call fcn.18002c4b0
nop
cmp qword [rbp - 1], 8
jb 0x18003258a
mov rcx, qword [rbp - 0x19]
call fcn.18007a7a4
nop
cmp qword [rbp - 0x51], 8
jb 0x18003259a
mov rcx, qword [rbp - 0x69]
call fcn.18007a7a4
mov qword [rbp - 0x51], 7
mov qword [rbp - 0x59], r12
mov word [rbp - 0x69], r12w
cmp qword [rbp - 0x29], 8
jb 0x1800325bb
mov rcx, qword [rbp - 0x41]
call fcn.18007a7a4
mov rcx, qword [rsi + 0x2168]
cmp rcx, rcx
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
sete al
test al, al
jne 0x1800327e8
mov qword [rbp - 0x29], 7
mov qword [rbp - 0x31], r12
mov word [rbp - 0x41], r12w
mov r8d, 6
lea rdx, str.DISKID
lea rcx, [rbp - 0x41]
call fcn.180004cc0
nop
mov qword [rbp - 0x51], 7
mov qword [rbp - 0x59], r12
mov word [rbp - 0x69], r12w
mov r8d, 9
lea rdx, [0x1800a8448]
lea rcx, [rbp - 0x69]
call fcn.180004cc0
nop
lea r9, [rsi + 0x2158]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x69]
mov rcx, rsi
call fcn.18002c4b0
movzx edi, al
cmp qword [rbp - 0x51], 8
jb 0x180032655
mov rcx, qword [rbp - 0x69]
call fcn.18007a7a4
mov qword [rbp - 0x51], 7
mov qword [rbp - 0x59], r12
mov word [rbp - 0x69], r12w
cmp qword [rbp - 0x29], 8
jb 0x180032676
mov rcx, qword [rbp - 0x41]
call fcn.18007a7a4
test edi, edi
je 0x1800327e8
mov qword [rbp - 0x29], 7
mov qword [rbp - 0x31], r12
mov word [rbp - 0x41], r12w
mov r8d, recv
lea rdx, str.DISKPRODUCTID
lea rcx, [rbp - 0x41]
call fcn.180004cc0
nop
mov qword [rbp - 0x51], 7
mov qword [rbp - 0x59], r12
mov word [rbp - 0x69], r12w
mov r8d, 9
lea rdx, [0x1800a8448]
lea rcx, [rbp - 0x69]
call fcn.180004cc0
nop
lea r9, [rsi + 0x2180]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x69]
mov rcx, rsi
call fcn.18002c4b0
movzx edi, al
cmp qword [rbp - 0x51], 8
jb 0x1800326f8
mov rcx, qword [rbp - 0x69]
call fcn.18007a7a4
mov qword [rbp - 0x51], 7
mov qword [rbp - 0x59], r12
mov word [rbp - 0x69], r12w
cmp qword [rbp - 0x29], 8
jb 0x180032719
mov rcx, qword [rbp - 0x41]
call fcn.18007a7a4
test edi, edi
je 0x1800327e8
lea rcx, [rsi + 0x1158]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180032766
shr eax, 4
not eax
and eax, 1
je 0x180032766
lea rcx, [rsi + 0x1158]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
lea rcx, [rsi + 0x1158]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsi + 0x1158]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rbp - 0x29], 7
mov qword [rbp - 0x31], r12
mov word [rbp - 0x41], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsi + 0x1158]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsi + 0x1158]
lea rcx, [rbp - 0x41]
call fcn.180004cc0
nop
lea rdx, [rbp - 0x41]
mov rcx, rsi
call fcn.18002dd00
movzx edi, al
cmp qword [rbp - 0x29], 8
jb 0x1800327be
mov rcx, qword [rbp - 0x41]
call fcn.18007a7a4
test edi, edi
je 0x1800327e8
lea rcx, [rsi + 0x1158]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 7
mov edx, eax
lea rcx, [rsi + 0x1158]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
jmp 0x1800327ea
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.18007a7c0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret