Function at 0x407cae
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push 0x18
mov eax, 0x48458c
call fcn.0045ae1e
call fcn.0040210e
push eax
lea ecx, [ebp - 0x10]
call fcn.004018d5
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
lea ecx, [ebp - 0x14]
inc ebx
mov byte [ebp - 4], bl
call fcn.0040c34b
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
push ecx
push dword [eax]
call fcn.00408251
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004021b2
mov esi, dword [ebp - 0x24]
cmp esi, dword [ebp - 0x20]
je 0x407f4e
push dword [ebp + 8]
call fcn.00401a02
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00401e19
push 0x5c
push dword [ebp - 0x10]
call fcn.0045bd0e
pop ecx
pop ecx
test eax, eax
jne 0x407d37
or eax, 0xffffffff
jmp 0x407d3c
sub eax, dword [ebp - 0x10]
sar eax, 1
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c55d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040cdda
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004021b2
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407df9
push eax
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00409e00
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x407df9
mov edi, eax
call fcn.0040210e
push eax
lea ecx, [ebp - 0x14]
call fcn.004018d5
inc edi
mov byte [ebp - 4], 4
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c55d
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0040cdda
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004021b2
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407dd9
push esi
call fcn.0046b328
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], bl
call fcn.004021b2
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00409e00
mov edi, eax
cmp edi, 0xffffffff
jne 0x407d8c
mov edi, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406725
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x407f51
cmp esi, dword [ebp - 0x20]
je 0x407e6f
mov edi, eax
push ecx
mov ecx, esi
call fcn.0040c251
mov ecx, dword [esi]
inc eax
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ecx
push eax
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0040c44c
push ecx
push ecx
mov byte [ebp - 4], 6
mov ecx, edi
push dword [esi]
mov edx, dword [ebp + 8]
call fcn.004067bb
add esp, 0xc
test eax, eax
jne 0x407e56
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004021b2
add esi, 4
cmp esi, dword [ebp - 0x20]
jne 0x407e18
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0040c34b
mov esi, str.Config
mov byte [ebp - 4], 7
push esi
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040cefe
add esp, 4
mov byte [ebp - 4], 8
mov edx, esi
mov esi, dword [ebp - 0x14]
mov ecx, esi
push dword [eax]
call fcn.004067bb
mov ecx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.004021b2
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004021b2
lea ecx, [ebp - 0x18]
call fcn.0040c34b
push str.VERSION
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 9
push eax
call fcn.0040cefe
add esp, 4
mov byte [ebp - 4], 0xa
mov edx, str.VERSION
mov ecx, esi
push dword [eax]
call fcn.004067bb
mov ecx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.004021b2
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004021b2
cmp dword [esi], 2
je 0x407f19
mov dword [0x4ac54c], 0x80000
jmp 0x407f49
mov eax, dword [esi + 4]
mov ecx, eax
mov dword [ebp + 8], eax
call fcn.00405e63
mov dword [0x4ac54c], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x407f3f
push 0x4078
push eax
call fcn.0045a4d5
pop ecx
pop ecx
push 8
push esi
call fcn.0045a4d5
pop ecx
pop ecx
mov esi, dword [ebp - 0x24]
jmp 0x407f53
mov edi, dword [ebp - 0x10]
xor ebx, ebx
test esi, esi
je 0x407f93
mov eax, dword [ebp - 0x20]
cmp esi, eax
je 0x407f77
mov edi, eax
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.004021b2
add esi, 4
cmp esi, edi
jne 0x407f60
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
sub eax, esi
and eax, 0xfffffffc
push eax
push esi
call fcn.00408e7f
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea ecx, [edi - 0x10]
call fcn.004021b2
mov eax, ebx
call fcn.0045ade7
ret 4