Function at 0x140049a20
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xd0
mov rax, qword [0x14017a390]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp qword [rcx + 0x18], 0
mov rdi, rcx
je 0x140049c9e
cmp qword [rcx + 0x20], 8
xorps xmm0, xmm0
mov qword [r11 + 0x10], rbx
lea rbx, [rcx + 8]
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x18], r14
movups xmmword [r11 - 0x48], xmm0
jb 0x140049a6d
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140049a89
lea r8d, [rbx + 0x3b]
lea rdx, str.E:xml_data_build_dirCODRU_CL23M_SOURCES_extern_baseincludewinapi_filecreate.h
lea rcx, str.file_name
call fcn.140100428
xor r9d, r9d
mov qword [rsp + 0x30], 0xffffffffffffffff
mov dword [rsp + 0x28], 0x4000000
mov edx, 0xc0000000
mov rcx, rbx
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rbp, [0x14017afd0]
mov rbx, rax
lea r14, [0x14017aff0]
cmp rax, 0xffffffffffffffff
jne 0x140049aed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], r14
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x90], xmm0
jmp 0x140049af5
mov qword [rsp + 0x98], rbp
lea rax, [rsp + 0xa8]
cmp rdi, rax
jne 0x140049b1b
mov r8d, 0x2e
lea rdx, str.E:xml_data_build_dirCODRU_CL23M_SOURCES_extern_baseincludewinapidetails_basic_handle.h
lea rcx, str.this___other
call fcn.140100428
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140049b45
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140049b45
lea r8d, [rax + 0x17]
lea rdx, str.E:xml_data_build_dirCODRU_CL23M_SOURCES_extern_baseincludewinapi_filehandle.h
lea rcx, [0x140147f4c]
call fcn.140100428
mov qword [rdi], rbx
cmp rbx, 0xffffffffffffffff
je 0x140049c18
mov qword [rsp + 0xc8], rsi
xor r8d, r8d
xor esi, esi
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], esi
lea r9d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_LockFile]
test eax, eax
je 0x140049c0c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rbx, qword [rdi]
mov dword [rsp + 0xa8], eax
cmp rbx, 0xffffffffffffffff
jne 0x140049ba7
lea r8d, [rsi + 0x1b]
lea rdx, str.E:xml_data_build_dirCODRU_CL23M_SOURCES_extern_baseincludewinapi_filewrite.h
lea rcx, str.file
call fcn.140100428
lea r9, [rsp + 0xa0]
mov dword [rsp + 0xa0], esi
mov r8d, 0x10
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0xa8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140049bf3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], r14
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x90], xmm0
mov eax, 1
mov dword [rsp + 0x90], esi
mov qword [rsp + 0x98], rbp
xchg byte [rdi + 0x28], al
jmp 0x140049c10
xchg byte [rdi + 0x28], sil
mov rsi, qword [rsp + 0xc8]
mov rax, qword [rsp + 0x98]
mov r14, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rax + 8]
cmp qword [0x14017afd8], rcx
jne 0x140049c68
cmp dword [rsp + 0x90], 0
jne 0x140049c68
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400f2e00
add rsp, 0xd0
pop rdi
ret
movaps xmm0, xmmword [rsp + 0x90]
lea r8, str.failed_to_lock
lea rdx, [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x60]
call fcn.1400610c0
lea rdx, [0x140175948]
lea rcx, [rsp + 0x60]
call fcn.1400f5e30
int3
mov edx, 0x57
lea rcx, [rsp + 0x50]
call fcn.140014800
lea r8, str.file_path_is_empty
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
call fcn.1400610c0
lea rdx, [0x140175948]
lea rcx, [rsp + 0x60]
call fcn.1400f5e30
int3