Function at 0x48e340
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x4a4179
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4c3008]
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.00402ec0
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp + 0x78]
call fcn.00401380
push eax
lea ecx, [ebp - 0x80]
call fcn.00478040
movzx ecx, al
test ecx, ecx
je 0x48e8bd
mov edx, dword [ebp + 0x6c]
cmp dword [edx + 0x48], 2
jne 0x48e3ca
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp - 0x38]
jmp 0x48e99c
mov eax, dword [ebp + 0x6c]
cmp dword [eax + 0x48], 0
jne 0x48e5e4
mov ecx, dword [ebp + 0x78]
call fcn.00473020
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.00407bf0
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.004736c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call fcn.004012a0
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.0040b660
mov eax, dword [ebp + 0x6c]
movzx ecx, byte [eax + 0x3b]
test ecx, ecx
je 0x48e44e
mov edx, dword [ebp + 0x6c]
add edx, 0xd8
mov dword [ebp + 0x64], edx
jmp 0x48e455
mov dword [ebp + 0x64], 0
mov eax, dword [ebp + 0x6c]
movzx ecx, byte [eax + 0xcb]
test ecx, ecx
je 0x48e471
mov edx, dword [ebp + 0x6c]
add edx, 0xc0
mov dword [ebp + 0x60], edx
jmp 0x48e478
mov dword [ebp + 0x60], 0
mov ecx, dword [ebp + 0x6c]
add ecx, 0x50
call fcn.00401380
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.00401380
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp + 0x28]
call fcn.00401380
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 0x48e4f2
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x1c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.004012a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp + 0x1c]
jmp 0x48e99c
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x54], ecx
cmp dword [ebp + 0x54], 5
ja case.default.0x48e505
mov edx, dword [ebp + 0x54]
jmp dword [edx*4 + 0x48e9b0]
mov dword [ebp + 0x14], 0x80004004
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.004012a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp + 0x14]
jmp 0x48e99c
mov dword [ebp + 0x10], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.004012a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp + 0x10]
jmp 0x48e99c
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.004012a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp + 0xc]
jmp 0x48e99c
jmp 0x48e5d8
mov ecx, dword [ebp + 0x6c]
mov dword [ecx + 0x48], 1
jmp 0x48e5d8
mov edx, dword [ebp + 0x6c]
mov dword [edx + 0x48], 3
jmp 0x48e5d8
mov dword [ebp + 8], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.004012a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp + 8]
jmp 0x48e99c
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.004012a0
mov eax, dword [ebp + 0x6c]
cmp dword [eax + 0x48], 3
jne 0x48e663
mov ecx, dword [ebp + 0x78]
push ecx
call fcn.00485de0
movzx edx, al
test edx, edx
jne 0x48e654
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.0048f200
mov dword [ebp + 0x50], eax
cmp dword [ebp + 0x50], 0
je 0x48e636
mov edx, dword [ebp + 0x50]
mov dword [ebp + 4], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp + 4]
jmp 0x48e99c
mov dword [ebp], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp]
jmp 0x48e99c
mov eax, dword [ebp + 0x6c]
mov byte [eax + 0x174], 1
jmp 0x48e8b8
mov ecx, dword [ebp + 0x6c]
cmp dword [ecx + 0x48], 4
jne 0x48e7ac
mov edx, dword [ebp + 0x78]
push edx
lea ecx, [ebp + 0x34]
call fcn.00474420
mov byte [ebp - 4], 4
lea eax, [ebp + 0x34]
push eax
call fcn.00485de0
movzx ecx, al
test ecx, ecx
jne 0x48e6fe
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.0048f200
mov dword [ebp + 0x4c], eax
cmp dword [ebp + 0x4c], 0
je 0x48e6d4
mov ecx, dword [ebp + 0x4c]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x34]
call fcn.004012a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp - 0x10]
jmp 0x48e99c
mov dword [ebp - 0x14], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x34]
call fcn.004012a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp - 0x14]
jmp 0x48e99c
lea ecx, [ebp + 0x34]
call fcn.00401380
push eax
mov ecx, dword [ebp + 0x78]
call fcn.00401380
push eax
call fcn.004771f0
movzx edx, al
test edx, edx
jne 0x48e79b
call fcn.00478f40
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.0048f020
mov dword [ebp + 0x48], eax
cmp dword [ebp + 0x48], 0
je 0x48e771
mov ecx, dword [ebp + 0x48]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x34]
call fcn.004012a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp - 0x1c]
jmp 0x48e99c
mov dword [ebp - 0x20], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x34]
call fcn.004012a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp - 0x20]
jmp 0x48e99c
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x34]
call fcn.004012a0
jmp 0x48e8b8
lea ecx, [ebp - 0x80]
call fcn.00402e40
movzx edx, al
test edx, edx
je 0x48e82c
mov ecx, dword [ebp + 0x78]
call fcn.00401380
push eax
call fcn.004772d0
movzx eax, al
test eax, eax
jne 0x48e827
mov ecx, dword [ebp + 0x78]
push ecx
mov edx, dword [str.Cannot_delete_output_folder]
push edx
mov ecx, dword [ebp + 0x6c]
call fcn.0048f110
mov dword [ebp + 0x44], eax
cmp dword [ebp + 0x44], 0
je 0x48e809
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp - 0x24]
jmp 0x48e99c
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp - 0x28]
jmp 0x48e99c
jmp 0x48e8b8
mov ecx, dword [ebp + 0x78]
call fcn.00401380
push eax
call fcn.004788b0
movzx ecx, al
test ecx, ecx
je 0x48e8b8
mov ecx, dword [ebp + 0x78]
call fcn.00401380
push eax
call fcn.00476c60
movzx edx, al
test edx, edx
jne 0x48e8b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x48e8b8
mov eax, dword [ebp + 0x78]
push eax
mov ecx, dword [str.Cannot_delete_output_file]
push ecx
mov ecx, dword [ebp + 0x6c]
call fcn.0048f110
mov dword [ebp + 0x40], eax
cmp dword [ebp + 0x40], 0
je 0x48e89a
mov edx, dword [ebp + 0x40]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp - 0x2c]
jmp 0x48e99c
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402ef0
mov eax, dword [ebp - 0x30]
jmp 0x48e99c
jmp 0x48e97d
mov ecx, dword [ebp + 0x78]
call fcn.00401380
push eax
call fcn.00479c50
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x68], 0
jl 0x48e97d
mov ecx, dword [ebp + 0x78]
call fcn.00401380
mov ecx, dword [ebp + 0x68]
movzx edx, word [eax + ecx*2 + 2]
test edx, edx
je 0x48e97d
mov eax, dword [ebp + 0x78]
push eax
lea ecx, [ebp - 0x48]
call fcn.00474420
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x68]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00402d60
lea ecx, [ebp - 0xcc]
call fcn.00402ec0
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0x48]
call fcn.00401380
push eax
lea ecx, [ebp - 0xcc]
call fcn.00478040
movzx edx, al
test edx, edx
je 0x48e962
lea ecx, [ebp - 0xcc]
call fcn.0040b6a0
movzx eax, al
test eax, eax
je 0x48e962
mov ecx, dword [ebp - 0xac]
and ecx, 0xfffffffe
push ecx
lea ecx, [ebp - 0x48]
call fcn.00401380
push eax
call fcn.004773a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xcc]
call fcn.00402ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004012a0
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.00402ef0
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