Function at 0x450f4a
Capabilities:
Check if file exists

Disassembly:
push 0x3bc
mov eax, 0x4c89c1
call fcn.00498256
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00450a0b
pop ecx
pop ecx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
jg 0x450ff6
lea eax, [ebp - 0x3c8]
push eax
call fcn.00405267
lea eax, [ebp - 0x3c0]
push str.Missing_flags
push eax
mov byte [ebp - 4], 1
call fcn.00405d69
pop ecx
pop ecx
lea eax, [ebp - 0x304]
push eax
lea ecx, [ebp - 0x3c8]
call fcn.004052f9
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.004167e3
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x450fca
mov eax, dword [eax + 4]
jmp 0x450fcd
add eax, 4
mov dword [ebp - 0x2d8], eax
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.0048ec72
push 0x4f7698
lea eax, [ebp - 0x2e8]
push eax
call fcn.0048febc
push 0x24c
lea eax, [ebp - 0x2cc]
push ebx
push eax
mov dword [ebp - 0x2d0], ebx
call fcn.0048e2b0
add esp, 0xc
mov edi, 0x4e257c
push edi
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2d1], 1
mov byte [ebp - 0x2d2], bl
call fcn.004078c5
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00416cb8
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.004075b1
push 0x4eb604
lea eax, [ebp - 0x80]
push eax
call fcn.0040a4b5
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x45106b
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x2d0]
push ecx
push eax
call dword [0x50ca94]
mov dword [ebp - 0x2d8], eax
cmp eax, 0xffffffff
mov byte [ebp - 4], 7
je 0x45120a
mov byte [ebp - 0x2d2], 1
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x2c]
call fcn.004078c5
push 0x4e2668
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.0042461f
test eax, eax
je 0x4511e0
push 0x4eb60c
call fcn.0042461f
test eax, eax
je 0x4511e0
push edi
lea eax, [ebp - 0x304]
call fcn.004078c5
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
lea ebx, [ebp - 0x304]
mov byte [ebp - 4], 9
call fcn.00416d1d
pop ecx
pop ecx
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x304]
mov byte [ebp - 4], 0xb
call fcn.004075b1
push edi
lea eax, [ebp - 0x48]
push eax
call fcn.0040a4b5
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0x48]
call fcn.0040b062
test byte [ebp - 0x2d0], 0x10
je 0x451146
test byte [ebp + 0xc], 4
jle 0x4511c2
push dword [ebp + 0xc]
mov eax, esi
push eax
call fcn.00450f4a
and byte [ebp - 0x2d1], al
pop ecx
pop ecx
jmp 0x4511c2
test byte [ebp + 0xc], 1
jle 0x4511bc
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x451158
lea eax, [ebp - 0x44]
push eax
call dword [0x50ca90]
test eax, eax
jne 0x4511c2
lea eax, [ebp - 0x3c8]
push eax
call fcn.00405267
lea eax, [ebp - 0x48]
push eax
push ecx
lea eax, [ebp - 0x3c0]
push str.Error_deleting
push eax
mov byte [ebp - 4], 0xc
call fcn.00405d69
add esp, 0xc
push eax
call fcn.00405eb8
pop ecx
pop ecx
lea eax, [ebp - 0x304]
push eax
lea ecx, [ebp - 0x3c8]
call fcn.004052f9
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x18], 8
jb 0x451275
mov eax, dword [eax + 4]
jmp 0x451278
mov byte [ebp - 0x2d1], bl
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.004075b1
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.004075b1
xor ebx, ebx
jmp 0x4511ef
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.004075b1
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2d8]
call dword [0x50ca98]
test eax, eax
jne 0x451093
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jb 0x451229
cmp esi, 3
jbe 0x4512e8
cmp esi, 0x12
je 0x4512e8
cmp esi, ebx
je 0x4512e8
lea eax, [ebp - 0x3c8]
push eax
call fcn.00405267
lea eax, [ebp - 0x3c0]
push str.Error_in_FindFirst_NextFile
push eax
mov byte [ebp - 4], 0x10
call fcn.0040c2c5
pop ecx
pop ecx
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x3c8]
call fcn.004052f9
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x18], 8
jb 0x4512bc
mov eax, dword [eax + 4]
jmp 0x4512bf
add eax, 4
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.00425a3b
push eax
lea eax, [ebp - 0x320]
push eax
mov byte [ebp - 4], 0xe
call fcn.004167e3
add esp, 0x10
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x18], 0x10
jb 0x4512a8
mov eax, dword [eax + 4]
jmp 0x4512ab
add eax, 4
mov dword [ebp - 0x2dc], eax
lea eax, [ebp - 0x2dc]
jmp 0x450fd9
add eax, 4
push eax
lea eax, [ebp - 0x33c]
push eax
mov eax, esi
call fcn.00425a0e
push eax
lea eax, [ebp - 0x304]
push eax
mov byte [ebp - 4], 0x12
call fcn.004167e3
add esp, 0x10
mov byte [ebp - 4], 0x13
jmp 0x45129d
cmp dword [ebp - 0x2d8], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x451306
push dword [ebp - 0x2d8]
call esi
or dword [ebp - 0x2d8], 0xffffffff
cmp byte [ebp - 0x2d2], bl
je 0x4513be
cmp byte [ebp - 0x2d1], bl
je 0x4513be
test byte [ebp + 0xc], 2
jle 0x4513be
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
jae 0x451334
lea eax, [ebp - 0x60]
push eax
call dword [0x50cb30]
test eax, eax
jne 0x4513be
lea eax, [ebp - 0x3c8]
push eax
call fcn.00405267
lea eax, [ebp - 0x64]
push eax
push ecx
lea eax, [ebp - 0x3c0]
push str.Error_deleting_directory:
push eax
mov byte [ebp - 4], 0x14
call fcn.00405d69
add esp, 0xc
push eax
call fcn.00405eb8
pop ecx
pop ecx
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x3c8]
call fcn.004052f9
mov byte [ebp - 4], 0x15
cmp dword [eax + 0x18], 8
jb 0x451391
mov eax, dword [eax + 4]
jmp 0x451394
add eax, 4
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.00425a3b
push eax
lea eax, [ebp - 0x304]
push eax
mov byte [ebp - 4], 0x16
call fcn.004167e3
add esp, 0x10
mov byte [ebp - 4], 0x17
jmp 0x45129d
cmp dword [ebp - 0x2d8], 0xffffffff
je 0x4513cf
push dword [ebp - 0x2d8]
call esi
push ebx
push 1
lea esi, [ebp - 0x80]
call fcn.004075b1
push ebx
push 1
lea esi, [ebp - 0x64]
call fcn.004075b1
mov al, byte [ebp - 0x2d1]
call fcn.004982d9
ret