Function at 0x4190ac
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xe0
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov byte [r8], 1
lea rcx, [rsp + 0x60]
call fcn.00408a0c
lea rcx, [rsp + 0x88]
call fcn.00403838
nop
xor r8d, r8d
mov rdx, qword [rdi]
lea rcx, [rsp + 0x60]
call fcn.00409070
xor ebx, ebx
cmp al, bl
je 0x419419
cmp dword [rsi + 0x68], 2
jne 0x419110
jmp 0x419405
cmp dword [rsi + 0x68], ebx
jne 0x41926b
mov rcx, rdi
call fcn.00403e14
lea r8d, [rax + 1]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.00417d54
nop
lea r8, [rsp + 0x88]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.00403774
nop
mov rcx, qword [rsp + 0x50]
call fcn.004046d0
mov r11, qword [rsp + 0x78]
mov qword [rsp + 0x120], r11
mov rcx, qword [rsi + 0x78]
mov r10, qword [rsi + 0xc8]
mov r11, qword [rcx]
mov al, byte [rsi + 0x5b]
lea rdx, [rsi + 0x160]
neg al
sbb r9, r9
and r9, rdx
mov al, byte [rsi + 0x153]
lea rdx, [rsi + 0x148]
neg al
sbb r8, r8
and r8, rdx
lea rax, [rsp + 0x118]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r10
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x120]
mov rdx, qword [rsp + 0x40]
call qword [r11 + 0x28]
mov r12d, eax
cmp eax, ebx
je 0x4191e1
mov rcx, qword [rsp + 0x40]
call fcn.004046d0
nop
mov ebx, r12d
jmp 0x419405
mov ecx, dword [rsp + 0x118]
cmp ecx, ebx
je 0x419261
dec ecx
je 0x41925a
dec ecx
je 0x41924a
dec ecx
je 0x419233
dec ecx
je 0x41922a
dec ecx
je 0x419215
mov rcx, qword [rsp + 0x40]
call fcn.004046d0
nop
mov ebx, 0x80004005
jmp 0x419405
mov rcx, qword [rsp + 0x40]
call fcn.004046d0
nop
mov ebx, 0x80004004
jmp 0x419405
mov dword [rsi + 0x68], 3
jmp 0x419261
mov dword [rsi + 0x68], 2
mov rcx, qword [rsp + 0x40]
call fcn.004046d0
nop
jmp 0x419405
mov rcx, qword [rsp + 0x40]
call fcn.004046d0
nop
jmp 0x419405
mov dword [rsi + 0x68], 1
mov rcx, qword [rsp + 0x40]
call fcn.004046d0
cmp dword [rsi + 0x68], 3
jne 0x4192b0
mov rcx, rdi
call fcn.0041046c
cmp al, bl
jne 0x4192a4
mov r8, rdi
lea rdx, str.Cannot_create_file_with_auto_name
mov rcx, rsi
call fcn.00418c20
cmp eax, ebx
je 0x41929a
mov ebx, eax
jmp 0x419405
mov ebx, 0x80004005
jmp 0x419405
mov byte [rsi + 0x298], 1
jmp 0x4194c3
cmp dword [rsi + 0x68], 4
jne 0x419382
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.00403994
nop
lea rcx, [rsp + 0x50]
call fcn.0041046c
cmp al, bl
jne 0x419315
mov r8, rdi
lea rdx, str.Cannot_create_file_with_auto_name
mov rcx, rsi
call fcn.00418c20
mov edi, eax
cmp eax, ebx
je 0x419300
mov rcx, qword [rsp + 0x50]
call fcn.004046d0
nop
mov ebx, edi
jmp 0x419405
mov rcx, qword [rsp + 0x50]
call fcn.004046d0
nop
mov ebx, 0x80004005
jmp 0x419405
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdi]
call fcn.004078b4
cmp al, bl
jne 0x419373
call fcn.00409d64
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
lea r8, str.Cannot_rename_existing_file
mov edx, eax
mov rcx, rsi
call fcn.00418da0
mov edi, eax
cmp eax, ebx
je 0x41935e
mov rcx, qword [rsp + 0x50]
call fcn.004046d0
nop
mov ebx, edi
jmp 0x419405
mov rcx, qword [rsp + 0x50]
call fcn.004046d0
nop
mov ebx, 0x80004005
jmp 0x419405
mov rcx, qword [rsp + 0x50]
call fcn.004046d0
jmp 0x4194c3
mov eax, dword [rsp + 0x80]
shr eax, 4
test al, 1
je 0x4193bc
mov rcx, qword [rdi]
call fcn.0040780c
cmp al, bl
jne 0x4194c3
mov r8, rdi
lea rdx, str.Cannot_delete_output_folder
mov rcx, rsi
call fcn.00418ca8
cmp eax, ebx
je 0x4193ba
mov ebx, eax
jmp 0x419405
jmp 0x419405
mov rcx, qword [rdi]
call fcn.004098e8
cmp al, bl
je 0x4194c3
mov rcx, qword [rdi]
call fcn.00407bf8
cmp al, bl
jne 0x4194c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4194c3
mov r8, rdi
lea rdx, str.Cannot_delete_output_file
mov rcx, rsi
call fcn.00418ca8
cmp eax, ebx
je 0x419405
mov ebx, eax
jmp 0x419405
mov rcx, qword [rsp + 0x88]
call fcn.004046d0
mov eax, ebx
jmp 0x4194d5
mov rcx, qword [rdi]
call fcn.0040b590
mov esi, eax
cmp eax, ebx
jl 0x4194c3
mov r8, qword [rdi]
lea ecx, [rsi + 1]
cmp word [r8 + rcx*2], bx
je 0x4194c3
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.00403994
nop
cmp esi, dword [rsp + 0x48]
jae 0x41945d
mov dword [rsp + 0x48], esi
mov rax, qword [rsp + 0x40]
mov word [rax + rsi*2], bx
lea rcx, [rsp + 0xa0]
call fcn.00408a0c
lea rcx, [rsp + 0xc8]
call fcn.00403838
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xa0]
call fcn.00409070
cmp al, bl
je 0x4194ab
mov edx, dword [rsp + 0xc0]
test dl, 1
je 0x4194ab
and edx, 0xfffffffe
mov rcx, qword [rsp + 0x40]
call fcn.00407750
nop
mov rcx, qword [rsp + 0xc8]
call fcn.004046d0
nop
mov rcx, qword [rsp + 0x40]
call fcn.004046d0
mov byte [rbp], bl
mov rcx, qword [rsp + 0x88]
call fcn.004046d0
xor eax, eax
add rsp, 0xe0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret