Function at 0x4029f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x164
push ebx
push esi
mov ecx, 0x40bdc0
mov eax, 0x40bdb4
push edi
xor ebx, ebx
mov dword [esp + 0xc], 0x40bda4
mov dword [esp + 0x10], 0x40bd90
mov dword [esp + 0x14], 0x40bd84
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x40bd74
mov dword [esp + 0x20], 0x40bd64
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x40bd58
mov dword [esp + 0x2c], 0x40bd4c
mov dword [esp + 0x30], 0x40bd40
mov dword [esp + 0x34], 0x40bd34
mov dword [esp + 0x38], 0x40bd28
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 0x40bd14
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0x40bd08
mov dword [esp + 0x4c], 0x40bcf8
mov dword [esp + 0x50], 0x40bcec
mov dword [esp + 0x54], 0x40bcdc
mov dword [esp + 0x58], 0x40bcd0
mov dword [esp + 0x5c], 0x40bcc0
mov dword [esp + 0x60], 0x40bcb0
mov dword [esp + 0x64], 0x40bc94
mov dword [esp + 0x68], 0x40bc88
xor edi, edi
jmp 0x402ac0
mov cl, byte [0x411a48]
mov esi, dword [esp + edi*4 + 0xc]
xor eax, eax
cmp cl, bl
mov edx, 0x40bc84
je 0x402ae4
mov byte [esp + eax + 0x6c], cl
mov cl, byte [eax + 0x411a49]
inc eax
cmp cl, bl
jne 0x402ad5
mov cl, 0x5c
inc edx
mov byte [esp + eax + 0x6c], cl
mov cl, byte [edx]
inc eax
cmp cl, bl
jne 0x402ae6
mov cl, byte [esi]
cmp cl, bl
je 0x402b04
inc esi
mov byte [esp + eax + 0x6c], cl
mov cl, byte [esi]
inc eax
cmp cl, bl
jne 0x402af8
mov byte [esp + eax + 0x6c], bl
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402b33
push 0x80
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
inc edi
cmp edi, 7
jl 0x402ac0
xor edi, edi
jmp 0x402b40
mov cl, byte [0x410928]
mov esi, dword [esp + edi*4 + 0x28]
xor eax, eax
cmp cl, bl
mov edx, 0x40bc84
je 0x402b64
mov byte [esp + eax + 0x6c], cl
mov cl, byte [eax + 0x410929]
inc eax
cmp cl, bl
jne 0x402b55
mov cl, 0x5c
inc edx
mov byte [esp + eax + 0x6c], cl
mov cl, byte [edx]
inc eax
cmp cl, bl
jne 0x402b66
mov cl, byte [esi]
cmp cl, bl
je 0x402b84
inc esi
mov byte [esp + eax + 0x6c], cl
mov cl, byte [esi]
inc eax
cmp cl, bl
jne 0x402b78
mov byte [esp + eax + 0x6c], bl
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402bb3
push 0x80
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
inc edi
cmp edi, 8
jl 0x402b40
push 0x411b50
call fcn.004086d0
add esp, 4
cmp eax, 0xa
jbe 0x402cea
push 0x411f08
call fcn.004086d0
add esp, 4
cmp eax, 0xa
jbe 0x402cea
push ebp
xor ebp, ebp
jmp 0x402bf0
mov cl, byte [0x411b50]
mov edi, dword [esp + ebp*4 + 0x4c]
xor eax, eax
cmp cl, bl
mov esi, edi
mov edx, 0x40bc84
je 0x402c1f
jmp 0x402c10
mov byte [esp + eax + 0x70], cl
mov cl, byte [eax + 0x411b51]
inc eax
cmp cl, bl
jne 0x402c10
mov cl, 0x5c
inc edx
mov byte [esp + eax + 0x70], cl
mov cl, byte [edx]
inc eax
cmp cl, bl
jne 0x402c21
mov cl, byte [esi]
cmp cl, bl
je 0x402c3f
inc esi
mov byte [esp + eax + 0x70], cl
mov cl, byte [esi]
inc eax
cmp cl, bl
jne 0x402c33
mov byte [esp + eax + 0x70], bl
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402c6e
push 0x80
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov cl, byte [0x411f08]
xor eax, eax
cmp cl, bl
mov esi, edi
mov edx, 0x40bc84
je 0x402c90
mov byte [esp + eax + 0x70], cl
mov cl, byte [eax + 0x411f09]
inc eax
cmp cl, bl
jne 0x402c81
mov cl, 0x5c
inc edx
mov byte [esp + eax + 0x70], cl
mov cl, byte [edx]
inc eax
cmp cl, bl
jne 0x402c92
mov cl, byte [esi]
cmp cl, bl
je 0x402cb0
inc esi
mov byte [esp + eax + 0x70], cl
mov cl, byte [esi]
inc eax
cmp cl, bl
jne 0x402ca4
mov byte [esp + eax + 0x70], bl
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402cdf
push 0x80
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
inc ebp
cmp ebp, 9
jl 0x402bf0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x164
ret