Function at 0x1400110d0
Capabilities:
Check if file exists

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
mov byte [r8], 1
lea r12, [rsp + 0x60]
mov rsi, rcx
mov rdi, rdx
mov rcx, r12
lea r13, [rsp + 0x88]
mov rbp, r8
call fcn.140008436
mov rcx, r13
call fcn.1400042a2
mov rdx, qword [rdi]
xor r8d, r8d
mov rcx, r12
call fcn.1400089c2
test al, al
je 0x14001137c
mov eax, dword [rsi + 0x68]
cmp eax, 2
je 0x140011426
test eax, eax
jne 0x140011235
mov rcx, rdi
lea rbx, [rsp + 0x98]
call fcn.140004872
mov r8, rdi
mov rcx, rbx
lea edx, [rax + 1]
call fcn.140004128
lea rcx, [rsp + 0x50]
mov r8, r13
mov rdx, rbx
call fcn.1400041fd
mov rcx, qword [rsp + 0x98]
call fcn.140010922
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsi + 0x78]
xor edx, edx
cmp byte [rsi + 0x5b], 0
mov qword [rsp + 0x98], rax
mov rax, qword [rcx]
mov r10, qword [rax + 0x28]
je 0x140011195
lea rdx, [rsi + 0x120]
xor eax, eax
cmp byte [rsi + 0x113], 0
je 0x1400111a7
lea rax, [rsi + 0x108]
lea r8, [rsp + 0x4c]
mov qword [rsp + 0x30], rdx
mov r9, r12
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x38], r8
mov r8, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rsi + 0xb0]
mov qword [rsp + 0x20], rax
call r10
mov rcx, qword [rsp + 0x50]
xchg ebx, eax
test ebx, ebx
jne case.0x1400111fc.2
cmp dword [rsp + 0x4c], 5
ja case.default.0x1400111fc
mov eax, dword [rsp + 0x4c]
lea rdx, [0x140052970]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov ebx, 0x80004004
jmp case.0x1400111fc.2
mov dword [rsi + 0x68], 2
jmp case.0x1400111fc.2
mov dword [rsi + 0x68], 1
jmp case.0x1400111fc.0
mov dword [rsi + 0x68], 3
call fcn.140010922
jmp 0x140011235
mov ebx, 0x80004005
jmp case.0x1400111fc.2
mov eax, dword [rsi + 0x68]
cmp eax, 3
jne 0x14001127a
mov rcx, rdi
call fcn.14000dd8b
test al, al
jne 0x14001126e
mov r8, rdi
lea rdx, str.Cannot_create_file_with_auto_name
mov rcx, rsi
call fcn.140010b88
xchg ebx, eax
test ebx, ebx
jne 0x14001146e
mov ebx, 0x80004005
jmp 0x14001146e
mov byte [rsi + 0x1f8], 1
jmp 0x140011422
cmp eax, 4
jne 0x140011312
lea rbx, [rsp + 0x98]
mov rdx, rdi
mov rcx, rbx
call fcn.1400043d6
mov rcx, rbx
call fcn.14000dd8b
test al, al
jne 0x1400112b6
mov r8, rdi
lea rdx, str.Cannot_create_file_with_auto_name
mov rcx, rsi
call fcn.140010b88
jmp 0x1400112e7
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rdi]
call fcn.1400074b1
test al, al
jne 0x1400112f3
call fcn.140009330
mov qword [rsp + 0x20], rdi
xchg edx, eax
mov r9, rbx
mov rcx, rsi
lea r8, str.Cannot_rename_existing_file
call fcn.140010de0
xchg ebx, eax
test ebx, ebx
jne 0x140011300
mov ebx, 0x80004005
jmp 0x140011300
mov rcx, qword [rsp + 0x98]
jmp 0x14001141d
mov rcx, qword [rsp + 0x98]
call fcn.140010922
jmp 0x14001146e
mov rcx, qword [rdi]
test byte [rsp + 0x80], 0x10
je 0x140011338
call fcn.140007451
mov r8, rdi
lea rdx, str.Cannot_delete_output_folder
test al, al
jne 0x140011422
jmp 0x14001136e
call fcn.140008e3d
test al, al
je 0x140011422
mov rcx, qword [rdi]
call fcn.140007858
test al, al
jne 0x140011422
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140011422
mov r8, rdi
lea rdx, str.Cannot_delete_output_file
mov rcx, rsi
call fcn.140010d16
xchg ebx, eax
jmp 0x14001146e
mov rcx, qword [rdi]
call fcn.140009fda
movsxd rbx, eax
test ebx, ebx
js 0x140011422
mov rdx, qword [rdi]
lea eax, [rbx + 1]
cmp word [rdx + rax*2], 0
je 0x140011422
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.1400043d6
cmp ebx, dword [rsp + 0x58]
jae 0x1400113c1
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x58], ebx
and word [rax + rbx*2], 0
lea rbx, [rsp + 0x98]
mov rcx, rbx
call fcn.140008436
lea rcx, [rsp + 0xc0]
call fcn.1400042a2
mov rdx, qword [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call fcn.1400089c2
test al, al
je 0x14001140b
mov edx, dword [rsp + 0xb8]
test dl, 1
je 0x14001140b
mov rcx, qword [rsp + 0x50]
and edx, 0xfffffffe
call fcn.1400073dd
mov rcx, qword [rsp + 0xc0]
call fcn.140010922
mov rcx, qword [rsp + 0x50]
call fcn.140010922
mov byte [rbp], 0
xor ebx, ebx
jmp 0x14001146e
mov rcx, qword [rsp + 0x88]
call fcn.140010922
xchg ebx, eax
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret