Function at 0x410a70
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 0x451d23
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 0x410b06
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 0x410b50
test edi, edi
je 0x410b46
xor eax, eax
mov ecx, 0x461e08
cmp dword [ecx], edi
je 0x410b39
inc eax
add ecx, 0x10
cmp eax, 0x86
jb 0x410b20
mov esi, 1
jmp 0x4112d0
shl eax, 4
lea eax, [eax + 0x461e08]
test eax, eax
jne 0x410b50
mov esi, 1
jmp 0x4112d0
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.0041b440
test al, al
jne 0x410bf8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x410cab
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410ca1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113c9
jmp 0x410ca1
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
jb 0x410c0d
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.00411a60
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
jb 0x410c40
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.00411a60
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
mov dword [ebp - 0x254], 3
jb 0x410c7d
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 0x410bb1
push edx
push ecx
call fcn.0041b657
add esp, 8
test bl, bl
jne 0x410cbe
lea edx, [ebp - 0x2a0]
mov ecx, edi
call fcn.00419580
jmp 0x410cc9
lea ecx, [ebp - 0x2a0]
call fcn.004197a0
sub eax, 0
je 0x411104
mov bl, byte [ebp + 0xc]
sub eax, 1
jne 0x410ce5
test bl, bl
jne 0x410ce5
xor esi, esi
jmp 0x4112d0
push 0xd
xor eax, eax
mov dword [ebp - 0x228], 0
push 0x4634cc
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
call fcn.004013c0
mov edx, esi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x238]
call fcn.0041a520
test al, al
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x224]
sete bh
cmp edx, 8
jb 0x410d6e
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410d64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113c9
push edx
push ecx
call fcn.0041b657
add esp, 8
test bh, bh
je 0x410d7c
mov esi, 5
jmp 0x4112d0
lea eax, [ebp - 0x270]
xor dl, dl
push eax
xor ecx, ecx
call fcn.0041b180
add esp, 4
test al, al
jne 0x410df9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x254]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.004123b0
add esp, 0xc
mov ecx, esi
push eax
call fcn.004032f0
mov edx, dword [ebp - 0x240]
cmp edx, 8
jb 0x410ec0
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410eb6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410eb6
jmp 0x4113c9
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
jb 0x410e0e
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 0x410eca
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
jb 0x410e45
mov eax, dword [ebp - 0x270]
push eax
call edi
test eax, eax
jne 0x41103a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x411034
call edi
push eax
lea eax, [ebp - 0x254]
push str.DeleteFile_failed_with__i
push eax
call fcn.004123b0
add esp, 0xc
mov ecx, esi
push eax
call fcn.004032f0
mov edx, dword [ebp - 0x240]
cmp edx, 8
jb 0x410ec0
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410eb6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113c9
push edx
push ecx
call fcn.0041b657
add esp, 8
mov esi, 4
jmp 0x4112d0
test bl, bl
jne 0x41103a
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
jb 0x410ee7
mov eax, dword [ebp - 0x270]
push eax
lea ecx, [ebp - 0x254]
call fcn.004012e0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 7
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x410fee
cmp eax, 0x105
jae 0x410fee
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 0x410f42
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.004013c0
push str.EasyAntiCheat_Setup.exe.tmp
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 8
call fcn.00403660
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
jb 0x410f8d
mov ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
jb 0x410fa2
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 0x410fee
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410fe4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113c9
push edx
push ecx
call fcn.0041b657
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x240]
cmp edx, 8
jb 0x41103a
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411028
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113c9
push edx
push ecx
call fcn.0041b657
add esp, 8
jmp 0x41103a
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x288]
xor dl, dl
push eax
mov ecx, 1
call fcn.0041b180
add esp, 4
test al, al
je 0x41108d
cmp dword [ebp - 0x274], 8
lea eax, [ebp - 0x288]
jb 0x411069
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 0x41108a
mov eax, dword [ebp - 0x288]
push eax
call edi
sub esp, 8
lea ecx, [ebp - 0x270]
call fcn.00403260
cmp eax, 0xffffffff
je 0x4110fd
push eax
push ecx
lea eax, [ebp - 0x254]
push eax
call fcn.00403220
cmp dword [eax + 0x14], 8
jb 0x4110b6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [ebp - 0x240]
cmp edx, 8
jb 0x4110fd
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4110f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113c9
push edx
push ecx
call fcn.0041b657
add esp, 8
xor esi, esi
jmp 0x4112d0
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.00401580
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.00401580
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2b8]
mov ecx, esp
push eax
call fcn.00403580
mov ecx, dword [ebp - 0x2bc]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x238]
add ecx, 0x68
push eax
call fcn.00402fd0
lea eax, [ebp - 0x238]
mov ecx, esi
push eax
call fcn.004032f0
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x4111e1
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4111d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113c9
push edx
push ecx
call fcn.0041b657
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 0x41123c
mov ecx, dword [ebp - 0x2b8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411232
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113c9
push edx
push ecx
call fcn.0041b657
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x240]
cmp edx, 0x10
jb 0x41127a
mov ecx, dword [ebp - 0x254]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411270
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4113c9
push edx
push ecx
call fcn.0041b657
add esp, 8
push 0x4639d0
mov ecx, esi
call fcn.00403660
lea eax, [ebp - 0x2a0]
mov ecx, esi
push eax
call fcn.00404a30
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x4112b4
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 8
jb 0x4112ab
mov esi, dword [esi]
mov dword [esi + ecx*2], 0x29
jmp 0x4112cb
push 0x29
mov byte [ebp - 0x2bc], 0
push dword [ebp - 0x2bc]
push ecx
mov ecx, esi
call fcn.00404290
mov esi, 3
mov edx, dword [ebp - 0x28c]
cmp edx, 8
jb 0x411310
mov ecx, dword [ebp - 0x2a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411306
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
invalid
invalid