Function at 0x410790
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 0x4560ad
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x46f008]
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 - 0x2b4], esi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x280], 0
xor eax, eax
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
mov byte [ebp - 4], 5
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x41083f
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
cmp byte [ebp + 0x10], cl
jne 0x41087b
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41085f
lea esi, [ecx + 1]
jmp 0x41103c
mov ecx, esi
call fcn.00411cc0
lea edx, [ebp - 0x2b0]
mov ecx, esi
call fcn.0041da30
mov esi, dword [ebp - 0x2b4]
jmp 0x41088b
call fcn.00411bf0
lea ecx, [ebp - 0x2b0]
call fcn.0041dc40
sub eax, 0
je 0x410df7
mov bl, byte [ebp + 0xc]
sub eax, 1
jne 0x4108a7
test bl, bl
jne 0x4108a7
xor esi, esi
jmp 0x41103c
mov dword [ebp - 0x238], 0
push 0xd
xor eax, eax
mov dword [ebp - 0x228], 0
push 0x46698c
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov byte [ebp - 4], 5
call fcn.00401680
mov edx, edi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x238]
call fcn.0041e9f0
test al, al
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x224]
sete bh
cmp edx, 8
jb 0x41093e
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410934
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411135
push edx
push ecx
call fcn.0041fbbf
add esp, 8
test bh, bh
je 0x41094c
mov esi, 5
jmp 0x41103c
lea eax, [ebp - 0x250]
xor dl, dl
push eax
xor ecx, ecx
call fcn.0041f580
add esp, 4
test al, al
jne 0x4109c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x298]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.004123f0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00403700
mov edx, dword [ebp - 0x284]
cmp edx, 8
jb 0x410a8a
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410a80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41113a
jmp 0x410a80
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
jb 0x4109de
mov eax, dword [ebp - 0x250]
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 0x410a94
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
jb 0x410a0f
mov eax, dword [ebp - 0x250]
push eax
call esi
test eax, eax
jne 0x410ca0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x410c9a
call esi
push eax
lea eax, [ebp - 0x298]
push str.DeleteFile_failed_with__i
push eax
call fcn.004123f0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00403700
mov edx, dword [ebp - 0x284]
cmp edx, 8
jb 0x410a8a
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410a80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41113f
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov esi, 4
jmp 0x41103c
test bl, bl
jne 0x410ca0
cmp dword [ebp - 0x23c], 8
lea edx, [ebp - 0x250]
jb 0x410ab1
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x238], 0
mov ecx, edx
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov byte [ebp - 4], 5
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410ae1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x238]
call fcn.00401680
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x410c56
cmp eax, 0x105
jae 0x410c56
mov dword [ebp - 0x268], 0
xor eax, eax
mov dword [ebp - 0x258], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
lea edx, [ecx + 2]
mov byte [ebp - 4], 0xd
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410b56
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.00401680
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x254]
mov eax, edx
mov ecx, dword [ebp - 0x258]
sub eax, ecx
cmp eax, 0x1b
jb 0x410bc6
lea edi, [ecx + 0x1b]
mov dword [ebp - 0x258], edi
lea esi, [ebp - 0x268]
cmp edx, 8
jb 0x410bab
mov esi, dword [ebp - 0x268]
push 0x36
lea eax, [esi + ecx*2]
push str.EasyAntiCheat_Setup.exe.tmp
push eax
call fcn.00437380
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x410be0
push 0x1b
push str.EasyAntiCheat_Setup.exe.tmp
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x268]
push 0x1b
call fcn.004045d0
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
jb 0x410bf5
mov eax, dword [ebp - 0x268]
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
jb 0x410c0a
mov ecx, dword [ebp - 0x238]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x254]
cmp edx, 8
jb 0x410c56
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410c4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411144
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x410c9a
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410c90
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411149
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x280]
xor dl, dl
push eax
mov ecx, 1
call fcn.0041f580
add esp, 4
test al, al
je 0x410cf3
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
jb 0x410ccf
mov eax, dword [ebp - 0x280]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
jb 0x410cf0
mov eax, dword [ebp - 0x280]
push eax
call esi
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x250]
mov esi, dword [ebp - 0x250]
setae bl
jb 0x410d0d
mov ecx, esi
mov edx, dword [ebp - 0x240]
test edx, edx
je 0x410deb
lea eax, [edx - 1]
cmp eax, 0xffffffff
jb 0x410d26
or eax, 0xffffffff
cmp word [ecx + eax*2], 0x5c
lea eax, [ecx + eax*2]
je 0x410d41
cmp eax, ecx
je 0x410deb
sub eax, 2
cmp word [eax], 0x5c
jne 0x410d30
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x410deb
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov byte [ebp - 4], 5
cmp edx, eax
jb 0x410d76
mov edx, eax
lea eax, [ebp - 0x250]
test bl, bl
je 0x410d82
mov eax, esi
push edx
push eax
lea ecx, [ebp - 0x238]
call fcn.00401680
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
jb 0x410da4
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x410deb
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410de1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41114e
push edx
push ecx
call fcn.0041fbbf
add esp, 8
call fcn.00411bf0
xor esi, esi
jmp 0x41103c
mov dword [ebp - 0x268], 0
push 0x19
push str.Access_to_registry_denied
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0xf
mov byte [ebp - 0x268], 0
mov byte [ebp - 4], 5
call fcn.00401940
mov dword [ebp - 0x238], 0
push 0x1a
push str.setup_error.error_registry
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0xf
mov byte [ebp - 0x238], 0
mov byte [ebp - 4], 7
call fcn.00401940
sub esp, 0x18
mov byte [ebp - 4], 9
lea eax, [ebp - 0x238]
mov ecx, esp
push eax
call fcn.00403b00
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x298]
push eax
lea ecx, [esi + 0x68]
call fcn.00403220
lea eax, [ebp - 0x298]
mov ecx, edi
push eax
call fcn.00403700
mov edx, dword [ebp - 0x284]
cmp edx, 8
jb 0x410ee6
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410edc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411153
push edx
push ecx
call fcn.0041fbbf
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
cmp edx, 0x10
jb 0x410f41
mov ecx, dword [ebp - 0x238]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410f37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411153
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x254]
cmp edx, 0x10
jb 0x410f7f
mov ecx, dword [ebp - 0x268]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410f75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411153
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 2
jb 0x410fac
lea esi, [ecx + 2]
mov eax, edi
mov dword [edi + 0x10], esi
cmp edx, 8
jb 0x410f9d
mov eax, dword [edi]
mov dword [eax + ecx*2], 0x280020
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x410fc2
push 2
push 0x4671f0
push dword [ebp - 0x2b4]
mov ecx, edi
push 2
call fcn.004045d0
cmp dword [ebp - 0x29c], 8
lea esi, [ebp - 0x2b0]
jb 0x410fd7
mov esi, dword [ebp - 0x2b0]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov edx, dword [ebp - 0x2a0]
cmp edx, eax
ja 0x41101e
cmp dword [edi + 0x14], 8
lea eax, [ecx + edx]
mov dword [ebp - 0x2b4], eax
mov ebx, edi
mov dword [edi + 0x10], eax
jb 0x410fff
mov ebx, dword [edi]
lea eax, [edx + edx]
push eax
lea ecx, [ebx + ecx*2]
push esi
push ecx
call fcn.00437380
mov eax, dword [ebp - 0x2b4]
add esp, 0xc
xor ecx, ecx
mov word [ebx + eax*2], cx
jmp 0x41102e
push edx
push esi
push dword [ebp - 0x2b4]
mov ecx, edi
push edx
call fcn.004045d0
push 0x29
mov ecx, edi
call fcn.004035d0
mov esi, 3
mov edx, dword [ebp - 0x29c]
cmp edx, 8
jb 0x41107c
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411072
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411158
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x4110bc
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4110b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411158
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov edx, dword [ebp - 0x26c]
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
cmp edx, 8
jb 0x411115
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41110b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411158
push edx
push ecx
call fcn.0041fbbf
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.0041fb7c
mov esp, ebp
pop ebp
ret 0x10
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
int3