Function at 0x140222c90
Capabilities:
Clear file content
Copy file
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xff90]
mov eax, 0x10090
call fcn.14021a050
sub rsp, rax
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rbp + 0xff80], rax
mov r14d, r8d
mov r15, rdx
mov rsi, rcx
cmp qword [rcx + 0x18], 0
jne 0x140222ced
xor r9d, r9d
mov r8d, 0x128
lea rdx, str.D:devwinmerge_stableBuildTmpSrcExternalspocoFoundation_srcFile_WIN32U.cpp
lea rcx, str.__path.empty__
call fcn.140221710
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movdqa xmm0, xmmword [0x1403a9d70]
movdqu xmmword [rsp + 0x68], xmm0
xor r12d, r12d
mov word [rsp + 0x58], r12w
lea rdx, [rsp + 0x58]
mov rcx, r15
call fcn.1402227a0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rdx, qword [rsp + 0x58]
lea rbx, [rsi + 0x28]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140222d44
mov rcx, qword [rbx]
and r14d, 1
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140222e81
mov qword [rsp + 0x40], r12
cmp qword [rbx + 0x18], 7
jbe 0x140222d68
mov rbx, qword [rbx]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x140222efe
mov qword [rsp + 0x48], r12
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
mov eax, 4
mov edx, 1
test r14d, r14d
cmovne eax, edx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x140222f08
mov dword [rsp + 0x50], 0x10000
mov dword [rsp + 0x54], r12d
nop word [rax + rax]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x50]
mov r8d, 0x10000
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140222ef4
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x54]
mov r8d, dword [rsp + 0x50]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140222ef4
cmp dword [rsp + 0x50], 0x10000
je 0x140222e10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140222ebf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140222eba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140222f11
call fcn.14000e3f0
movdqa xmm0, xmmword [0x1403a9d70]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r12w
mov rcx, qword [rbp + 0xff80]
xor rcx, rsp
call fcn.1402194b0
add rsp, 0x10090
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rsi + 8]
call fcn.140223380
nop
lea rcx, [rsi + 8]
call fcn.140223380
nop
mov rcx, r15
call fcn.140223380
nop
call fcn.140287130
int3