Function at 0x4331f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c22c
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x480090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
lea ecx, [ebp - 0xf0]
call fcn.00414f90
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00437500
push eax
lea ecx, [ebp - 0xf0]
call fcn.00416400
movzx ecx, al
test ecx, ecx
je 0x4337f2
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x48], 2
jne 0x43327e
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x74]
jmp 0x4338e9
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x48], 0
jne 0x4334d4
mov ecx, dword [ebp + 8]
call fcn.00411420
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0xa4]
add edx, 1
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 8]
call fcn.004285a0
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x94], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x94]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.004104d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x104]
call fcn.0041b0a0
lea ecx, [ebp - 0xf8]
push ecx
lea edx, [ebp - 0xd8]
push edx
call fcn.004342c0
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x3b]
test ecx, ecx
je 0x43331a
mov edx, dword [ebp - 0x10]
add edx, 0xd8
mov dword [ebp - 0x48], edx
jmp 0x433321
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0xcb]
test ecx, ecx
je 0x43333d
mov edx, dword [ebp - 0x10]
add edx, 0xc0
mov dword [ebp - 0x20], edx
jmp 0x433344
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00437500
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call fcn.00437500
push eax
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0xf8]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00437500
push eax
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4333c7
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0041b0a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x64]
jmp 0x4338e9
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 5
ja case.default.0x4333dd
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x4338fc]
mov dword [ebp - 0x6c], 0x80004004
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0041b0a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x6c]
jmp 0x4338e9
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0041b0a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x98]
jmp 0x4338e9
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], 2
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0041b0a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x58]
jmp 0x4338e9
jmp 0x4334c8
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x48], 1
jmp 0x4334c8
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x48], 3
jmp 0x4334c8
mov dword [ebp - 0xa8], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0041b0a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0xa8]
jmp 0x4338e9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0041b0a0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x48], 3
jne 0x433563
mov ecx, dword [ebp + 8]
push ecx
call fcn.00429da0
movzx edx, al
test edx, edx
jne 0x433554
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [str.Cannot_create_file_with_auto_name]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004365a0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x43352d
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x7c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x7c]
jmp 0x4338e9
mov dword [ebp - 0xa0], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0xa0]
jmp 0x4338e9
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x174], 1
jmp 0x4337ed
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x48], 4
jne 0x4336d2
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x44]
call fcn.0040ff00
mov byte [ebp - 4], 4
lea eax, [ebp - 0x44]
push eax
call fcn.00429da0
movzx ecx, al
test ecx, ecx
jne 0x433614
mov edx, dword [ebp + 8]
push edx
mov eax, dword [str.Cannot_create_file_with_auto_name]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004365a0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4335e1
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0041b0a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x84]
jmp 0x4338e9
mov dword [ebp - 0x90], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0041b0a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x90]
jmp 0x4338e9
lea ecx, [ebp - 0x44]
call fcn.00437500
push eax
mov ecx, dword [ebp + 8]
call fcn.00437500
push eax
call fcn.00415a80
movzx edx, al
test edx, edx
jne 0x4336c1
call fcn.004176d0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [str.Cannot_rename_existing_file]
push edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004364b0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x433694
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0041b0a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x5c]
jmp 0x4338e9
mov dword [ebp - 0x60], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0041b0a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x60]
jmp 0x4338e9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0041b0a0
jmp 0x4337ed
lea ecx, [ebp - 0xf0]
call fcn.00415a10
movzx edx, al
test edx, edx
je 0x43375b
mov ecx, dword [ebp + 8]
call fcn.00437500
push eax
call fcn.00415b60
movzx eax, al
test eax, eax
jne 0x433756
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [str.Cannot_delete_output_folder]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00436640
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x433735
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x68]
jmp 0x4338e9
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x70]
jmp 0x4338e9
jmp 0x4337ed
mov ecx, dword [ebp + 8]
call fcn.00437500
push eax
call fcn.00416240
movzx ecx, al
test ecx, ecx
je 0x4337ed
mov ecx, dword [ebp + 8]
call fcn.00437500
push eax
call fcn.00415540
movzx edx, al
test edx, edx
jne 0x4337ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4337ed
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [str.Cannot_delete_output_file]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00436640
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4337cc
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x78], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x78]
jmp 0x4338e9
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x80]
jmp 0x4338e9
jmp 0x4338c1
mov ecx, dword [ebp + 8]
call fcn.00437500
push eax
call fcn.00417df0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x4338c1
mov ecx, dword [ebp + 8]
call fcn.00437500
mov ecx, dword [ebp - 0x14]
movzx edx, word [eax + ecx*2 + 2]
test edx, edx
je 0x4338c1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040ff00
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xb8]
call fcn.00414c50
lea ecx, [ebp - 0x13c]
call fcn.00414f90
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0xb8]
call fcn.00437500
push eax
lea ecx, [ebp - 0x13c]
call fcn.00416400
movzx edx, al
test edx, edx
je 0x4338a3
lea ecx, [ebp - 0x13c]
call fcn.004359e0
movzx eax, al
test eax, eax
je 0x4338a3
mov ecx, dword [ebp - 0x11c]
and ecx, 0xfffffffe
push ecx
lea ecx, [ebp - 0xb8]
call fcn.00437500
push eax
call fcn.00415c80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x13c]
call fcn.00415020
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.0041b0a0
mov edx, dword [ebp + 0xc]
mov byte [edx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00415020
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8