Function at 0x417470
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 0x49dee2
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a4], ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0x14]
xor eax, eax
movups xmmword [ebp - 0x264], xmm0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x234], xmm0
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
movups xmmword [ebp - 0x27c], xmm0
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
mov byte [ebp - 4], 2
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x41751d
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
cmp byte [ebp + 0x10], cl
jne 0x4176b1
cmp dword [edi + 0x10], ecx
jne 0x41753f
lea esi, [ecx + 1]
jmp 0x418032
movups xmmword [ebp - 0x24c], xmm0
mov dword [ebp - 0x238], 7
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x2b4]
push eax
push 0
push 0
push 0x4a1e70
mov dword [ebp - 0x23c], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x4175de
mov edx, dword [ebp - 0x2b4]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x2a0], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417592
sub ecx, dword [ebp - 0x2a0]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24c]
call fcn.004093c0
push 0x4b41e8
lea ecx, [ebp - 0x24c]
call fcn.0040be90
push str.EasyAntiCheat
lea ecx, [ebp - 0x24c]
call fcn.0040be90
push dword [ebp - 0x2b4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x23c], 0
jne 0x41763d
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x238]
cmp ecx, 7
jbe 0x41762b
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417621
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41812a
push ecx
push edx
call fcn.00471b8b
add esp, 8
lea edx, [ebp - 0x27c]
mov ecx, edi
call fcn.00421cd0
jmp 0x4176c1
push 0x4b41e8
lea ecx, [ebp - 0x24c]
call fcn.0040be90
push edi
lea ecx, [ebp - 0x24c]
call fcn.004099a0
sub esp, 0x18
lea eax, [ebp - 0x24c]
mov ecx, esp
push eax
call fcn.0040ba50
call fcn.00418b70
mov byte [ebp - 4], 2
add esp, 0x18
mov ecx, dword [ebp - 0x238]
cmp ecx, 7
jbe 0x41762b
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417621
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41812a
jmp 0x417621
call fcn.00418cb0
lea ecx, [ebp - 0x27c]
call fcn.00421ed0
sub eax, 0
je 0x417e35
sub eax, 1
je 0x4176e3
sub eax, 1
jne 0x4176ed
push str.ProductId_already_not_installed__no_action_needed.
push 3
call fcn.00415bf0
add esp, 8
cmp byte [ebp + 0xc], 0
je 0x417df6
push 0x11
xorps xmm0, xmm0
mov dword [ebp - 0x23c], 0
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x238], 0
movups xmmword [ebp - 0x24c], xmm0
call fcn.00404400
mov edx, esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24c]
call fcn.00423d50
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x238]
mov byte [ebp - 0x2a9], al
cmp ecx, 7
jbe 0x41777e
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41776e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41812f
push ecx
push edx
call fcn.00471b8b
mov al, byte [ebp - 0x2a9]
add esp, 8
test al, al
jne 0x41778c
mov esi, 5
jmp 0x418032
cmp dword [ebp - 0x220], 7
lea eax, [ebp - 0x234]
mov dword [ebp - 0x224], 0
cmova eax, dword [ebp - 0x234]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2b4]
push eax
push ecx
push 0x8000
push 0x4a1e60
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x41781e
mov edx, dword [ebp - 0x2b4]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4177d6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.004093c0
push 0x4b41e8
lea ecx, [ebp - 0x234]
call fcn.0040be90
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x234]
call fcn.0040be90
push dword [ebp - 0x2b4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x298], ecx
test ecx, ecx
je 0x417dfd
mov edx, dword [ebp - 0x220]
mov edi, bind
mov dword [ebp - 0x2b0], edx
cmp ecx, edx
jae 0x41786c
lea eax, [ecx + 1]
cmp edx, 7
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x234]
cmova eax, dword [ebp - 0x234]
mov dword [eax + ecx*2], 0x5c
jmp 0x417994
mov eax, edi
sub eax, ecx
cmp eax, 1
jb 0x418134
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x29c], eax
or ecx, 7
cmp ecx, edi
jbe 0x41788f
mov ecx, edi
jmp 0x4178b6
mov eax, edx
shr eax, 1
mov dword [ebp - 0x2a8], eax
mov eax, edi
sub eax, dword [ebp - 0x2a8]
cmp edx, eax
jbe 0x4178a9
mov ecx, edi
jmp 0x4178b6
mov eax, dword [ebp - 0x2a8]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], ecx
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004051f0
mov ecx, dword [ebp - 0x2a8]
mov edx, eax
mov eax, dword [ebp - 0x29c]
add esp, 8
mov dword [ebp - 0x220], ecx
mov ecx, dword [ebp - 0x298]
add ecx, ecx
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x2b0], 7
mov dword [ebp - 0x2a0], edx
push ecx
lea eax, [ecx + edx]
mov dword [ebp - 0x29c], eax
jbe 0x41796c
mov eax, dword [ebp - 0x234]
push eax
push edx
mov dword [ebp - 0x2a8], eax
call fcn.004735e0
mov ecx, dword [ebp - 0x29c]
add esp, 0xc
mov eax, dword [ebp - 0x2b0]
mov dword [ecx], 0x5c
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x2a8]
cmp ecx, 0x1000
jb 0x417960
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41812a
mov eax, edx
push ecx
push eax
call fcn.00471b8b
add esp, 8
jmp 0x417988
lea eax, [ebp - 0x234]
push eax
push edx
call fcn.004735e0
mov ecx, dword [ebp - 0x29c]
add esp, 0xc
mov dword [ecx], 0x5c
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x234], eax
push str.EasyAntiCheat_EOS.exe
lea ecx, [ebp - 0x234]
call fcn.0040be90
cmp dword [ebp - 0x224], 0
je 0x417dfd
cmp dword [ebp - 0x220], 7
lea eax, [ebp - 0x234]
push pe_nt_image_headers32
cmova eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x2a4]
cmp byte [ecx + 0x18], 0
jne 0x417a56
cmp dword [ebp - 0x220], 7
lea eax, [ebp - 0x234]
cmova eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x417b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x417b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x417b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x294]
push str.DeleteFile_failed_with__i
push eax
call fcn.0041f5e0
add esp, 0xc
mov ecx, esi
push eax
call fcn.004094d0
lea ecx, [ebp - 0x294]
call fcn.004037b0
mov esi, 4
jmp 0x418032
cmp byte [ebp + 0xc], 0
jne 0x417b11
cmp dword [ebp - 0x220], 7
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x294]
cmova eax, dword [ebp - 0x234]
push eax
call fcn.00403810
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 5
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x417b02
cmp eax, 0x105
jae 0x417b02
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00403810
push str.EasyAntiCheat_Setup.exe.tmp
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 6
call fcn.0040be90
cmp dword [ebp - 0x238], 7
lea ecx, [ebp - 0x24c]
lea eax, [ebp - 0x294]
cmova ecx, dword [ebp - 0x24c]
cmp dword [ebp - 0x280], 7
push ecx
cmova eax, dword [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x24c]
call fcn.004037b0
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 2
call fcn.004037b0
cmp dword [ebp - 0x250], 7
lea eax, [ebp - 0x264]
mov dword [ebp - 0x254], 0
cmova eax, dword [ebp - 0x264]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2a0]
push eax
push ecx
push 0x8000
push 0x4a1e60
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x417ba8
mov edx, dword [ebp - 0x2a0]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417b60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x264]
call fcn.004093c0
push 0x4b41e8
lea ecx, [ebp - 0x264]
call fcn.0040be90
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x264]
call fcn.0040be90
push dword [ebp - 0x2a0]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x254]
test esi, esi
je 0x417d37
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x298], edx
cmp esi, edx
jae 0x417beb
lea eax, [esi + 1]
cmp edx, 7
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x264]
cmova eax, dword [ebp - 0x264]
mov dword [eax + esi*2], 0x5c
jmp 0x417ce3
mov eax, edi
sub eax, esi
cmp eax, 1
jb 0x418139
lea ecx, [esi + 1]
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x417c0d
mov ecx, bind
jmp 0x417c25
mov eax, edx
shr eax, 1
sub edi, eax
cmp edx, edi
jbe 0x417c1e
mov ecx, bind
jmp 0x417c25
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x29c], ecx
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004051f0
mov edi, dword [ebp - 0x298]
lea ecx, [esi + 1]
mov dword [ebp - 0x254], ecx
add esp, 8
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x250], ecx
lea ecx, [esi + esi]
mov dword [ebp - 0x2b0], eax
lea esi, [ecx + eax]
mov dword [ebp - 0x2a4], esi
push ecx
cmp edi, 7
jbe 0x417cc1
mov esi, dword [ebp - 0x264]
push esi
push eax
call fcn.004735e0
mov eax, dword [ebp - 0x2a4]
lea edi, [edi*2 + 2]
add esp, 0xc
mov dword [eax], 0x5c
cmp edi, 0x1000
jb 0x417cb5
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x41812a
mov esi, ecx
push edi
push esi
call fcn.00471b8b
add esp, 8
jmp 0x417cd7
lea ecx, [ebp - 0x264]
push ecx
push eax
call fcn.004735e0
add esp, 0xc
mov dword [esi], 0x5c
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x264], eax
push str.EasyAntiCheat_EOS.sys
lea ecx, [ebp - 0x264]
call fcn.0040be90
cmp dword [ebp - 0x254], 0
je 0x417d37
cmp dword [ebp - 0x250], 7
lea eax, [ebp - 0x264]
push pe_nt_image_headers32
cmova eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x250], 7
lea eax, [ebp - 0x264]
cmova eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x220]
lea edx, [ebp - 0x234]
mov esi, dword [ebp - 0x224]
cmp edi, 7
cmova edx, dword [ebp - 0x234]
test esi, esi
je 0x417d83
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x417d7d
nop dword [eax]
cmp ecx, edx
je 0x417d83
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x417d70
sub ecx, edx
sar ecx, 1
jmp 0x417d86
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x417df1
cmp esi, ecx
mov dword [ebp - 0x23c], 0
lea eax, [ebp - 0x234]
mov dword [ebp - 0x238], 0
cmovb ecx, esi
xorps xmm0, xmm0
cmp edi, 7
push ecx
cmova eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x24c]
push eax
movups xmmword [ebp - 0x24c], xmm0
call fcn.00404400
cmp dword [ebp - 0x238], 7
lea eax, [ebp - 0x24c]
cmova eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x24c]
call fcn.004037b0
call fcn.00418cb0
xor esi, esi
jmp 0x418032
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x294]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.0041f5e0
add esp, 0xc
mov ecx, esi
push eax
call fcn.004094d0
lea ecx, [ebp - 0x294]
call fcn.004037b0
mov esi, 4
jmp 0x418032
mov ecx, dword [ebp - 0x2a4]
lea eax, [ebp - 0x294]
sub esp, 8
push eax
call fcn.00415ad0
mov edi, eax
cmp esi, edi
je 0x417e7a
mov ecx, esi
call fcn.004037b0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x294]
call fcn.004037b0
push 0x4b5800
mov ecx, esi
call fcn.0040be90
cmp dword [ebp - 0x268], 7
lea edi, [ebp - 0x27c]
mov eax, dword [esi + 0x14]
cmova edi, dword [ebp - 0x27c]
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov edx, dword [ebp - 0x26c]
cmp edx, eax
ja 0x417efe
cmp dword [esi + 0x14], 7
lea eax, [ecx + edx]
mov dword [ebp - 0x298], eax
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [ebp - 0x2a4], esi
jbe 0x417ed9
mov eax, dword [esi]
mov dword [ebp - 0x2a4], eax
lea ecx, [eax + ecx*2]
lea eax, [edx + edx]
push eax
push edi
push ecx
call fcn.004735e0
mov eax, dword [ebp - 0x2a4]
add esp, 0xc
mov ecx, dword [ebp - 0x298]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x417f0e
push edx
push edi
push dword [ebp - 0x298]
mov ecx, esi
push edx
call fcn.00409d40
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x2b0], ecx
mov dword [ebp - 0x2a0], edx
cmp ecx, edx
jae 0x417f3d
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 7
jbe 0x417f31
mov esi, dword [esi]
mov dword [esi + ecx*2], 0x29
jmp 0x41802d
mov edi, bind
mov eax, edi
sub eax, ecx
cmp eax, 1
jb 0x41813e
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x298], eax
or ecx, 7
cmp ecx, edi
jbe 0x417f65
mov ecx, edi
jmp 0x417f7d
mov eax, edx
shr eax, 1
sub edi, eax
cmp edx, edi
jbe 0x417f76
mov ecx, bind
jmp 0x417f7d
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x2a4], ecx
push eax
push esi
call fcn.004051f0
mov ecx, dword [ebp - 0x298]
add esp, 8
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x2a4]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x2b0]
add ecx, ecx
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x2a0], 7
push ecx
lea edi, [eax + ecx]
mov dword [ebp - 0x298], edi
jbe 0x418015
mov edi, dword [esi]
push edi
push eax
call fcn.004735e0
mov eax, dword [ebp - 0x298]
add esp, 0xc
mov dword [eax], 0x29
mov eax, dword [ebp - 0x2a0]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x418009
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x418143
mov edi, edx
push ecx
push edi
call fcn.00471b8b
add esp, 8
jmp 0x418025
push esi
push eax
call fcn.004735e0
add esp, 0xc
mov dword [edi], 0x29
mov eax, dword [ebp - 0x29c]
mov dword [esi], eax
mov esi, 3
mov ecx, dword [ebp - 0x268]
cmp ecx, 7
jbe 0x418072
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418068
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418143
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x4180b2
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4180a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418143
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov ecx, dword [ebp - 0x250]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp ecx, 7
jbe 0x41810b
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418101
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418143
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret 0x10
call fcn.00477334
call fcn.00477334
call fcn.00401510
call fcn.00401510
call fcn.00401510
call fcn.00477334
int3