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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4746a2
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.00406e30
push 0
mov ecx, dword [0x49ca60]
call fcn.00406130
push ecx
mov ecx, esp
mov dword [ebp - 0x1e0], esp
push 0x4792f0
call fcn.00409030
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 0x479300
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.00407e50
push 0x479328
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.00413160
push eax
call fcn.0042e070
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.004069e0
movzx ecx, byte [ebp - 0x1e9]
test ecx, ecx
je 0x40facc
push 0
push 0
push 4
call fcn.0040c280
add esp, 4
mov ecx, eax
call fcn.00413160
push eax
call fcn.0046c13d
xor al, al
jmp 0x40fe8d
lea ecx, [ebp - 0x1c8]
call fcn.0041c9a0
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
push 0x47933c
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.00413160
push eax
lea ecx, [ebp - 0x1c8]
call fcn.0041c380
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1f4]
call fcn.004069e0
jmp 0x40fbc8
mov dword [ebp - 4], 3
push 0x479374
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 0x479368
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.004069e0
mov dword [ebp - 0x1d0], 0
lea ecx, [ebp - 0x1cc]
call fcn.00413160
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x1d0], 0xffffffff
je 0x40fcf5
mov edx, dword [ebp - 0x1d0]
and edx, 4
je 0x40fc8f
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.00413160
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x1d0]
and edx, 2
je 0x40fcc2
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.00413160
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x1d0]
and edx, 1
je 0x40fcf5
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.00413160
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.00413160
push eax
push 0
lea ecx, [ebp - 0x1c8]
call fcn.0041de00
push 0
push 0
lea ecx, [ebp - 0x1c8]
call fcn.0041d3e0
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.00413160
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1fc]
call fcn.004069e0
mov ecx, dword [ebp - 0x20c]
add ecx, 0x44
call fcn.0042e210
push 0x47938c
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.00413160
push eax
mov ecx, dword [ebp - 0x20c]
add ecx, 0x44
call fcn.0042e620
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x200]
call fcn.004069e0
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.00413160
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x204]
call fcn.004069e0
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.00408340
mov byte [ebp - 0x205], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1cc]
call fcn.004069e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c8]
call fcn.0041c280
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