Function at 0x14002c74c
Capabilities:
Check if file exists
Clear file content
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1f0
mov qword [rax - 0x198], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400841b0]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov r15, r8
mov rsi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], r8
mov rax, qword [rcx + 0xf0]
sub rax, qword [rdx]
jne 0x14002c7ab
mov rax, qword [rcx + 0xf8]
sub rax, qword [rdx + 8]
xor ebx, ebx
test rax, rax
setne al
mov rcx, qword [rsp + 0x218]
lea rdx, str.Calling_ArchiveExtractor::DumpNextDlpFile___with_wrong_runId
mov qword [rsp + 0x28], rdx
mov byte [rsp + 0x20], al
mov r9d, 0x80070057
lea rdi, str.amcorewcd_sensedlp_srcexe_archivefiles_src_archiveextractor.cpp
mov r8, rdi
mov edx, 0x17d
call fcn.140011818
mov al, byte [rsi + 0xe0]
test al, al
sete al
mov rcx, qword [rsp + 0x218]
lea rdx, str.Calling_ArchiveExtractor::DumpNextDlpFile___while_there_is_no_open_archive
mov qword [rsp + 0x28], rdx
mov byte [rsp + 0x20], al
mov r9d, 0x80030002
mov r8, rdi
mov edx, 0x17e
call fcn.140011818
cmp qword [rsi + 0x60], rbx
sete al
mov rcx, qword [rsp + 0x218]
lea rdx, str.Calling_ArchiveExtractor::DumpNextDlpFile___without_ready_object
mov qword [rsp + 0x28], rdx
mov byte [rsp + 0x20], al
mov r9d, 0x800710d8
mov r8, rdi
mov edx, 0x17f
call fcn.140011818
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x14002c85e
lock inc dword [rcx + 8]
mov rcx, qword [rsi + 0x50]
mov rax, qword [rsi + 0x48]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x88]
call fcn.14002de44
nop
cmp qword [r15], 0xffffffffffffffff
jne 0x14002c92d
mov rcx, rsi
call fcn.14002c6ec
call fcn.1400097d0
cmp dword [rax], 2
jbe 0x14002c8fc
mov dword [rsp + 0x38], 6
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x118], 4
lea rcx, str.ArchiveExtractor___Try_to_call_DumpNextDlpFile___with_invalid_fileHandle
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x128], SysAllocStringByteLen
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 4
lea rdx, [0x14006da19]
mov rcx, rax
call fcn.1400011b0
nop
lea rcx, [rsp + 0x88]
call fcn.14002df2c
nop
mov rcx, qword [r15]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002c923
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, 0x80070006
jmp 0x14002cc85
mov r13d, 0x100000
mov rax, qword [rsi + 0x60]
cmp qword [rax + 0x18], r13
cmovb r13, qword [rax + 0x18]
mov rcx, r13
call fcn.14004efdc
mov rdi, rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], ebx
mov r14, rbx
mov qword [rsp + 0x38], rbx
mov rax, qword [rsi + 0x60]
mov r12, qword [rax + 0x18]
cmp r12, 0xffffffffffffffff
jne 0x14002c971
mov ecx, 0x80070018
jmp 0x14002c9bd
call fcn.140028d70
cmp qword [rax + 8], r12
jae 0x14002c983
mov ecx, 0x800700df
jmp 0x14002c9bd
movsxd rax, r12d
cmp qword [rsi + 0xe8], rax
jge 0x14002c996
mov ecx, 0x80e7000e
jmp 0x14002c9bd
mov rax, qword [rsi + 0x48]
mov qword [rsp + 0x50], rax
call fcn.140028d70
mov rax, qword [rax + 0x18]
mov ecx, ebx
mov r8d, 0x80070044
mov rdx, qword [rsp + 0x50]
cmp qword [rdx + 0x38], rax
cmova ecx, r8d
mov dword [rsp + 0x30], ecx
cmp r14, r12
jae 0x14002cb60
test ecx, ecx
js 0x14002cb60
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, rdi
mov rdx, r14
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.MpGear.dll_MpGearContainerRead]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14002cae4
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14002cadc
add r14, rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
cmp dword [rsp + 0x40], ebx
jne 0x14002cac9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x30], ecx
call fcn.1400097d0
cmp dword [rax], 2
jbe 0x14002cb60
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x150], rcx
mov qword [rsp + 0x158], 4
lea rcx, str.ArchiveExtractor::DumpNextDlpFile_____failure_in_::WriteFile_execution
mov qword [rsp + 0x160], rcx
mov qword [rsp + 0x168], SysAllocStringByteLen
lea rcx, [rsp + 0x130]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 4
lea rdx, [0x14006da19]
mov rcx, rax
call fcn.1400011b0
jmp 0x14002cb60
mov rcx, rsi
call fcn.14002cdbc
mov ecx, eax
mov dword [rsp + 0x30], eax
jmp 0x14002c9c1
mov dword [rsp + 0x30], 0x8007012b
call fcn.1400097d0
cmp dword [rax], 2
jbe 0x14002cb60
lea rcx, [rsp + 0x30]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xc8], 4
lea rcx, str.ArchiveExtractor::DumpNextDlpFile_____failure_in_MpGearContainerRead
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0xd8], SysAllocStringByteLen
lea rcx, [rsp + 0x48]
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xe8], 8
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 5
lea rdx, [0x14006e7ba]
mov rcx, rax
call fcn.1400011b0
nop
jmp 0x14002cb78
cmp dword [rsp + 0x30], ebx
jge 0x14002cc33
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointerEx]
nop dword [rax + rax]
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
nop dword [rax + rax]
test eax, eax
jne 0x14002cc4a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x44], ecx
call fcn.1400097d0
cmp dword [rax], 2
jbe 0x14002cc4a
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x190], rcx
mov qword [rsp + 0x198], 4
lea rcx, str.ArchiveExtractor::DumpNextDlpFile_____failed_to_clean_partially_written_file
mov qword [rsp + 0x1a0], rcx
mov qword [rsp + 0x1a8], 0x9a
lea rcx, [rsp + 0x170]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 4
lea rdx, [0x14006da19]
mov rcx, rax
call fcn.1400011b0
jmp 0x14002cc4a
mov rax, qword [rsi + 0x48]
inc qword [rax + 0x38]
mov rax, qword [rsi + 0x48]
add qword [rax + 0x28], r14
sub qword [rsi + 0xe8], r14
mov esi, dword [rsp + 0x30]
test rdi, rdi
je 0x14002cc5c
mov rcx, rdi
call fcn.14004e2b8
nop
lea rcx, [rsp + 0x88]
call fcn.14002df2c
nop
mov rcx, qword [r15]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14002cc83
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14004ddf0
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret