Function at 0x140011400
Capabilities:
Delete file
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf8
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rax, qword [0x1400c2038]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x78], r9
mov rbx, r8
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x40], rdx
mov r12, rcx
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x80], rax
cmp qword [r8 + 0x20], 0x10
jb 0x140011467
lea rsi, [r8 + 8]
mov rdx, qword [rsi]
jmp 0x14001146e
lea rsi, [r8 + 8]
mov rdx, rsi
lea rcx, [rsp + 0xc0]
call fcn.140034720
nop
cmp qword [rsp + 0xd8], 0x104
jb 0x1400114c8
lea r8, [0x14008ecf8]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64__wchar_t_const____ptr64_]
nop
mov rdx, rax
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
lea rcx, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rcx, qword [rsp + 0xc8]
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov eax, dword [rsp + 0x168]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r13 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rbx + 0x20], 0x10
jb 0x14001151e
mov rdi, qword [rsi]
jmp 0x140011521
mov rdi, rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140004490
mov rcx, rax
mov dword [rsp + 0x20], ebx
mov r9, r14
mov r8, rdi
lea rdx, str.Create_file_:__s__hFile__0x_x__err_:__d
call fcn.140004510
cmp r14, 0xffffffffffffffff
je 0x140011857
test r14, r14
je 0x140011857
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rbx, qword [rsp + 0x40]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x50]
mov rbp, rax
test rax, rax
jne 0x1400115a2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
lea eax, [rbp + 0x57]
jmp 0x14001186f
mov rax, qword [rax]
xor edx, edx
mov rcx, rbp
call qword [rax + 0x10]
mov r15, r13
mov rdi, qword [r12 + 0x10]
mov qword [rsp + 0x58], rdi
test rdi, rdi
jne 0x1400115c8
lea r13d, [rdi + 8]
jmp 0x140011764
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x18]
mov ecx, eax
mov eax, reloc.mfc90u.dll_COleStreamFile::COleStreamFile
test ecx, ecx
cmove ecx, eax
mov dword [rsp + 0x60], ecx
xor edx, edx
mov eax, 0x400000
div ecx
mov dword [rsp + 0x50], eax
cmp dword [r12 + 8], r13d
jne 0x140011764
nop word [rax + rax]
mov r9, qword [rbp]
mov r8d, eax
mov rdx, rdi
mov rcx, rbp
call qword [r9 + 8]
mov ebx, eax
imul ebx, dword [rsp + 0x60]
test ebx, ebx
je 0x1400116be
mov edx, ebx
mov rcx, r12
call fcn.140011cd0
test eax, eax
je 0x1400116a5
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov ecx, ebx
add r15, rcx
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14001166a
mov rdx, r15
mov rcx, qword [rsp + 0x80]
call rax
test edi, edi
je 0x140011692
cmp dword [rsp + 0x48], ebx
jne 0x140011692
cmp dword [r12 + 8], r13d
mov rdi, qword [rsp + 0x58]
mov eax, dword [rsp + 0x50]
je 0x140011600
mov rbx, qword [rsp + 0x40]
jmp 0x140011764
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rbx, qword [rsp + 0x40]
jmp 0x140011764
mov dword [r12 + 8], 1
mov r13d, 0x3f7
mov rbx, qword [rsp + 0x40]
jmp 0x140011764
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x20]
cmp r15, rax
jae 0x1400116f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x37
jne 0x1400116f3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5f5
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r13d, 0x37
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x20]
cmp r15, rax
jae 0x14001175f
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x20], 0x10
jb 0x140011718
mov rax, qword [rsi]
mov qword [rsp + 0x50], rax
jmp 0x14001171d
mov qword [rsp + 0x50], rsi
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140004490
mov rcx, rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r15
mov r9, qword [rsp + 0x50]
mov r8d, edi
lea rdx, str.Read_file_error__error___d__path___s__copied___I64d__total___I64d
call fcn.140004510
mov rbx, qword [rsp + 0x40]
jmp 0x140011764
mov rbx, qword [rsp + 0x40]
cmp dword [r12 + 8], 0
jne 0x140011797
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x20]
mov qword [rsp + 0x58], rax
xor r9d, r9d
lea r8, [rsp + 0x5c]
mov edx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x60]
mov r8, rax
lea rdx, [rsp + 0x88]
mov rcx, r12
call fcn.140011df0
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x68]
mov r8, rax
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.140011df0
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x88]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x14001181a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x38]
mov rbx, rax
call fcn.140004490
mov rcx, rax
mov r9d, edi
mov r8, rbx
lea rdx, str.SetFileTime_failed___s___d
call fcn.140004510
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [r12 + 8], 0
je 0x140011844
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x20], 0x10
jb 0x14001183a
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov eax, r13d
jmp 0x14001186f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140077470
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret