Function at 0x14007f700
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.14006b940
lea rcx, [rbp - 0x11]
call fcn.140067fa0
nop
xor r8d, r8d
mov rdx, qword [rdi]
lea rcx, [rbp - 0x39]
call fcn.14006bbd0
test al, al
je 0x14007fa53
mov eax, dword [r14 + 0x68]
cmp eax, 2
je 0x14007fade
test eax, eax
jne 0x14007f86d
mov rcx, rdi
call fcn.140068fe0
lea edx, [rax + 1]
mov r8, rdi
lea rcx, [rbp - 0x69]
call fcn.140067b70
nop
lea r8, [rbp - 0x11]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x59]
call fcn.140068310
nop
mov rcx, qword [rbp - 0x69]
call fcn.140890cbc
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 0x14007f8ab
movsxd rax, dword [rbp + 0x6f]
cmp eax, 5
ja case.default.0x14007f823
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x7fb00]
add rcx, rdx
jmp rcx
mov ebx, 0x80004004
mov rcx, qword [rbp - 0x59]
call fcn.140890cbc
mov esi, ebx
jmp 0x14007fade
mov dword [r14 + 0x68], 2
mov ebx, esi
mov rcx, qword [rbp - 0x59]
call fcn.140890cbc
jmp 0x14007fade
mov dword [r14 + 0x68], 1
jmp case.0x14007f823.0
mov dword [r14 + 0x68], 3
mov rcx, qword [rbp - 0x59]
call fcn.140890cbc
mov eax, dword [r14 + 0x68]
cmp eax, 3
jne 0x14007f8c8
mov rcx, rdi
call fcn.1400796a0
test al, al
jne 0x14007f8bb
mov r8, rdi
lea rdx, str.Cannot_create_file_with_auto_name
mov rcx, r14
call fcn.140081950
mov ebx, eax
test eax, eax
jne 0x14007f89f
mov ebx, 0x80004005
mov esi, ebx
jmp 0x14007fade
mov ebx, 0x80004005
mov rcx, qword [rbp - 0x59]
call fcn.140890cbc
mov esi, ebx
jmp 0x14007fade
mov byte [r14 + 0x1f8], 1
jmp 0x14007fada
cmp eax, 4
jne 0x14007f9e3
mov rdx, rdi
lea rcx, [rbp - 0x59]
call fcn.140067cc0
nop
lea rcx, [rbp - 0x59]
call fcn.1400796a0
test al, al
jne 0x14007f90c
mov r8, rdi
lea rdx, str.Cannot_create_file_with_auto_name
mov rcx, r14
call fcn.140081950
mov ebx, 0x80004005
test eax, eax
cmovne ebx, eax
jmp 0x14007f9ca
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rdi]
call fcn.14006b7a0
test al, al
jne 0x14007f9da
call fcn.14006c740
mov ebx, eax
lea rdx, str.Cannot_rename_existing_file
lea rcx, [rbp - 0x69]
call fcn.140067d80
nop
test ebx, ebx
je 0x14007f96f
lea rdx, [0x1408c7328]
lea rcx, [rbp - 0x69]
call fcn.140068390
mov edx, ebx
lea rcx, [rbp - 0x49]
call fcn.14006b0d0
nop
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x69]
call fcn.140068340
nop
mov rcx, qword [rbp - 0x49]
call fcn.140890cbc
lea rdx, [0x1408c7328]
lea rcx, [rbp - 0x69]
call fcn.140068390
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x69]
call fcn.140068340
lea rdx, [0x1408c7328]
lea rcx, [rbp - 0x69]
call fcn.140068390
mov rdx, rdi
lea rcx, [rbp - 0x69]
call fcn.140068340
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.140890cbc
test ebx, ebx
jne 0x14007f9ca
mov ebx, 0x80004005
mov rcx, qword [rbp - 0x59]
call fcn.140890cbc
mov esi, ebx
jmp 0x14007fade
mov rcx, qword [rbp - 0x59]
jmp 0x14007fad5
mov rcx, qword [rdi]
mov eax, dword [rbp - 0x19]
shr eax, 4
test al, 1
je 0x14007fa06
call fcn.14006b7c0
test al, al
jne 0x14007fada
lea rdx, str.Cannot_delete_output_folder
jmp 0x14007fa39
call fcn.14006ba20
test al, al
je 0x14007fada
mov rcx, qword [rdi]
call fcn.14006b4f0
test al, al
jne 0x14007fada
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14007fada
lea rdx, str.Cannot_delete_output_file
mov r8, rdi
mov rcx, r14
call fcn.1400819c0
test eax, eax
mov ebx, eax
jne 0x14007fa4c
mov ebx, esi
mov esi, ebx
jmp 0x14007fade
mov rcx, qword [rdi]
call fcn.14006cee0
mov ebx, eax
test eax, eax
js 0x14007fada
lea edx, [rbx + 1]
mov rcx, qword [rdi]
cmp word [rcx + rdx*2], 0
je 0x14007fada
mov rdx, rdi
lea rcx, [rbp - 0x69]
call fcn.140067cc0
nop
cmp ebx, dword [rbp - 0x61]
jae 0x14007fa8b
mov dword [rbp - 0x61], ebx
mov rax, qword [rbp - 0x69]
mov word [rax + rbx*2], si
lea rcx, [rbp - 1]
call fcn.14006b940
lea rcx, [rbp + 0x27]
call fcn.140067fa0
nop
xor r8d, r8d
mov rdx, qword [rbp - 0x69]
lea rcx, [rbp - 1]
call fcn.14006bbd0
test al, al
je 0x14007fac7
mov edx, dword [rbp + 0x1f]
test dl, 1
je 0x14007fac7
and edx, 0xfffffffe
mov rcx, qword [rbp - 0x69]
call fcn.14006b870
nop
mov rcx, qword [rbp + 0x27]
call fcn.140890cbc
nop
mov rcx, qword [rbp - 0x69]
call fcn.140890cbc
mov byte [r15], 0
mov rcx, qword [rbp - 0x11]
call fcn.140890cbc
mov eax, esi
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret