Function at 0x4178c0
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 0x49ed02
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x4c0100]
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 0x41796d
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
cmp byte [ebp + 0x10], cl
jne 0x417b01
cmp dword [edi + 0x10], ecx
jne 0x41798f
lea esi, [ecx + 1]
jmp 0x418482
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 0x4a2e70
mov dword [ebp - 0x23c], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x417a2e
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 0x4179e2
sub ecx, dword [ebp - 0x2a0]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24c]
call fcn.00409510
push 0x4b5138
lea ecx, [ebp - 0x24c]
call fcn.0040bf80
push str.EasyAntiCheat
lea ecx, [ebp - 0x24c]
call fcn.0040bf80
push dword [ebp - 0x2b4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x23c], 0
jne 0x417a8d
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x238]
cmp ecx, 7
jbe 0x417a7b
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417a71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41857a
push ecx
push edx
call fcn.0047292b
add esp, 8
lea edx, [ebp - 0x27c]
mov ecx, edi
call fcn.00422a70
jmp 0x417b11
push 0x4b5138
lea ecx, [ebp - 0x24c]
call fcn.0040bf80
push edi
lea ecx, [ebp - 0x24c]
call fcn.00409af0
sub esp, 0x18
lea eax, [ebp - 0x24c]
mov ecx, esp
push eax
call fcn.0040bb40
call fcn.00418fc0
mov byte [ebp - 4], 2
add esp, 0x18
mov ecx, dword [ebp - 0x238]
cmp ecx, 7
jbe 0x417a7b
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417a71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41857a
jmp 0x417a71
call fcn.00419100
lea ecx, [ebp - 0x27c]
call fcn.00422c70
sub eax, 0
je 0x418285
sub eax, 1
je 0x417b33
sub eax, 1
jne 0x417b3d
push str.ProductId_already_not_installed__no_action_needed.
push 3
call fcn.00416030
add esp, 8
cmp byte [ebp + 0xc], 0
je 0x418246
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.00424af0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x238]
mov byte [ebp - 0x2a9], al
cmp ecx, 7
jbe 0x417bce
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417bbe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41857f
push ecx
push edx
call fcn.0047292b
mov al, byte [ebp - 0x2a9]
add esp, 8
test al, al
jne 0x417bdc
mov esi, 5
jmp 0x418482
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 0x4a2e60
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x417c6e
mov edx, dword [ebp - 0x2b4]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417c26
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.00409510
push 0x4b5138
lea ecx, [ebp - 0x234]
call fcn.0040bf80
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x234]
call fcn.0040bf80
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 0x41824d
mov edx, dword [ebp - 0x220]
mov edi, bind
mov dword [ebp - 0x2b0], edx
cmp ecx, edx
jae 0x417cbc
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 0x417de4
mov eax, edi
sub eax, ecx
cmp eax, 1
jb 0x418584
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x29c], eax
or ecx, 7
cmp ecx, edi
jbe 0x417cdf
mov ecx, edi
jmp 0x417d06
mov eax, edx
shr eax, 1
mov dword [ebp - 0x2a8], eax
mov eax, edi
sub eax, dword [ebp - 0x2a8]
cmp edx, eax
jbe 0x417cf9
mov ecx, edi
jmp 0x417d06
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 0x417dbc
mov eax, dword [ebp - 0x234]
push eax
push edx
mov dword [ebp - 0x2a8], eax
call fcn.00474370
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 0x417db0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41857a
mov eax, edx
push ecx
push eax
call fcn.0047292b
add esp, 8
jmp 0x417dd8
lea eax, [ebp - 0x234]
push eax
push edx
call fcn.00474370
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.0040bf80
cmp dword [ebp - 0x224], 0
je 0x41824d
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 0x417ea6
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 0x417f61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x417f61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x417f61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x294]
push str.DeleteFile_failed_with__i
push eax
call fcn.00420510
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409620
lea ecx, [ebp - 0x294]
call fcn.004037b0
mov esi, 4
jmp 0x418482
cmp byte [ebp + 0xc], 0
jne 0x417f61
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 0x417f52
cmp eax, 0x105
jae 0x417f52
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.0040bf80
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 0x4a2e60
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x417ff8
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 0x417fb0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x264]
call fcn.00409510
push 0x4b5138
lea ecx, [ebp - 0x264]
call fcn.0040bf80
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x264]
call fcn.0040bf80
push dword [ebp - 0x2a0]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x254]
test esi, esi
je 0x418187
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x298], edx
cmp esi, edx
jae 0x41803b
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 0x418133
mov eax, edi
sub eax, esi
cmp eax, 1
jb 0x418589
lea ecx, [esi + 1]
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x41805d
mov ecx, bind
jmp 0x418075
mov eax, edx
shr eax, 1
sub edi, eax
cmp edx, edi
jbe 0x41806e
mov ecx, bind
jmp 0x418075
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 0x418111
mov esi, dword [ebp - 0x264]
push esi
push eax
call fcn.00474370
mov eax, dword [ebp - 0x2a4]
lea edi, [edi*2 + 2]
add esp, 0xc
mov dword [eax], 0x5c
cmp edi, 0x1000
jb 0x418105
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x41857a
mov esi, ecx
push edi
push esi
call fcn.0047292b
add esp, 8
jmp 0x418127
lea ecx, [ebp - 0x264]
push ecx
push eax
call fcn.00474370
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.0040bf80
cmp dword [ebp - 0x254], 0
je 0x418187
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 0x4181d3
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 0x4181cd
nop dword [eax]
cmp ecx, edx
je 0x4181d3
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x4181c0
sub ecx, edx
sar ecx, 1
jmp 0x4181d6
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x418241
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.00419100
xor esi, esi
jmp 0x418482
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x294]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.00420510
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409620
lea ecx, [ebp - 0x294]
call fcn.004037b0
mov esi, 4
jmp 0x418482
mov ecx, dword [ebp - 0x2a4]
lea eax, [ebp - 0x294]
sub esp, 8
push eax
call fcn.00415f10
mov edi, eax
cmp esi, edi
je 0x4182ca
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 0x4b6758
mov ecx, esi
call fcn.0040bf80
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 0x41834e
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 0x418329
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.00474370
mov eax, dword [ebp - 0x2a4]
add esp, 0xc
mov ecx, dword [ebp - 0x298]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x41835e
push edx
push edi
push dword [ebp - 0x298]
mov ecx, esi
push edx
call fcn.00409fa0
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x2b0], ecx
mov dword [ebp - 0x2a0], edx
cmp ecx, edx
jae 0x41838d
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 7
jbe 0x418381
mov esi, dword [esi]
mov dword [esi + ecx*2], 0x29
jmp 0x41847d
mov edi, bind
mov eax, edi
sub eax, ecx
cmp eax, 1
jb 0x41858e
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x298], eax
or ecx, 7
cmp ecx, edi
jbe 0x4183b5
mov ecx, edi
jmp 0x4183cd
mov eax, edx
shr eax, 1
sub edi, eax
cmp edx, edi
jbe 0x4183c6
mov ecx, bind
jmp 0x4183cd
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 0x418465
mov edi, dword [esi]
push edi
push eax
call fcn.00474370
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 0x418459
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x418593
mov edi, edx
push ecx
push edi
call fcn.0047292b
add esp, 8
jmp 0x418475
push esi
push eax
call fcn.00474370
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 0x4184c2
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4184b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418593
push ecx
push edx
call fcn.0047292b
add esp, 8
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x418502
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4184f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418593
push ecx
push edx
call fcn.0047292b
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 0x41855b
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418551
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418593
push ecx
push edx
call fcn.0047292b
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.004728e8
mov esp, ebp
pop ebp
ret 0x10
call fcn.004780c4
call fcn.004780c4
call fcn.00401510
call fcn.00401510
call fcn.00401510
call fcn.004780c4
int3