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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49657a
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x4ba088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xec], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x98], 0
lea ecx, [ebp - 0x84]
call fcn.0040b4f0
mov byte [ebp - 4], 2
call fcn.0041cc90
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x40b499
mov dword [ebp - 0x1c], 0
push 0x4b0238
lea ecx, [ebp + 0x20]
call fcn.0040bcc0
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0047b83e
add esp, 0xc
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x40ade3
cmp dword [ebp - 0x1c], 0
jne 0x40af3e
lea ecx, [ebp + 0x20]
call fcn.0040bcc0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0xffffffff
je 0x40af02
mov ecx, dword [ebp - 0x94]
and ecx, 1
mov byte [ebp - 0x89], cl
movzx edx, byte [ebp - 0x89]
test edx, edx
je 0x40aec4
mov eax, dword [ebp - 0x94]
and eax, 0xfffffffe
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
push ecx
lea ecx, [ebp + 0x20]
call fcn.0040bcc0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp + 0x20]
call fcn.0040bcc0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4b023c
lea ecx, [ebp + 0x20]
call fcn.0040bcc0
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.0047b83e
add esp, 0xc
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x40ae86
cmp dword [ebp - 0x1c], 0
jne 0x40aec2
mov byte [ebp - 0x8a], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.0040b540
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040bd70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.0040bd70
mov al, byte [ebp - 0x8a]
jmp 0x40b4d0
jmp 0x40af00
mov byte [ebp - 0x8b], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.0040b540
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040bd70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.0040bd70
mov al, byte [ebp - 0x8b]
jmp 0x40b4d0
jmp 0x40af3e
mov byte [ebp - 0x8c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.0040b540
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040bd70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.0040bd70
mov al, byte [ebp - 0x8c]
jmp 0x40b4d0
xorps xmm0, xmm0
movlpd qword [ebp - 0x84], xmm0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x198]
push edx
call fcn.0040fc90
add esp, 8
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xe0]
push ecx
push 0x4bd794
lea edx, [ebp - 0x180]
push edx
call fcn.0040cba0
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 4
push 0x4b0240
mov ecx, dword [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x168]
push edx
call fcn.0040cbe0
add esp, 0xc
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040bbc0
lea ecx, [ebp - 0x168]
call fcn.00407770
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x180]
call fcn.00407770
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x198]
call fcn.00407770
push 7
lea ecx, [ebp - 0xfc]
push ecx
call fcn.00403810
mov ecx, eax
call fcn.00416120
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
push edx
lea eax, [ebp - 0xf4]
push eax
call fcn.0040cc20
add esp, 8
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040bad0
lea ecx, [ebp - 0xf4]
call fcn.0040bb10
lea ecx, [ebp - 0xfc]
call fcn.0040bb10
push 8
lea edx, [ebp - 0x138]
push edx
call fcn.00403810
mov ecx, eax
call fcn.00416120
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040cc20
add esp, 8
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x58]
call fcn.0040bad0
lea ecx, [ebp - 0x104]
call fcn.0040bb10
lea ecx, [ebp - 0x138]
call fcn.0040bb10
call fcn.00403810
mov ecx, eax
call fcn.00403480
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x64
mov dword [ebp - 0x38], 0
push 0xa
lea eax, [ebp - 0x118]
push eax
call fcn.00403810
mov ecx, eax
call fcn.00416120
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.0040cc20
add esp, 8
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040bad0
lea ecx, [ebp - 0x110]
call fcn.0040bb10
lea ecx, [ebp - 0x118]
call fcn.0040bb10
push 9
lea ecx, [ebp - 0x128]
push ecx
call fcn.00403810
mov ecx, eax
call fcn.00416120
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xc4]
push edx
lea eax, [ebp - 0x120]
push eax
call fcn.0040cc20
add esp, 8
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0x48]
call fcn.0040bad0
lea ecx, [ebp - 0x120]
call fcn.0040bb10
lea ecx, [ebp - 0x128]
call fcn.0040bb10
mov edx, dword [ebp + 0x38]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x40]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x44]
mov dword [ebp - 0x20], edx
push 0xffac837c
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x108], esp
push 0x4bd77c
push 0x4b0248
push eax
call fcn.0040cc50
add esp, 0xc
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 5
push 0xff71615f
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe8], esp
lea edx, [ebp - 0x78]
push edx
call fcn.004077c0
lea ecx, [ebp - 0x50]
call fcn.0040c930
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00408930
lea eax, [ebp + 8]
push eax
push 0x4bd7ac
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.0040cd20
add esp, 0xc
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
call fcn.0040bcc0
push eax
push 0x2712
mov edx, dword [ebp - 0x88]
push edx
call fcn.00420650
add esp, 0xc
lea ecx, [ebp - 0x1b0]
call fcn.0040bd70
push 0x40a8f0
push 0x4efb
mov eax, dword [ebp - 0x88]
push eax
call fcn.00420650
add esp, 0xc
lea ecx, [ebp - 0x84]
push ecx
push 0x2749
mov edx, dword [ebp - 0x88]
push edx
call fcn.00420650
add esp, 0xc
push 0
push 0x2b
mov eax, dword [ebp - 0x88]
push eax
call fcn.00420650
add esp, 0xc
push 0x40ad10
push 0x4e2b
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.00420650
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
push 0x2711
mov eax, dword [ebp - 0x88]
push eax
call fcn.00420650
add esp, 0xc
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.0041ccd0
add esp, 4
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x40b3be
cmp dword [ebp - 0x98], 0x2a
je 0x40b382
mov edx, dword [ebp - 0x98]
push edx
call fcn.0041d000
add esp, 4
push eax
lea ecx, [ebp - 0x150]
call fcn.0040be40
mov byte [ebp - 4], 6
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x1c8]
push ecx
call fcn.0040fc90
add esp, 8
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], edx
mov byte [ebp - 4], 7
push 0
push 0x4b025c
mov ecx, dword [ebp - 0xd4]
call fcn.00409140
push eax
call fcn.00403810
mov ecx, eax
call fcn.00403480
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c8]
call fcn.00407770
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x150]
call fcn.0040bd70
mov byte [ebp - 0x8d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.0040b540
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040bd70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.0040bd70
mov al, byte [ebp - 0x8d]
jmp 0x40b4d0
mov eax, dword [ebp - 0x88]
push eax
call fcn.0041cc50
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0047921f
add esp, 4
push 8
lea ecx, [ebp - 0x18]
call fcn.00403c20
push 7
lea edx, [ebp - 0x130]
push edx
call fcn.00403810
mov ecx, eax
call fcn.00416120
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040cc20
add esp, 8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x130]
call fcn.0040bb10
push ecx
movss xmm0, dword [0x4b207c]
movss dword [esp], xmm0
lea ecx, [ebp - 0x18]
call fcn.0040c930
mov ecx, eax
call fcn.00408230
push 0
push 0
call fcn.00403810
mov ecx, eax
call fcn.00403480
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [ebp - 0x8e], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0040bb10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.0040b540
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040bd70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.0040bd70
mov al, byte [ebp - 0x8e]
jmp 0x40b4d0
mov byte [ebp - 0x8f], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.0040b540
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040bd70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.0040bd70
mov al, byte [ebp - 0x8f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045dc13
mov esp, ebp
pop ebp
ret 0x40