Function at 0x415e80
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 0x4984e2
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 0x415f32
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
cmp byte [ebp + 0x10], cl
jne 0x4160d7
cmp dword [edi + 0x10], ecx
jne 0x415f54
lea esi, [ecx + 1]
jmp 0x416405
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 0x416084
mov edx, dword [ebp - 0x298]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415fa4
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24c]
call fcn.00403bf0
push 1
push 0x4b2218
lea ecx, [ebp - 0x24c]
call fcn.00409eb0
push 0xd
push str.EasyAntiCheat
lea ecx, [ebp - 0x24c]
call fcn.00409eb0
push dword [ebp - 0x298]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x23c], 0
je 0x41607e
push 1
push 0x4b2218
lea ecx, [ebp - 0x24c]
call fcn.00409eb0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x416019
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x24c]
push eax
call fcn.00409eb0
sub esp, 0x18
lea eax, [ebp - 0x24c]
mov ecx, esp
push eax
call fcn.0040ba00
call fcn.00416f30
mov byte [ebp - 4], 5
add esp, 0x18
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x4160c2
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41607b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4164fe
push edx
jmp 0x4160b9
mov ebx, dword [ebp - 0x238]
mov byte [ebp - 4], 5
cmp ebx, 8
jb 0x4160c2
mov ecx, dword [ebp - 0x24c]
lea ebx, [ebx*2 + 2]
mov eax, ecx
cmp ebx, 0x1000
jb 0x4160b8
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4164fe
push ebx
push ecx
call fcn.0046e37b
add esp, 8
lea edx, [ebp - 0x294]
mov ecx, edi
call fcn.0041f9c0
mov ebx, dword [ebp - 0x29c]
jmp 0x4160e7
call fcn.00417070
lea ecx, [ebp - 0x294]
call fcn.0041fc20
sub eax, 0
je 0x4163a3
mov bh, byte [ebp + 0xc]
sub eax, 1
je 0x41610c
sub eax, 1
jne 0x416114
push str.ProductId_already_not_installed__no_action_needed.
push 3
call fcn.00414f20
add esp, 8
test bh, bh
je 0x41639f
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.00421850
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 5
mov bl, al
call fcn.004036b0
test bl, bl
jne 0x416154
mov esi, 5
jmp 0x416405
lea eax, [ebp - 0x234]
xor dl, dl
push eax
xor ecx, ecx
call fcn.00421f00
add esp, 4
test al, al
jne 0x4161a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x264]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.0041d400
add esp, 0xc
mov ecx, esi
push eax
call fcn.004093d0
lea ecx, [ebp - 0x264]
call fcn.004036b0
mov esi, 4
jmp 0x416405
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 0x416248
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 0x416303
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x416303
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x416303
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x264]
push str.DeleteFile_failed_with__i
push eax
call fcn.0041d400
add esp, 0xc
mov ecx, esi
push eax
call fcn.004093d0
lea ecx, [ebp - 0x264]
call fcn.004036b0
mov esi, 4
jmp 0x416405
test bh, bh
jne 0x416303
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 0x4162f4
cmp eax, 0x105
jae 0x4162f4
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.00409eb0
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.00421f00
add esp, 4
test al, al
je 0x416358
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.0040a3e0
cmp eax, 0xffffffff
je 0x41639a
push eax
push 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040a350
cmp dword [eax + 0x14], 8
jb 0x416388
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x264]
call fcn.004036b0
call fcn.00417070
xor esi, esi
jmp 0x416405
sub esp, 8
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.00414e00
push eax
mov ecx, esi
call fcn.004093d0
lea ecx, [ebp - 0x264]
call fcn.004036b0
push 2
push 0x4b3868
mov ecx, esi
call fcn.00409eb0
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.00409eb0
push 0x29
mov ecx, esi
call fcn.0040de80
mov esi, 3
mov edx, dword [ebp - 0x280]
cmp edx, 8
jb 0x416445
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41643b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4164fe
push edx
push ecx
call fcn.0046e37b
add esp, 8
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x416485
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41647b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4164fe
push edx
push ecx
call fcn.0046e37b
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 0x4164de
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4164d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4164fe
push edx
push ecx
call fcn.0046e37b
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.0046e338
mov esp, ebp
pop ebp
ret 0x10
call fcn.00473144
int3