Function at 0x10063eb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ae5d3
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push esi
push edi
mov eax, dword [0x100df0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x70]
mov byte [eax], 1
call fcn.100201f0
lea ecx, [ebp - 0x48]
call fcn.10019ec0
cmp dword [0x101f491c], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
je 0x10063f0e
mov dword [edi + 0x58], 1
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x70]
push 0
push dword [ebx]
call fcn.100205f0
test al, al
je 0x10064194
mov eax, dword [edi + 0x58]
cmp eax, 2
je 0x10064223
test eax, eax
jne 0x10064030
mov ecx, ebx
call fcn.1001b080
inc eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10046b90
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.1001a180
push dword [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.1009cfdf
mov eax, dword [ebp - 0x58]
add esp, 4
cmp byte [edi + 0x4d], 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
je 0x10063f88
lea esi, [edi + 0x118]
jmp 0x10063f8a
xor esi, esi
cmp byte [edi + 0x10b], 0
je 0x10063f9b
lea edx, [edi + 0x100]
jmp 0x10063f9d
xor edx, edx
mov ecx, dword [edi + 0x60]
lea ebx, [ebp - 0x20]
push ebx
push esi
push edx
push dword [edi + 0x94]
mov eax, dword [ecx]
lea edx, [ebp - 0x70]
push edx
lea edx, [ebp - 0x18]
push edx
push dword [ebp - 0x2c]
push ecx
call dword [eax + 0x14]
mov ebx, dword [ebp + 8]
mov esi, eax
test esi, esi
jne 0x10064094
mov eax, dword [ebp - 0x20]
cmp eax, 6
ja case.default.0x10063fd6
jmp dword [eax*4 + 0x10064248]
push dword [ebp - 0x2c]
mov esi, 0x80004004
call fcn.1009cfdf
add esp, 4
jmp 0x10064225
mov dword [edi + 0x58], 2
push dword [ebp - 0x2c]
xor esi, esi
call fcn.1009cfdf
add esp, 4
jmp 0x10064225
mov dword [edi + 0x58], 1
jmp case.0x10063fd6.0
mov byte [ebp - 0xd], 1
jmp case.0x10063fd6.0
mov dword [edi + 0x58], 3
push dword [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.1009cfdf
add esp, 4
mov eax, dword [edi + 0x58]
cmp eax, 3
je 0x1006415c
cmp byte [ebp - 0xd], 0
jne 0x1006415c
cmp eax, 4
jne 0x100640f4
push ebx
lea ecx, [ebp - 0x1c]
call fcn.10019d80
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.100515e0
test al, al
jne 0x100640a4
push ebx
push str.Cannot_create_file_with_auto_name
mov ecx, edi
call fcn.10067d40
push dword [ebp - 0x1c]
test eax, eax
mov esi, 0x80004005
cmovne esi, eax
call fcn.1009cfdf
add esp, 4
jmp 0x10064225
mov esi, 0x80004005
push dword [ebp - 0x2c]
call fcn.1009cfdf
add esp, 4
jmp 0x10064225
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebx]
call fcn.1001fa30
test al, al
jne 0x100640e4
call fcn.10021c00
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push str.Cannot_rename_existing_file
push eax
mov ecx, edi
call fcn.10067c80
mov esi, eax
test esi, esi
jne 0x100640d4
mov esi, 0x80004005
push dword [ebp - 0x1c]
call fcn.1009cfdf
add esp, 4
jmp 0x10064225
push dword [ebp - 0x1c]
call fcn.1009cfdf
add esp, 4
jmp 0x1006421d
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebx]
shr eax, 4
test al, 1
je 0x10064129
call fcn.1001fc00
test al, al
jne 0x1006421d
push ebx
push str.Cannot_delete_output_folder
mov ecx, edi
call fcn.10067e70
mov esi, eax
test esi, esi
jne 0x10064225
jmp 0x10064223
call fcn.10020480
test al, al
je 0x1006421d
mov ecx, dword [ebx]
call fcn.1001f460
test al, al
jne 0x1006421d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1006421d
push ebx
push str.Cannot_delete_output_file
jmp 0x10064113
mov ecx, ebx
call fcn.100515e0
test al, al
jne 0x10064188
push ebx
push str.Cannot_create_file_with_auto_name
mov ecx, edi
call fcn.10067d40
mov esi, eax
test esi, esi
jne 0x10064225
mov esi, 0x80004005
jmp 0x10064225
mov byte [edi + 0x208], 1
jmp 0x1006421d
mov ecx, dword [ebx]
call fcn.100238e0
mov esi, eax
test esi, esi
js 0x1006421d
mov ecx, dword [ebx]
cmp word [ecx + esi*2 + 2], 0
je 0x1006421d
push ebx
lea ecx, [ebp - 0x1c]
call fcn.10019d80
mov byte [ebp - 4], 5
cmp esi, dword [ebp - 0x18]
jae 0x100641c9
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov word [eax + esi*2], cx
lea ecx, [ebp - 0xa8]
call fcn.100201f0
lea ecx, [ebp - 0x80]
call fcn.10019ec0
push 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 6
call fcn.100205f0
test al, al
je 0x1006420a
mov edx, dword [ebp - 0x88]
test dl, 1
je 0x1006420a
mov ecx, dword [ebp - 0x1c]
and edx, 0xfffffffe
call fcn.100200a0
push dword [ebp - 0x80]
call fcn.1009cfdf
push dword [ebp - 0x1c]
call fcn.1009cfdf
add esp, 8
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
xor esi, esi
push dword [ebp - 0x48]
call fcn.1009cfdf
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8