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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4745f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x238
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20c], ecx
push str.Get_Patchinfo
mov ecx, dword [0x49ca60]
call fcn.00406e40
push 0
mov ecx, dword [0x49ca60]
call fcn.00406140
push ecx
mov ecx, esp
mov dword [ebp - 0x1e0], esp
push 0x479320
call fcn.00409040
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1e4], esp
push 0x479330
mov edx, dword [ebp - 0x20c]
add edx, 0x34
push edx
push ecx
call fcn.0040d640
add esp, 0xc
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x1e8], esp
push str._PatchInfoV2.zip
mov edx, dword [ebp - 0x20c]
add edx, 0x20
push edx
push ecx
call fcn.0040d640
add esp, 0xc
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20c]
call fcn.00407e60
push 0x479358
mov eax, dword [ebp - 0x20c]
add eax, 0x34
push eax
lea ecx, [ebp - 0x1f0]
push ecx
call fcn.0040d640
add esp, 0xc
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x228], edx
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x228]
call fcn.00406190
push eax
call fcn.0042dfc0
add esp, 4
movzx eax, al
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x1e9], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f0]
call fcn.004069f0
movzx ecx, byte [ebp - 0x1e9]
test ecx, ecx
je 0x40fa7c
push 0
push 0
push 4
call fcn.0040c2d0
add esp, 4
mov ecx, eax
call fcn.00406190
push eax
call fcn.0046c08d
xor al, al
jmp 0x40fe3d
lea ecx, [ebp - 0x1c8]
call fcn.0041c8f0
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
push 0x47936c
mov edx, dword [ebp - 0x20c]
add edx, 0x34
push edx
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040d640
add esp, 0xc
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x230], ecx
mov byte [ebp - 4], 5
push 0
push 0
mov ecx, dword [ebp - 0x230]
call fcn.00406190
push eax
lea ecx, [ebp - 0x1c8]
call fcn.0041c2d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1f4]
call fcn.004069f0
jmp 0x40fb78
mov dword [ebp - 4], 3
push 0x4793a4
mov eax, dword [ebp - 0x20c]
add eax, 0x34
push eax
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.0040d640
add esp, 0xc
mov dword [ebp - 0x234], eax
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x238], edx
mov byte [ebp - 4], 8
push 0x479398
mov eax, dword [ebp - 0x238]
push eax
lea ecx, [ebp - 0x1cc]
push ecx
call fcn.0040d640
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1f8]
call fcn.004069f0
mov dword [ebp - 0x1d0], 0
lea ecx, [ebp - 0x1cc]
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x1d0], 0xffffffff
je 0x40fca5
mov edx, dword [ebp - 0x1d0]
and edx, 4
je 0x40fc3f
mov eax, dword [ebp - 0x1d0]
and eax, 0xfffffffb
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
push ecx
lea ecx, [ebp - 0x1cc]
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x1d0]
and edx, 2
je 0x40fc72
mov eax, dword [ebp - 0x1d0]
and eax, 0xfffffffd
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
push ecx
lea ecx, [ebp - 0x1cc]
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x1d0]
and edx, 1
je 0x40fca5
mov eax, dword [ebp - 0x1d0]
and eax, 0xfffffffe
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
push ecx
lea ecx, [ebp - 0x1cc]
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x10000
push 0
push 1
mov ecx, dword [ebp - 0x20c]
add ecx, 0x34
call fcn.00406190
push eax
push 0
lea ecx, [ebp - 0x1c8]
call fcn.0041dd50
push 0
push 0
lea ecx, [ebp - 0x1c8]
call fcn.0041d330
push str.PatchInfoV2.zip
mov edx, dword [ebp - 0x20c]
add edx, 0x34
push edx
lea eax, [ebp - 0x1fc]
push eax
call fcn.0040d640
add esp, 0xc
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1fc]
call fcn.004069f0
mov ecx, dword [ebp - 0x20c]
add ecx, 0x44
call fcn.0042e160
push 0x4793bc
mov ecx, dword [ebp - 0x20c]
add ecx, 0x34
push ecx
lea edx, [ebp - 0x200]
push edx
call fcn.0040d640
add esp, 0xc
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x244]
call fcn.00406190
push eax
mov ecx, dword [ebp - 0x20c]
add ecx, 0x44
call fcn.0042e570
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x200]
call fcn.004069f0
push str.PatchInfoV2
mov ecx, dword [ebp - 0x20c]
add ecx, 0x34
push ecx
lea edx, [ebp - 0x204]
push edx
call fcn.0040d640
add esp, 0xc
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x248]
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x204]
call fcn.004069f0
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 0x38]
mov dword [ecx], 0x41700000
lea ecx, [ebp - 0x20]
call fcn.00401510
mov dword [ebp - 0x20], 0x1f
mov dword [ebp - 0x1c], 0x1ab
mov dword [ebp - 0x18], 0x1ef
mov dword [ebp - 0x14], 0x1bb
push 0
lea ecx, [ebp - 0x20]
call fcn.00401510
push eax
mov ecx, dword [0x49ca64]
call fcn.00408350
mov byte [ebp - 0x205], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1cc]
call fcn.004069f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c8]
call fcn.0041c1d0
mov al, byte [ebp - 0x205]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret