Function at 0x140022870
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, r9
mov rsi, r8
mov r13, rdx
mov r15, rcx
xor r12d, r12d
mov dword [rbp - 0x21], r12d
mov ecx, 0x10000
call fcn.140038378
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x10000
nop dword [rax]
mov rax, qword [rsi]
lea r9, [rsp + 0x30]
mov r8d, 0x10000
mov rdx, rbx
mov rcx, rsi
call qword [rax]
mov rax, qword [rsi + 8]
movsxd rcx, dword [rax + 4]
mov rax, qword [rcx + rsi + 0x10]
test rax, rax
je 0x1400228fd
mov eax, dword [rax + 4]
jmp 0x140022900
mov eax, r12d
test eax, eax
jne 0x140022ab0
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x31]
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400229ea
mov r14, qword [rsp + 0x30]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140022959
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
je 0x140022947
xor al, al
jmp 0x14002295b
add qword [rdi + 0x10], r14
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov rdx, qword [rdi + 0x10]
call qword [rax + 8]
mov al, 1
test al, al
je 0x140022989
cmp qword [rsp + 0x30], 0x10000
je 0x1400228d0
mov rax, qword [0x14007bf60]
mov qword [r15], rax
test rax, rax
je 0x140022b44
lock inc dword [rax]
jmp 0x140022b3f
movabs rax, 0xa8a1022bd18ae1b1
mov qword [rbp - 0x59], rax
lea rax, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_backup.cpp
mov qword [rbp - 0x51], rax
lea rcx, str._anonymous_namespace::FillFileFrom
mov qword [rbp - 0x49], rcx
mov dword [rbp - 0x41], 0x22f
movups xmm0, xmmword [rbp - 0x59]
movaps xmmword [rbp - 0x79], xmm0
movups xmm1, xmmword [rbp - 0x49]
movaps xmmword [rbp - 0x69], xmm1
lea rcx, [0x140056930]
call fcn.140005930
mov r9, rax
mov r8d, 0x4000f
lea rdx, [rbp - 0x79]
mov rcx, r15
call fcn.140033ba0
jmp 0x140022b44
movabs rdx, 0xa8a1022bd18ae1af
mov qword [rbp - 0x59], rdx
lea rax, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_backup.cpp
mov qword [rbp - 0x51], rax
lea rcx, str._anonymous_namespace::FillFileFrom
mov qword [rbp - 0x49], rcx
mov dword [rbp - 0x41], 0x22d
mov qword [rbp - 0x79], rdx
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], rcx
mov dword [rbp - 0x61], 0x22d
movups xmm0, xmmword [rbp - 0x59]
movaps xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rbp - 0x49]
movaps xmmword [rbp + 7], xmm1
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [0x140059bc8]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.14000c540
nop
movups xmm0, xmmword [rbp - 0x79]
movaps xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [rbp - 0x69]
movaps xmmword [rbp - 0x49], xmm1
mov dword [rsp + 0x20], 1
mov r9, rax
lea r8, [rbp - 0x59]
mov rdx, r15
mov rcx, rdi
call fcn.140022dc0
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140022b44
nop dword [rax]
lock dec dword [rcx]
jne 0x140022b3f
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x140022a90
jmp 0x140022b3f
movabs rax, 0xa8a1022bd18ae1ac
mov qword [rbp - 0x79], rax
lea rax, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_backup.cpp
mov qword [rbp - 0x71], rax
lea rcx, str._anonymous_namespace::FillFileFrom
mov qword [rbp - 0x69], rcx
mov dword [rbp - 0x61], 0x22a
mov rax, qword [rsi + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rsi
lea rdx, [rbp - 0x39]
call fcn.14000d650
nop
movups xmm0, xmmword [rbp - 0x79]
movaps xmmword [rbp + 0x17], xmm0
movups xmm1, xmmword [rbp - 0x69]
movaps xmmword [rbp + 0x27], xmm1
mov dword [rsp + 0x20], 1
mov r9, rax
lea r8, [rbp + 0x17]
mov rdx, r15
mov rcx, rdi
call fcn.140022dc0
nop
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140022b44
lock dec dword [rcx]
jne 0x140022b3f
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x140022b28
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.140038370
mov rax, r15
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret