Function at 0x14007f6d0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov r15, r8
mov rdi, rdx
mov r14, rcx
xor esi, esi
mov byte [r8], 1
lea rcx, [rbp - 0x39]
call fcn.14006b910
lea rcx, [rbp - 0x11]
call fcn.140067f70
nop
xor r8d, r8d
mov rdx, qword [rdi]
lea rcx, [rbp - 0x39]
call fcn.14006bba0
test al, al
je 0x14007fa23
mov eax, dword [r14 + 0x68]
cmp eax, 2
je 0x14007faae
test eax, eax
jne 0x14007f83d
mov rcx, rdi
call fcn.140068fb0
lea edx, [rax + 1]
mov r8, rdi
lea rcx, [rbp - 0x69]
call fcn.140067b40
nop
lea r8, [rbp - 0x11]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x59]
call fcn.1400682e0
nop
mov rcx, qword [rbp - 0x69]
call fcn.1408acb9c
mov rax, qword [rbp - 0x21]
mov qword [rbp + 0x77], rax
mov rcx, qword [r14 + 0x78]
mov rax, qword [rcx]
mov r10, qword [rax + 0x28]
mov r8, qword [r14 + 0xb0]
lea rdx, [r14 + 0x120]
cmp byte [r14 + 0x5b], sil
cmove rdx, rsi
lea rax, [r14 + 0x108]
cmp byte [r14 + 0x113], sil
cmove rax, rsi
lea r9, [rbp + 0x6f]
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
lea r9, [rbp - 0x39]
lea r8, [rbp + 0x77]
mov rdx, qword [rbp - 0x59]
call r10
mov ebx, eax
test eax, eax
jne 0x14007f87b
movsxd rax, dword [rbp + 0x6f]
cmp eax, 5
ja case.default.0x14007f7f3
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x7fad0]
add rcx, rdx
jmp rcx
mov ebx, 0x80004004
mov rcx, qword [rbp - 0x59]
call fcn.1408acb9c
mov esi, ebx
jmp 0x14007faae
mov dword [r14 + 0x68], 2
mov ebx, esi
mov rcx, qword [rbp - 0x59]
call fcn.1408acb9c
jmp 0x14007faae
mov dword [r14 + 0x68], 1
jmp case.0x14007f7f3.0
mov dword [r14 + 0x68], 3
mov rcx, qword [rbp - 0x59]
call fcn.1408acb9c
mov eax, dword [r14 + 0x68]
cmp eax, 3
jne 0x14007f898
mov rcx, rdi
call fcn.140079670
test al, al
jne 0x14007f88b
mov r8, rdi
lea rdx, str.Cannot_create_file_with_auto_name
mov rcx, r14
call fcn.140081920
mov ebx, eax
test eax, eax
jne 0x14007f86f
mov ebx, 0x80004005
mov esi, ebx
jmp 0x14007faae
mov ebx, 0x80004005
mov rcx, qword [rbp - 0x59]
call fcn.1408acb9c
mov esi, ebx
jmp 0x14007faae
mov byte [r14 + 0x1f8], 1
jmp 0x14007faaa
cmp eax, 4
jne 0x14007f9b3
mov rdx, rdi
lea rcx, [rbp - 0x59]
call fcn.140067c90
nop
lea rcx, [rbp - 0x59]
call fcn.140079670
test al, al
jne 0x14007f8dc
mov r8, rdi
lea rdx, str.Cannot_create_file_with_auto_name
mov rcx, r14
call fcn.140081920
mov ebx, 0x80004005
test eax, eax
cmovne ebx, eax
jmp 0x14007f99a
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rdi]
call fcn.14006b770
test al, al
jne 0x14007f9aa
call fcn.14006c710
mov ebx, eax
lea rdx, str.Cannot_rename_existing_file
lea rcx, [rbp - 0x69]
call fcn.140067d50
nop
test ebx, ebx
je 0x14007f93f
lea rdx, [0x1408e3328]
lea rcx, [rbp - 0x69]
call fcn.140068360
mov edx, ebx
lea rcx, [rbp - 0x49]
call fcn.14006b0a0
nop
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x69]
call fcn.140068310
nop
mov rcx, qword [rbp - 0x49]
call fcn.1408acb9c
lea rdx, [0x1408e3328]
lea rcx, [rbp - 0x69]
call fcn.140068360
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x69]
call fcn.140068310
lea rdx, [0x1408e3328]
lea rcx, [rbp - 0x69]
call fcn.140068360
mov rdx, rdi
lea rcx, [rbp - 0x69]
call fcn.140068310
mov rcx, qword [r14 + 0x78]
mov rax, qword [rcx]
mov rdx, qword [rbp - 0x69]
call qword [rax + gethostname]
mov ebx, eax
mov rcx, qword [rbp - 0x69]
call fcn.1408acb9c
test ebx, ebx
jne 0x14007f99a
mov ebx, 0x80004005
mov rcx, qword [rbp - 0x59]
call fcn.1408acb9c
mov esi, ebx
jmp 0x14007faae
mov rcx, qword [rbp - 0x59]
jmp 0x14007faa5
mov rcx, qword [rdi]
mov eax, dword [rbp - 0x19]
shr eax, 4
test al, 1
je 0x14007f9d6
call fcn.14006b790
test al, al
jne 0x14007faaa
lea rdx, str.Cannot_delete_output_folder
jmp 0x14007fa09
call fcn.14006b9f0
test al, al
je 0x14007faaa
mov rcx, qword [rdi]
call fcn.14006b4c0
test al, al
jne 0x14007faaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14007faaa
lea rdx, str.Cannot_delete_output_file
mov r8, rdi
mov rcx, r14
call fcn.140081990
test eax, eax
mov ebx, eax
jne 0x14007fa1c
mov ebx, esi
mov esi, ebx
jmp 0x14007faae
mov rcx, qword [rdi]
call fcn.14006ceb0
mov ebx, eax
test eax, eax
js 0x14007faaa
lea edx, [rbx + 1]
mov rcx, qword [rdi]
cmp word [rcx + rdx*2], 0
je 0x14007faaa
mov rdx, rdi
lea rcx, [rbp - 0x69]
call fcn.140067c90
nop
cmp ebx, dword [rbp - 0x61]
jae 0x14007fa5b
mov dword [rbp - 0x61], ebx
mov rax, qword [rbp - 0x69]
mov word [rax + rbx*2], si
lea rcx, [rbp - 1]
call fcn.14006b910
lea rcx, [rbp + 0x27]
call fcn.140067f70
nop
xor r8d, r8d
mov rdx, qword [rbp - 0x69]
lea rcx, [rbp - 1]
call fcn.14006bba0
test al, al
je 0x14007fa97
mov edx, dword [rbp + 0x1f]
test dl, 1
je 0x14007fa97
and edx, 0xfffffffe
mov rcx, qword [rbp - 0x69]
call fcn.14006b840
nop
mov rcx, qword [rbp + 0x27]
call fcn.1408acb9c
nop
mov rcx, qword [rbp - 0x69]
call fcn.1408acb9c
mov byte [r15], 0
mov rcx, qword [rbp - 0x11]
call fcn.1408acb9c
mov eax, esi
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret