Function at 0x45ef00
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x4729b3
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x484008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp + 0x6c], ecx
mov eax, dword [ebp + 0x7c]
mov byte [eax], 1
lea ecx, [ebp - 0x80]
call fcn.00402e30
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp + 0x78]
call fcn.004012b0
push eax
lea ecx, [ebp - 0x80]
call fcn.00448be0
movzx ecx, al
test ecx, ecx
je 0x45f47d
mov edx, dword [ebp + 0x6c]
cmp dword [edx + 0x48], 2
jne 0x45ef8a
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp - 0x38]
jmp 0x45f55c
mov eax, dword [ebp + 0x6c]
cmp dword [eax + 0x48], 0
jne 0x45f1a4
mov ecx, dword [ebp + 0x78]
call fcn.00443b60
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
push ecx
lea edx, [ebp - 0x94]
push edx
mov ecx, dword [ebp + 0x78]
call fcn.00407b70
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x20], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp + 0x20]
push edx
lea eax, [ebp + 0x28]
push eax
call fcn.00444200
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call fcn.004011d0
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.0040b640
mov eax, dword [ebp + 0x6c]
movzx ecx, byte [eax + 0x3b]
test ecx, ecx
je 0x45f00e
mov edx, dword [ebp + 0x6c]
add edx, 0xd8
mov dword [ebp + 0x64], edx
jmp 0x45f015
mov dword [ebp + 0x64], 0
mov eax, dword [ebp + 0x6c]
movzx ecx, byte [eax + 0xcb]
test ecx, ecx
je 0x45f031
mov edx, dword [ebp + 0x6c]
add edx, 0xc0
mov dword [ebp + 0x60], edx
jmp 0x45f038
mov dword [ebp + 0x60], 0
mov ecx, dword [ebp + 0x6c]
add ecx, 0x50
call fcn.004012b0
mov dword [ebp + 0x5c], eax
lea eax, [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x64]
push ecx
mov edx, dword [ebp + 0x60]
push edx
mov ecx, dword [ebp + 0x6c]
add ecx, 0x74
call fcn.004012b0
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp + 0x28]
call fcn.004012b0
push eax
mov edx, dword [ebp + 0x5c]
push edx
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
mov dword [ebp + 0x58], eax
cmp dword [ebp + 0x58], 0
je 0x45f0b2
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x1c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.004011d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp + 0x1c]
jmp 0x45f55c
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x54], ecx
cmp dword [ebp + 0x54], 5
ja case.default.0x45f0c5
mov edx, dword [ebp + 0x54]
jmp dword [edx*4 + 0x45f570]
mov dword [ebp + 0x14], 0x80004004
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.004011d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp + 0x14]
jmp 0x45f55c
mov dword [ebp + 0x10], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.004011d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp + 0x10]
jmp 0x45f55c
mov eax, dword [ebp + 0x6c]
mov dword [eax + 0x48], 2
mov dword [ebp + 0xc], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.004011d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp + 0xc]
jmp 0x45f55c
jmp 0x45f198
mov ecx, dword [ebp + 0x6c]
mov dword [ecx + 0x48], 1
jmp 0x45f198
mov edx, dword [ebp + 0x6c]
mov dword [edx + 0x48], 3
jmp 0x45f198
mov dword [ebp + 8], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.004011d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp + 8]
jmp 0x45f55c
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.004011d0
mov eax, dword [ebp + 0x6c]
cmp dword [eax + 0x48], 3
jne 0x45f223
mov ecx, dword [ebp + 0x78]
push ecx
call fcn.004569a0
movzx edx, al
test edx, edx
jne 0x45f214
mov eax, dword [ebp + 0x78]
push eax
mov ecx, dword [str.Cannot_create_file_with_auto_name]
push ecx
mov ecx, dword [ebp + 0x6c]
call fcn.0045fdd0
mov dword [ebp + 0x50], eax
cmp dword [ebp + 0x50], 0
je 0x45f1f6
mov edx, dword [ebp + 0x50]
mov dword [ebp + 4], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp + 4]
jmp 0x45f55c
mov dword [ebp], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp]
jmp 0x45f55c
mov eax, dword [ebp + 0x6c]
mov byte [eax + 0x174], 1
jmp 0x45f478
mov ecx, dword [ebp + 0x6c]
cmp dword [ecx + 0x48], 4
jne 0x45f36c
mov edx, dword [ebp + 0x78]
push edx
lea ecx, [ebp + 0x34]
call fcn.00444f60
mov byte [ebp - 4], 4
lea eax, [ebp + 0x34]
push eax
call fcn.004569a0
movzx ecx, al
test ecx, ecx
jne 0x45f2be
mov edx, dword [ebp + 0x78]
push edx
mov eax, dword [str.Cannot_create_file_with_auto_name]
push eax
mov ecx, dword [ebp + 0x6c]
call fcn.0045fdd0
mov dword [ebp + 0x4c], eax
cmp dword [ebp + 0x4c], 0
je 0x45f294
mov ecx, dword [ebp + 0x4c]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x34]
call fcn.004011d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp - 0x10]
jmp 0x45f55c
mov dword [ebp - 0x14], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x34]
call fcn.004011d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp - 0x14]
jmp 0x45f55c
lea ecx, [ebp + 0x34]
call fcn.004012b0
push eax
mov ecx, dword [ebp + 0x78]
call fcn.004012b0
push eax
call fcn.00447d70
movzx edx, al
test edx, edx
jne 0x45f35b
call fcn.00449ae0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x78]
push eax
lea ecx, [ebp + 0x34]
push ecx
mov edx, dword [str.Cannot_rename_existing_file]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x6c]
call fcn.0045fbf0
mov dword [ebp + 0x48], eax
cmp dword [ebp + 0x48], 0
je 0x45f331
mov ecx, dword [ebp + 0x48]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x34]
call fcn.004011d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp - 0x1c]
jmp 0x45f55c
mov dword [ebp - 0x20], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x34]
call fcn.004011d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp - 0x20]
jmp 0x45f55c
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x34]
call fcn.004011d0
jmp 0x45f478
lea ecx, [ebp - 0x80]
call fcn.00402db0
movzx edx, al
test edx, edx
je 0x45f3ec
mov ecx, dword [ebp + 0x78]
call fcn.004012b0
push eax
call fcn.00447e50
movzx eax, al
test eax, eax
jne 0x45f3e7
mov ecx, dword [ebp + 0x78]
push ecx
mov edx, dword [str.Cannot_delete_output_folder]
push edx
mov ecx, dword [ebp + 0x6c]
call fcn.0045fce0
mov dword [ebp + 0x44], eax
cmp dword [ebp + 0x44], 0
je 0x45f3c9
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp - 0x24]
jmp 0x45f55c
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp - 0x28]
jmp 0x45f55c
jmp 0x45f478
mov ecx, dword [ebp + 0x78]
call fcn.004012b0
push eax
call fcn.00449450
movzx ecx, al
test ecx, ecx
je 0x45f478
mov ecx, dword [ebp + 0x78]
call fcn.004012b0
push eax
call fcn.004477e0
movzx edx, al
test edx, edx
jne 0x45f478
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45f478
mov eax, dword [ebp + 0x78]
push eax
mov ecx, dword [str.Cannot_delete_output_file]
push ecx
mov ecx, dword [ebp + 0x6c]
call fcn.0045fce0
mov dword [ebp + 0x40], eax
cmp dword [ebp + 0x40], 0
je 0x45f45a
mov edx, dword [ebp + 0x40]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp - 0x2c]
jmp 0x45f55c
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp - 0x30]
jmp 0x45f55c
jmp 0x45f53d
mov ecx, dword [ebp + 0x78]
call fcn.004012b0
push eax
call fcn.0044a7f0
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x68], 0
jl 0x45f53d
mov ecx, dword [ebp + 0x78]
call fcn.004012b0
mov ecx, dword [ebp + 0x68]
movzx edx, word [eax + ecx*2 + 2]
test edx, edx
je 0x45f53d
mov eax, dword [ebp + 0x78]
push eax
lea ecx, [ebp - 0x48]
call fcn.00444f60
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x68]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00402cd0
lea ecx, [ebp - 0xcc]
call fcn.00402e30
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0x48]
call fcn.004012b0
push eax
lea ecx, [ebp - 0xcc]
call fcn.00448be0
movzx edx, al
test edx, edx
je 0x45f522
lea ecx, [ebp - 0xcc]
call fcn.0040b680
movzx eax, al
test eax, eax
je 0x45f522
mov ecx, dword [ebp - 0xac]
and ecx, 0xfffffffe
push ecx
lea ecx, [ebp - 0x48]
call fcn.004012b0
push eax
call fcn.00447f20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xcc]
call fcn.00402e60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004011d0
mov edx, dword [ebp + 0x7c]
mov byte [edx], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402e60
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
add ebp, 0x70
mov esp, ebp
pop ebp
ret 8