Function at 0x180019410
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rdi
push r12
push r14
sub rsp, 0x88
xor edi, edi
mov rax, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x40000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov r12d, edi
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x18001948b
lea rdx, str.UDF_RecoverFile:_Unable_to_create_recover_file._n
mov rcx, r14
call fcn.180016b80
xor eax, eax
add rsp, 0x88
pop r14
pop r12
pop rdi
pop rbx
ret
mov qword [rsp + 0x78], r13
mov r13, qword [r14 + 0x34]
test r13, r13
je 0x1800196df
lea rax, [rsp + 0xb0]
test rax, rax
je 0x1800196df
mov qword [rsp + 0xb8], rbp
mov qword [rsp + 0x70], r15
test r13, r13
je 0x1800194de
lea rax, [rsp + 0xb0]
test rax, rax
je 0x1800194de
mov eax, dword [r13 + 0x87]
mov r15, qword [r13 + rax*8 + 0x8b]
jmp 0x1800194e6
mov r15, qword [rsp + 0xb0]
mov rcx, qword [rbx + 0x10]
test r13, r13
je 0x180019511
mov rax, qword [r13 + 0x20]
cmp rax, rcx
jbe 0x180019511
mov qword [r13 + 0x18], rax
sub rax, rcx
mov qword [r13 + 0x28], rcx
cmp rax, 0xffffffffffffffff
jbe 0x180019511
lea rax, [rcx - 1]
mov qword [r13 + 0x18], rax
mov edx, dword [r15 + 4]
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
je 0x1800196c9
mov rbx, qword [rbx + 0x8b]
mov edx, 0x28
xor ecx, ecx
lea r9d, [rdx - 0x24]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1800196b8
mov rdx, rbx
mov rcx, rax
call fcn.180001090
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x40]
call fcn.1800011e0
test eax, eax
je 0x1800196ae
mov qword [rsp + 0x80], rsi
nop word [rax + rax]
mov ebx, dword [rsp + 0x40]
test ebx, ebx
je 0x18001967d
mov rsi, qword [rsp + 0x58]
mov edi, dword [rsp + 0xb0]
test rsi, rsi
jne 0x1800195f2
mov r8d, dword [r15 + 4]
mov edx, dword [r15 + 0x18]
mov rcx, qword [r14 + 0x34]
imul edx, dword [r13 + 0x7f]
mov eax, r8d
mov r9, rbp
imul eax, edi
add edx, eax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
call fcn.180002c60
test eax, eax
jne 0x180019600
lea r12d, [rsi + 1]
jmp 0x180019600
mov r8d, ebx
mov rdx, rsi
mov rcx, rbp
call fcn.18002dae0
mov eax, dword [r15 + 4]
mov rcx, qword [rsp + 0xc8]
mov r8d, ebx
cmp ebx, eax
lea r9, [rsp + 0x48]
mov rdx, rbp
cmova r8d, eax
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x20], 0
add eax, r8d
mov dword [rsp + 0x48], r8d
mov qword [rcx], rax
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180019661
inc edi
sub ebx, dword [rsp + 0x48]
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0xb0], edi
jne 0x1800195b8
jmp 0x18001967d
lea rdx, str.UDF_RecoverFile:_Error_writing_recover_file._n
mov rcx, r14
call fcn.180016b80
mov dword [r14], 0x2000000e
mov r12d, 1
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x40]
call fcn.1800011e0
test eax, eax
jne 0x1800195a0
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
call fcn.180001000
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x70]
mov rbp, qword [rsp + 0xb8]
mov r13, qword [rsp + 0x78]
test r12d, r12d
mov eax, 0
sete al
add rsp, 0x88
pop r14
pop r12
pop rdi
pop rbx
ret