Function at 0x42389e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456a18
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x896474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x68]
mov byte [eax], 1
call fcn.0040f350
lea ecx, [ebp - 0x40]
call fcn.0040b030
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x68]
push 0
mov dword [ebp - 4], 0
push dword [edi]
call fcn.0040f7f0
test al, al
je 0x423a74
mov eax, dword [ebx + 0x48]
cmp eax, 2
je 0x423b00
test eax, eax
jne 0x4238ad
mov ecx, edi
call fcn.0040c1c0
push edi
inc eax
lea ecx, [ebp - 0x30]
push eax
call fcn.0040adf0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040b370
push dword [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0044886c
mov eax, dword [ebp - 0x50]
add esp, 4
mov ecx, dword [ebp - 0x4c]
xor esi, esi
cmp byte [ebx + 0x3b], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebx + 0xd8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x50]
cmove eax, esi
cmp byte [ebx + 0xcb], 0
push eax
lea eax, [ebx + 0xc0]
mov edx, dword [ecx]
cmove eax, esi
push eax
push dword [ebx + 0x74]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
push ecx
call dword [edx + 0x14]
mov esi, eax
test esi, esi
jne 0x4239eb
mov eax, dword [ebp + 8]
cmp eax, 5
ja case.default.0x423859
jmp dword [eax*4 + 0x423b24]
push dword [ebp - 0x24]
mov esi, 0x80004004
call fcn.0044886c
add esp, 4
jmp 0x423b02
mov dword [ebx + 0x48], 2
push dword [ebp - 0x24]
xor esi, esi
call fcn.0044886c
add esp, 4
jmp 0x423b02
mov dword [ebx + 0x48], 1
jmp case.0x423859.0
mov dword [ebx + 0x48], 3
push dword [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.0044886c
add esp, 4
mov eax, dword [ebx + 0x48]
cmp eax, 3
jne 0x4238ec
push edi
call fcn.0041d950
test al, al
jne 0x4238e0
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, ebx
call fcn.00425b00
mov esi, eax
test esi, esi
jne 0x423b02
mov esi, 0x80004005
jmp 0x423b02
mov byte [ebx + 0x174], 1
jmp 0x423afa
cmp eax, 4
jne 0x423a0b
push edi
lea ecx, [ebp - 0x24]
call fcn.0040ae50
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
call fcn.0041d950
test al, al
jne 0x423936
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, ebx
call fcn.00425b00
push dword [ebp - 0x24]
test eax, eax
mov esi, 0x80004005
cmovne esi, eax
call fcn.0044886c
add esp, 4
jmp 0x423b02
push dword [ebp - 0x24]
push dword [edi]
call fcn.0040f050
test al, al
jne 0x4239fb
call fcn.004103a0
push str.Cannot_rename_existing_file
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0040aef0
mov byte [ebp - 4], 5
test esi, esi
je 0x42399a
push 0x45a350
lea ecx, [ebp - 0x18]
call fcn.0040b440
push esi
lea eax, [ebp - 0x30]
push eax
call fcn.0040e7f0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b400
push dword [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.0044886c
add esp, 4
push 0x45a350
lea ecx, [ebp - 0x18]
call fcn.0040b440
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b400
push 0x45a350
lea ecx, [ebp - 0x18]
call fcn.0040b440
push edi
lea ecx, [ebp - 0x18]
call fcn.0040b400
mov eax, dword [ebx + 0x50]
push dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0044886c
add esp, 4
test esi, esi
jne 0x4239eb
mov esi, 0x80004005
push dword [ebp - 0x24]
call fcn.0044886c
add esp, 4
jmp 0x423b02
push dword [ebp - 0x24]
call fcn.0044886c
add esp, 4
jmp 0x423afa
mov eax, dword [ebp - 0x48]
mov ecx, dword [edi]
shr eax, 4
push ecx
test al, 1
je 0x423a41
call fcn.0040f100
test al, al
jne 0x423afa
push edi
push str.Cannot_delete_output_folder
mov ecx, ebx
call fcn.00425b80
mov esi, eax
test esi, esi
jne 0x423b02
jmp 0x423b00
call fcn.0040f5a0
test al, al
je 0x423afa
push dword [edi]
call fcn.0040ed10
test al, al
jne 0x423afa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x423afa
push edi
push str.Cannot_delete_output_file
jmp 0x423a2b
push dword [edi]
call fcn.00410910
mov esi, eax
test esi, esi
js 0x423afa
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], 0
je 0x423afa
push edi
lea ecx, [ebp - 0x18]
call fcn.0040ae50
mov byte [ebp - 4], 7
cmp esi, dword [ebp - 0x14]
jae 0x423aa9
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x14], esi
mov word [eax + esi*2], cx
lea ecx, [ebp - 0xa0]
call fcn.0040f350
lea ecx, [ebp - 0x78]
call fcn.0040b030
push 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 8
call fcn.0040f7f0
test al, al
je 0x423ae7
mov eax, dword [ebp - 0x80]
test al, 1
je 0x423ae7
and eax, 0xfffffffe
push eax
push dword [ebp - 0x18]
call fcn.0040f1d0
push dword [ebp - 0x78]
call fcn.0044886c
push dword [ebp - 0x18]
call fcn.0044886c
add esp, 8
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
xor esi, esi
push dword [ebp - 0x40]
call fcn.0044886c
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