Function at 0x4149b0
Capabilities:
Check if file exists
Delete directory
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4954c2
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x4b80c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x298], ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x27c], 0
xor eax, eax
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
mov byte [ebp - 4], 5
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x414a62
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
cmp byte [ebp + 0x10], cl
jne 0x414c07
cmp dword [edi + 0x10], ecx
jne 0x414a84
lea esi, [ecx + 1]
jmp 0x414f27
mov dword [ebp - 0x24c], ecx
mov ebx, 7
mov dword [ebp - 0x238], ebx
xor eax, eax
mov byte [ebp - 4], bl
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x29c]
push eax
push 0
push 0
push 0x498da0
mov dword [ebp - 0x23c], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x414bb4
mov edx, dword [ebp - 0x29c]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414ad4
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24c]
call fcn.00403a20
push 1
push 0x4af1a0
lea ecx, [ebp - 0x24c]
call fcn.00408970
push 0x11
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x24c]
call fcn.00408970
push dword [ebp - 0x29c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x23c], 0
je 0x414bae
push 1
push 0x4af1a0
lea ecx, [ebp - 0x24c]
call fcn.00408970
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x414b49
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x24c]
push eax
call fcn.00408970
sub esp, 0x18
lea eax, [ebp - 0x24c]
mov ecx, esp
push eax
call fcn.0040a4c0
call fcn.004158e0
mov byte [ebp - 4], 5
add esp, 0x18
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x414bf2
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414bab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415020
push edx
jmp 0x414be9
mov ebx, dword [ebp - 0x238]
mov byte [ebp - 4], 5
cmp ebx, 8
jb 0x414bf2
mov ecx, dword [ebp - 0x24c]
lea ebx, [ebx*2 + 2]
mov eax, ecx
cmp ebx, 0x1000
jb 0x414be8
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415020
push ebx
push ecx
call fcn.0046b46b
add esp, 8
lea edx, [ebp - 0x294]
mov ecx, edi
call fcn.0041db40
mov ebx, dword [ebp - 0x298]
jmp 0x414c17
call fcn.00415a00
lea ecx, [ebp - 0x294]
call fcn.0041dda0
sub eax, 0
je 0x414ec5
mov bh, byte [ebp + 0xc]
mov edi, dword [ebp - 0x298]
sub eax, 1
je 0x414c43
sub eax, 1
jne 0x414c4b
push str.ProductId_already_not_installed__no_action_needed.
push 3
push edi
call fcn.00413ec0
add esp, 0xc
test bh, bh
je 0x414ec1
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x264]
call fcn.00403540
mov edx, esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x264]
call fcn.0041f9d0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 5
mov bl, al
call fcn.004034e0
test bl, bl
jne 0x414c8b
mov esi, 5
jmp 0x414f27
lea eax, [ebp - 0x234]
xor dl, dl
push eax
xor ecx, ecx
call fcn.004200a0
add esp, 4
test al, al
jne 0x414cda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x264]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.0041b6a0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00407f20
lea ecx, [ebp - 0x264]
call fcn.004034e0
mov esi, 4
jmp 0x414f27
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push 0x80
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [edi + 0x30], 0
jne 0x414d6a
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x414e25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x414e25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x264]
push str.DeleteFile_failed_with__i
push eax
call fcn.0041b6a0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00407f20
lea ecx, [ebp - 0x264]
call fcn.004034e0
mov esi, 4
jmp 0x414f27
test bh, bh
jne 0x414e25
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x264]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00403540
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 9
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x414e16
cmp eax, 0x105
jae 0x414e16
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00403540
push 0x1b
push str.EasyAntiCheat_Setup.exe.tmp
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0xa
call fcn.00408970
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x24c]
lea eax, [ebp - 0x264]
cmovae ecx, dword [ebp - 0x24c]
cmp dword [ebp - 0x250], 8
push ecx
cmovae eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x24c]
call fcn.004034e0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 5
call fcn.004034e0
lea eax, [ebp - 0x27c]
xor dl, dl
push eax
mov ecx, 1
call fcn.004200a0
add esp, 4
test al, al
je 0x414e7a
cmp dword [ebp - 0x268], 8
lea eax, [ebp - 0x27c]
push 0x80
cmovae eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x268], 8
lea eax, [ebp - 0x27c]
cmovae eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 8
lea ecx, [ebp - 0x234]
call fcn.00408ea0
cmp eax, 0xffffffff
je 0x414ebc
push eax
push 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x234]
call fcn.00408e10
cmp dword [eax + 0x14], 8
jb 0x414eaa
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x264]
call fcn.004034e0
call fcn.00415a00
xor esi, esi
jmp 0x414f27
sub esp, 8
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.00413da0
push eax
mov ecx, esi
call fcn.00407f20
lea ecx, [ebp - 0x264]
call fcn.004034e0
push 2
push 0x4af8b8
mov ecx, esi
call fcn.00408970
cmp dword [ebp - 0x280], 8
lea eax, [ebp - 0x294]
push dword [ebp - 0x284]
cmovae eax, dword [ebp - 0x294]
mov ecx, esi
push eax
call fcn.00408970
push 0x29
mov ecx, esi
call fcn.0040c8e0
mov esi, 3
mov edx, dword [ebp - 0x280]
cmp edx, 8
jb 0x414f67
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414f5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415020
push edx
push ecx
call fcn.0046b46b
add esp, 8
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x414fa7
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414f9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415020
push edx
push ecx
call fcn.0046b46b
add esp, 8
mov edx, dword [ebp - 0x268]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp edx, 8
jb 0x415000
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414ff6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415020
push edx
push ecx
call fcn.0046b46b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b428
mov esp, ebp
pop ebp
ret 0x10
call fcn.00470244
int3