Function at 0x4107e0
Capabilities:
Check if file exists
Delete directory
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455e7d
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x46f068]
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 esi, ecx
mov dword [ebp - 0x2bc], esi
mov edi, 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
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x410875
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
cmp byte [ebp + 0x10], cl
jne 0x41098d
mov esi, dword [ebp + 8]
test esi, esi
jne 0x410899
lea esi, [ecx + 1]
jmp 0x410f4d
xor eax, eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 3
call fcn.0041f810
test al, al
jne 0x410905
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x244]
cmp edx, 8
jb 0x410978
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41096e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411046
jmp 0x41096e
push esi
push 0x4671b8
lea eax, [ebp - 0x30]
push 0x10
push eax
call fcn.00406f50
add esp, 0x10
lea ecx, [ebp - 0x258]
push 1
push 0x465bc8
call fcn.004038a0
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410931
sub ecx, edx
lea eax, [ebp - 0x30]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x258]
call fcn.004038a0
sub esp, 0x18
lea eax, [ebp - 0x258]
mov ecx, esp
push eax
call fcn.004032b0
call fcn.00411940
add esp, 0x18
jmp 0x4108c5
push edx
push ecx
call fcn.00434e86
add esp, 8
lea edx, [ebp - 0x2a0]
mov ecx, esi
call fcn.0041d640
mov esi, dword [ebp - 0x2bc]
jmp 0x41099d
call fcn.00411a50
lea ecx, [ebp - 0x2a0]
call fcn.0041d860
sub eax, 0
je 0x410d85
mov bl, byte [ebp + 0xc]
sub eax, 1
jne 0x4109b9
test bl, bl
jne 0x4109b9
xor esi, esi
jmp 0x410f4d
push 0xd
xor eax, eax
mov dword [ebp - 0x248], 0
push 0x4664ec
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
call fcn.004013d0
mov edx, edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x258]
call fcn.0041e960
test al, al
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x244]
sete bh
cmp edx, 8
jb 0x410a42
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410a38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411046
push edx
push ecx
call fcn.00434e86
add esp, 8
test bh, bh
je 0x410a50
mov esi, 5
jmp 0x410f4d
lea eax, [ebp - 0x270]
xor dl, dl
push eax
xor ecx, ecx
call fcn.0041f550
add esp, 4
test al, al
jne 0x410ac4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.004121b0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00403240
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x410b7c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410b72
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410b72
jmp 0x411046
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
jb 0x410ad9
mov eax, dword [ebp - 0x270]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [esi + 0x64], 0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jne 0x410b86
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
jb 0x410b0a
mov eax, dword [ebp - 0x270]
push eax
call esi
test eax, eax
jne 0x410ceb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x410ce5
call esi
push eax
lea eax, [ebp - 0x28]
push str.DeleteFile_failed_with__i
push eax
call fcn.004121b0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00403240
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x410b7c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410b72
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411046
push edx
push ecx
call fcn.00434e86
add esp, 8
mov esi, 4
jmp 0x410f4d
test bl, bl
jne 0x410ceb
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
jb 0x410ba3
mov eax, dword [ebp - 0x270]
push eax
lea ecx, [ebp - 0x28]
call fcn.004012f0
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 7
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x410ca5
cmp eax, 0x105
jae 0x410ca5
xor eax, eax
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
lea edx, [ecx + 2]
jmp 0x410c00
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410c00
sub ecx, edx
lea eax, [ebp - 0x240]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x258]
call fcn.004013d0
push 0x1b
push str.EasyAntiCheat_Setup.exe.tmp
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 8
call fcn.004038a0
cmp dword [ebp - 0x244], 8
lea ecx, [ebp - 0x258]
jb 0x410c4d
mov ecx, dword [ebp - 0x258]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x410c59
mov eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x244]
cmp edx, 8
jb 0x410ca5
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410c9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411046
push edx
push ecx
call fcn.00434e86
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x410ceb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410cd9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411046
push edx
push ecx
call fcn.00434e86
add esp, 8
jmp 0x410ceb
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x288]
xor dl, dl
push eax
mov ecx, 1
call fcn.0041f550
add esp, 4
test al, al
je 0x410d3e
cmp dword [ebp - 0x274], 8
lea eax, [ebp - 0x288]
jb 0x410d1a
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 0x410d3b
mov eax, dword [ebp - 0x288]
push eax
call esi
sub esp, 8
lea ecx, [ebp - 0x270]
call fcn.004031b0
cmp eax, 0xffffffff
je 0x410d79
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x270]
call fcn.00403170
cmp dword [eax + 0x14], 8
jb 0x410d6a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x28]
call fcn.00401290
call fcn.00411a50
xor esi, esi
jmp 0x410f4d
push 0x19
push str.Access_to_registry_denied
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00401590
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.00401590
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2b8]
mov ecx, esp
push eax
call fcn.004035c0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x258]
push eax
lea ecx, [esi + 0x68]
call fcn.00402ea0
lea eax, [ebp - 0x258]
mov ecx, edi
push eax
call fcn.00403240
mov edx, dword [ebp - 0x244]
cmp edx, 8
jb 0x410e4d
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410e43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411046
push edx
push ecx
call fcn.00434e86
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
cmp edx, 0x10
jb 0x410ea8
mov ecx, dword [ebp - 0x2b8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410e9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411046
push edx
push ecx
call fcn.00434e86
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x410ee0
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410ed6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411046
push edx
push ecx
call fcn.00434e86
add esp, 8
push 2
push 0x466d50
mov ecx, edi
call fcn.004038a0
cmp dword [ebp - 0x28c], 8
lea eax, [ebp - 0x2a0]
jb 0x410f03
mov eax, dword [ebp - 0x2a0]
push dword [ebp - 0x290]
mov ecx, edi
push eax
call fcn.004038a0
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, edx
jae 0x410f31
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
cmp edx, 8
jb 0x410f28
mov edi, dword [edi]
mov dword [edi + ecx*2], 0x29
jmp 0x410f48
push 0x29
mov byte [ebp - 0x2bc], 0
push dword [ebp - 0x2bc]
push ecx
mov ecx, edi
call fcn.00403ce0
mov esi, 3
mov edx, dword [ebp - 0x28c]
cmp edx, 8
jb 0x410f8d
mov ecx, dword [ebp - 0x2a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410f83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411046
push edx
push ecx
call fcn.00434e86
add esp, 8
mov edx, dword [ebp - 0x25c]
cmp edx, 8
jb 0x410fcd
mov ecx, dword [ebp - 0x270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410fc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411046
push edx
push ecx
call fcn.00434e86
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 0x411026
mov ecx, dword [ebp - 0x288]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41101c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411046
push edx
push ecx
call fcn.00434e86
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.00434e45
mov esp, ebp
pop ebp
ret 0x10
call fcn.00439dba
int3