Function at 0x410aa0
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 0x451d33
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x46b008]
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 dword [ebp - 0x2bc], ecx
mov esi, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 7
mov word [ebp - 0x288], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], 7
mov word [ebp - 0x270], ax
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], 7
mov word [ebp - 0x2a0], ax
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
mov eax, esi
jb 0x410b36
mov eax, dword [esi]
mov bl, byte [ebp + 0x10]
xor ecx, ecx
mov edi, dword [ebp + 8]
mov word [eax], cx
test bl, bl
jne 0x410b80
test edi, edi
je 0x410b76
xor eax, eax
mov ecx, 0x461fe0
cmp dword [ecx], edi
je 0x410b69
inc eax
add ecx, 0x10
cmp eax, 0xae
jb 0x410b50
mov esi, 1
jmp 0x411300
shl eax, 4
lea eax, [eax + 0x461fe0]
test eax, eax
jne 0x410b80
mov esi, 1
jmp 0x411300
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov word [ebp - 0x23c], ax
call fcn.0041b460
test al, al
jne 0x410c28
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x410cdb
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410cd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113f9
jmp 0x410cd1
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
jb 0x410c3d
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x228]
push 0
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x238]
call fcn.00411a90
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
jb 0x410c70
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x228]
push 0
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x238]
call fcn.00411a90
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
mov dword [ebp - 0x254], 3
jb 0x410cad
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x250], eax
mov eax, 0x614
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
jmp 0x410be1
push edx
push ecx
call fcn.0041b677
add esp, 8
test bl, bl
jne 0x410cee
lea edx, [ebp - 0x2a0]
mov ecx, edi
call fcn.004195a0
jmp 0x410cf9
lea ecx, [ebp - 0x2a0]
call fcn.004197c0
sub eax, 0
je 0x411134
mov bl, byte [ebp + 0xc]
sub eax, 1
jne 0x410d15
test bl, bl
jne 0x410d15
xor esi, esi
jmp 0x411300
push 0xd
xor eax, eax
mov dword [ebp - 0x228], 0
push 0x463924
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
call fcn.004013e0
mov edx, esi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x238]
call fcn.0041a540
test al, al
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x224]
sete bh
cmp edx, 8
jb 0x410d9e
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410d94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113f9
push edx
push ecx
call fcn.0041b677
add esp, 8
test bh, bh
je 0x410dac
mov esi, 5
jmp 0x411300
lea eax, [ebp - 0x270]
xor dl, dl
push eax
xor ecx, ecx
call fcn.0041b1a0
add esp, 4
test al, al
jne 0x410e29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x254]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.004123e0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00403310
mov edx, dword [ebp - 0x240]
cmp edx, 8
jb 0x410ef0
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410ee6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410ee6
jmp 0x4113f9
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
jb 0x410e3e
mov eax, dword [ebp - 0x270]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x2bc]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ecx + 0x64], 0
jne 0x410efa
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
jb 0x410e75
mov eax, dword [ebp - 0x270]
push eax
call edi
test eax, eax
jne 0x41106a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x411064
call edi
push eax
lea eax, [ebp - 0x254]
push str.DeleteFile_failed_with__i
push eax
call fcn.004123e0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00403310
mov edx, dword [ebp - 0x240]
cmp edx, 8
jb 0x410ef0
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410ee6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113f9
push edx
push ecx
call fcn.0041b677
add esp, 8
mov esi, 4
jmp 0x411300
test bl, bl
jne 0x41106a
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
jb 0x410f17
mov eax, dword [ebp - 0x270]
push eax
lea ecx, [ebp - 0x254]
call fcn.00401300
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 7
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41101e
cmp eax, 0x105
jae 0x41101e
xor eax, eax
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410f72
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.004013e0
push str.EasyAntiCheat_Setup.exe.tmp
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 8
call fcn.00403680
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
jb 0x410fbd
mov ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
jb 0x410fd2
mov eax, dword [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x41101e
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411014
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113f9
push edx
push ecx
call fcn.0041b677
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x240]
cmp edx, 8
jb 0x41106a
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411058
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113f9
push edx
push ecx
call fcn.0041b677
add esp, 8
jmp 0x41106a
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x288]
xor dl, dl
push eax
mov ecx, 1
call fcn.0041b1a0
add esp, 4
test al, al
je 0x4110bd
cmp dword [ebp - 0x274], 8
lea eax, [ebp - 0x288]
jb 0x411099
mov eax, dword [ebp - 0x288]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x274], 8
lea eax, [ebp - 0x288]
jb 0x4110ba
mov eax, dword [ebp - 0x288]
push eax
call edi
sub esp, 8
lea ecx, [ebp - 0x270]
call fcn.00403280
cmp eax, 0xffffffff
je 0x41112d
push eax
push ecx
lea eax, [ebp - 0x254]
push eax
call fcn.00403240
cmp dword [eax + 0x14], 8
jb 0x4110e6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [ebp - 0x240]
cmp edx, 8
jb 0x41112d
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411123
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113f9
push edx
push ecx
call fcn.0041b677
add esp, 8
xor esi, esi
jmp 0x411300
push 0x19
push str.Access_to_registry_denied
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0xf
mov byte [ebp - 0x254], 0
call fcn.004015a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b8]
push 0x1a
push str.setup_error.error_registry
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 0xf
mov byte [ebp - 0x2b8], 0
call fcn.004015a0
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2b8]
mov ecx, esp
push eax
call fcn.004035a0
mov ecx, dword [ebp - 0x2bc]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x238]
add ecx, 0x68
push eax
call fcn.00402ff0
lea eax, [ebp - 0x238]
mov ecx, esi
push eax
call fcn.00403310
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x411211
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411207
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113f9
push edx
push ecx
call fcn.0041b677
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
cmp edx, 0x10
jb 0x41126c
mov ecx, dword [ebp - 0x2b8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411262
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113f9
push edx
push ecx
call fcn.0041b677
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x240]
cmp edx, 0x10
jb 0x4112aa
mov ecx, dword [ebp - 0x254]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4112a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113f9
push edx
push ecx
call fcn.0041b677
add esp, 8
push 0x463e28
mov ecx, esi
call fcn.00403680
lea eax, [ebp - 0x2a0]
mov ecx, esi
push eax
call fcn.00404a50
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x4112e4
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 8
jb 0x4112db
mov esi, dword [esi]
mov dword [esi + ecx*2], 0x29
jmp 0x4112fb
push 0x29
mov byte [ebp - 0x2bc], 0
push dword [ebp - 0x2bc]
push ecx
mov ecx, esi
call fcn.004042b0
mov esi, 3
mov edx, dword [ebp - 0x28c]
cmp edx, 8
jb 0x411340
mov ecx, dword [ebp - 0x2a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411336
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113f9
push edx
push ecx
call fcn.0041b677
add esp, 8
mov edx, dword [ebp - 0x25c]
cmp edx, 8
jb 0x411380
mov ecx, dword [ebp - 0x270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411376
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113f9
push edx
push ecx
call fcn.0041b677
add esp, 8
mov edx, dword [ebp - 0x274]
xor eax, eax
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 7
mov word [ebp - 0x270], ax
cmp edx, 8
jb 0x4113d9
mov ecx, dword [ebp - 0x288]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4113cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113f9
push edx
push ecx
call fcn.0041b677
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.0041b636
mov esp, ebp
pop ebp
ret 0x10
call fcn.00436a99
int3