Function at 0x18007a900
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov edx, 5
mov rcx, qword [rcx - 0x70]
call fcn.180073a74
mov rcx, rax
call fcn.180073230
mov r12d, eax
lea rcx, [rdi - 0xc0]
mov rdx, rbx
call fcn.1800799dc
mov r15, rax
xor ebx, ebx
test rax, rax
je 0x18007ab47
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea ebp, [r9 + 1]
mov r8b, bpl
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.18006d90c
nop
xor edx, edx
lea r8d, [rbp + 0x1f]
lea rcx, [rsp + 0x48]
call fcn.1800a10b0
lea rcx, [rsp + 0x38]
call fcn.18006db08
mov qword [rsp + 0x60], rax
mov rcx, qword [r14]
mov r8, qword [rcx + 0x10]
lea rax, [rcx + 0x20]
sub r8d, dword [rax]
cmp qword [rcx + 0x18], 0x10
jb 0x18007a9b6
mov rcx, qword [rcx]
mov rdx, qword [rax]
add rdx, rcx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18007a9ee
cmp qword [r14], rbx
je 0x18007ab35
mov edx, ebp
mov rcx, qword [r14]
call fcn.180034168
jmp 0x18007ab35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x3e5
je 0x18007aa32
mov rcx, qword [rdi + 0x50]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x18007aa11
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x50], rbx
lea r9, str.PushToDevice__WriteFile
mov r8d, esi
mov edx, 0x1b
mov rcx, qword [rdi - 0x70]
call fcn.180074014
jmp 0x18007ab3b
lea rcx, [rsp + 0x38]
call fcn.18006db08
mov rcx, rax
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18007aa92
mov rcx, qword [rdi - 0x70]
cmp eax, 0x102
je 0x18007aa7f
lea r9, str.PushToDevice__WriteFile__WaitForSingleObject
mov edx, 0x1b
mov r8d, 0x3e5
call fcn.180074014
mov sil, bl
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x18007ab23
lea r8, str.PushToDevice__WriteFile__WaitForSingleObject
mov edx, 0x20
call fcn.180074014
jmp 0x18007aa6e
mov dword [rsp + 0xa0], ebx
xor r9d, r9d
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x48]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x18007aaea
mov rax, qword [r14]
mov rcx, qword [rax + 0x10]
sub rcx, qword [rax + 0x20]
mov eax, dword [rsp + 0xa0]
cmp rax, rcx
sete sil
je 0x18007ab23
lea r9, str.bytesWritten___MyDataLen
xor r8d, r8d
lea edx, [r8 + 0x1b]
mov rcx, qword [rdi - 0x70]
call fcn.180074014
jmp 0x18007ab23
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.PushToDevice__WriteFile__GetOverlappedResult
mov r8d, eax
mov edx, 0x1b
mov rcx, qword [rdi - 0x70]
call fcn.180074014
mov rcx, qword [rdi + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18007ab1c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x50], rbx
mov sil, bl
cmp qword [r14], rbx
je 0x18007ab32
mov edx, ebp
mov rcx, qword [r14]
call fcn.180034168
mov bpl, sil
mov qword [r14], rbx
mov bl, bpl
lea rcx, [rsp + 0x38]
call fcn.18006dad4
mov al, bl
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret