Function at 0x415eb0
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 0x4984f2
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x4bd0c8]
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 - 0x29c], 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 0x415f62
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
cmp byte [ebp + 0x10], cl
jne 0x416107
cmp dword [edi + 0x10], ecx
jne 0x415f84
lea esi, [ecx + 1]
jmp 0x416435
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 - 0x298]
push eax
push 0
push 0
push 0x49be50
mov dword [ebp - 0x23c], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x4160b4
mov edx, dword [ebp - 0x298]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415fd4
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24c]
call fcn.00403bf0
push 1
push 0x4b2214
lea ecx, [ebp - 0x24c]
call fcn.00409ee0
push 0xd
push str.EasyAntiCheat
lea ecx, [ebp - 0x24c]
call fcn.00409ee0
push dword [ebp - 0x298]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x23c], 0
je 0x4160ae
push 1
push 0x4b2214
lea ecx, [ebp - 0x24c]
call fcn.00409ee0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x416049
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x24c]
push eax
call fcn.00409ee0
sub esp, 0x18
lea eax, [ebp - 0x24c]
mov ecx, esp
push eax
call fcn.0040ba30
call fcn.00416f50
mov byte [ebp - 4], 5
add esp, 0x18
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x4160f2
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4160ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41652e
push edx
jmp 0x4160e9
mov ebx, dword [ebp - 0x238]
mov byte [ebp - 4], 5
cmp ebx, 8
jb 0x4160f2
mov ecx, dword [ebp - 0x24c]
lea ebx, [ebx*2 + 2]
mov eax, ecx
cmp ebx, 0x1000
jb 0x4160e8
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41652e
push ebx
push ecx
call fcn.0046e38b
add esp, 8
lea edx, [ebp - 0x294]
mov ecx, edi
call fcn.0041f9e0
mov ebx, dword [ebp - 0x29c]
jmp 0x416117
call fcn.00417090
lea ecx, [ebp - 0x294]
call fcn.0041fc40
sub eax, 0
je 0x4163d3
mov bh, byte [ebp + 0xc]
sub eax, 1
je 0x41613c
sub eax, 1
jne 0x416144
push str.ProductId_already_not_installed__no_action_needed.
push 3
call fcn.00414f50
add esp, 8
test bh, bh
je 0x4163cf
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x264]
call fcn.00403710
mov edx, esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x264]
call fcn.00421870
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 5
mov bl, al
call fcn.004036b0
test bl, bl
jne 0x416184
mov esi, 5
jmp 0x416435
lea eax, [ebp - 0x234]
xor dl, dl
push eax
xor ecx, ecx
call fcn.00421f30
add esp, 4
test al, al
jne 0x4161d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x264]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.0041d420
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409400
lea ecx, [ebp - 0x264]
call fcn.004036b0
mov esi, 4
jmp 0x416435
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push pe_nt_image_headers32
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x29c]
cmp byte [eax + 0x18], 0
jne 0x416278
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 0x416333
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x416333
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x416333
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x264]
push str.DeleteFile_failed_with__i
push eax
call fcn.0041d420
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409400
lea ecx, [ebp - 0x264]
call fcn.004036b0
mov esi, 4
jmp 0x416435
test bh, bh
jne 0x416333
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x264]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00403710
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 9
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x416324
cmp eax, 0x105
jae 0x416324
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00403710
push 0x1b
push str.EasyAntiCheat_Setup.exe.tmp
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0xa
call fcn.00409ee0
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.004036b0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 5
call fcn.004036b0
lea eax, [ebp - 0x27c]
xor dl, dl
push eax
mov ecx, 1
call fcn.00421f30
add esp, 4
test al, al
je 0x416388
cmp dword [ebp - 0x268], 8
lea eax, [ebp - 0x27c]
push pe_nt_image_headers32
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.0040a410
cmp eax, 0xffffffff
je 0x4163ca
push eax
push 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040a380
cmp dword [eax + 0x14], 8
jb 0x4163b8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x264]
call fcn.004036b0
call fcn.00417090
xor esi, esi
jmp 0x416435
sub esp, 8
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.00414e30
push eax
mov ecx, esi
call fcn.00409400
lea ecx, [ebp - 0x264]
call fcn.004036b0
push 2
push 0x4b3868
mov ecx, esi
call fcn.00409ee0
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.00409ee0
push 0x29
mov ecx, esi
call fcn.0040deb0
mov esi, 3
mov edx, dword [ebp - 0x280]
cmp edx, 8
jb 0x416475
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41646b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41652e
push edx
push ecx
call fcn.0046e38b
add esp, 8
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4164b5
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4164ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41652e
push edx
push ecx
call fcn.0046e38b
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 0x41650e
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416504
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41652e
push edx
push ecx
call fcn.0046e38b
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.0046e348
mov esp, ebp
pop ebp
ret 0x10
call fcn.00473154
int3