Function at 0x180002cdc
Capabilities:
Get disk size
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rbx, rcx
cmp byte [rcx + 0x78], 0
je 0x180002d14
call fcn.180002fa0
test al, al
je 0x180002f82
lea rdi, [rbx + 0xb0]
mov rax, qword [rdi + 8]
mov esi, 1
cmp qword [rdi], rax
jne 0x180002df1
lea rax, [rbx + 0xd0]
mov qword [rbp + 0x38], rax
lea r12, [rax + 8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call fcn.1800017a4
test al, al
jne 0x180002d87
lea ecx, [rsi + 0x27]
call fcn.18000bd44
mov r15, rax
xor r14d, r14d
call fcn.18000d08c
add eax, dword [0x180031de8]
mov dword [r15 + r14*4], eax
add r14, rsi
cmp r14, 0xa
jl 0x180002d5d
mov edx, dword [r15 + 0x24]
mov dword [0x180031de8], edx
mov rcx, r15
call fcn.18000d084
cmp qword [rbx + 0x120], 0
jne 0x180002d9f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180002f82
lea rcx, [rbx + 0x100]
lea rdx, [rbp - 0x20]
call fcn.180003ef8
mov rdx, rax
mov rax, qword [rax]
test rax, rax
je 0x180002dbd
mov rax, qword [rax]
mov rcx, qword [rax + 0x10]
sub rcx, rsi
and rcx, qword [rdx + 0x10]
mov rax, qword [rax + 8]
mov rcx, qword [rax + rcx*8]
call fcn.180001f04
mov rdx, rax
mov rcx, rdi
call fcn.180003930
and qword [rbx + 0xc8], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [rbp + 0x30], 0
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
sub r8, rdx
lea rcx, [rbx + 0x80]
add rdx, qword [rbx + 0xc8]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x30]
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180002ea5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x180002e74
cmp eax, 0x3e5
je 0x180002e6e
lea rax, str.Channel_write_failure
mov qword [rbp + 0x38], rax
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x20]
call fcn.18000ce08
nop
lea rax, [0x180026df8]
mov qword [rbp - 0x20], rax
lea rdx, [0x18002d830]
lea rcx, [rbp - 0x20]
call fcn.18000d608
int3
mov byte [rbx + 0x78], sil
jmp 0x180002ea5
lea rcx, [rbp - 0x38]
call fcn.18000ce80
nop
lea rax, [0x180026df8]
mov qword [rbp - 0x38], rax
lea rax, [0x180026e18]
mov qword [rbp - 0x38], rax
lea rdx, [0x18002d7e8]
lea rcx, [rbp - 0x38]
call fcn.18000d608
int3
cmp byte [rbx + 0x78], 0
jne 0x180002f82
call fcn.1800017a4
test al, al
jne 0x180002ece
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [rbp + 0x30]
add qword [rbx + 0xc8], rax
mov rax, qword [rdi + 8]
sub rax, qword [rdi]
cmp qword [rbx + 0xc8], rax
jne 0x180002f70
lea rax, [rbx + 0xd0]
mov qword [rbp + 0x38], rax
lea r14, [rax + 8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [rbx + 0x120], 0
je 0x180002f4c
mov rcx, qword [rbx + 0x110]
sub rcx, rsi
and rcx, qword [rbx + 0x118]
mov rax, qword [rbx + 0x108]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx]
xor edx, edx
call qword [rax]
dec qword [rbx + 0x120]
jne 0x180002f45
and qword [rbx + 0x118], 0
jmp 0x180002f4c
add qword [rbx + 0x118], rsi
mov rax, qword [rdi]
mov qword [rdi + 8], rax
and qword [rbx + 0xc8], 0
cmp qword [rbx + 0x120], 0
setne sil
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, sil
jmp 0x180002f84
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret