Function at 0x408b30
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 0x44fa43
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x467074]
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 - 0x2b4], ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], 7
mov word [ebp - 0x2ac], ax
mov byte [ebp - 4], 2
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x408bc5
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
cmp byte [ebp + 0x10], cl
jne 0x408c9f
cmp dword [esi + 0x10], ecx
jne 0x408be7
lea esi, [ecx + 1]
jmp 0x409210
xor eax, eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.00414000
test al, al
jne 0x408c4f
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x408c90
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408c86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409250
jmp 0x408c86
push 0x4600ec
lea ecx, [ebp - 0x234]
call fcn.00402120
push esi
lea ecx, [ebp - 0x234]
call fcn.00403070
sub esp, 0x18
lea eax, [ebp - 0x234]
mov ecx, esp
push eax
call fcn.00401eb0
call fcn.00409b80
add esp, 0x18
jmp 0x408c13
push edx
push ecx
call fcn.0042b435
add esp, 8
lea edx, [ebp - 0x2ac]
mov ecx, esi
call fcn.00410e10
jmp 0x408caf
call fcn.00409c80
lea ecx, [ebp - 0x2ac]
call fcn.00411030
sub eax, 0
je 0x409028
mov esi, dword [ebp - 0x2b4]
sub eax, 1
je 0x408cd8
sub eax, 1
jne 0x408ce2
push str.ProductId_already_not_installed__no_action_needed.
push 3
push esi
call fcn.004076d0
add esp, 0xc
cmp byte [ebp + 0xc], 0
je 0x409021
push 0x11
xor eax, eax
mov dword [ebp - 0x224], 0
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00401470
mov edx, edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x234]
call fcn.00413190
test al, al
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
sete al
mov byte [ebp - 0x2ad], al
cmp edx, 8
jb 0x408d77
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408d67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409250
push edx
push ecx
call fcn.0042b435
mov al, byte [ebp - 0x2ad]
add esp, 8
test al, al
je 0x408d85
mov esi, 5
jmp 0x409210
lea eax, [ebp - 0x264]
xor dl, dl
push eax
xor ecx, ecx
call fcn.00413e90
add esp, 4
test al, al
jne 0x408e02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24c]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.0040e6a0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00401280
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x408ec1
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408eb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408eb7
jmp 0x409250
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
push 0x80
cmovae eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [esi + 0x30], 0
jne 0x408ecb
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
cmovae eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x408f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24c]
push str.DeleteFile_failed_with__i
push eax
call fcn.0040e6a0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00401280
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x408ec1
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408eb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409250
push edx
push ecx
call fcn.0042b435
add esp, 8
mov esi, 4
jmp 0x409210
cmp byte [ebp + 0xc], 0
jne 0x408f86
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x27c]
cmovae eax, dword [ebp - 0x264]
push eax
call fcn.004012c0
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 7
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x408f77
cmp eax, 0x105
jae 0x408f77
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.004012c0
push str.EasyAntiCheat_Setup.exe.tmp
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 8
call fcn.00402120
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x24c]
lea eax, [ebp - 0x27c]
cmovae ecx, dword [ebp - 0x24c]
cmp dword [ebp - 0x268], 8
push ecx
cmovae eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x24c]
call fcn.00401220
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 2
call fcn.00401220
lea eax, [ebp - 0x294]
xor dl, dl
push eax
mov ecx, 1
call fcn.00413e90
add esp, 4
test al, al
je 0x408fdb
cmp dword [ebp - 0x280], 8
lea eax, [ebp - 0x294]
push 0x80
cmovae eax, dword [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x280], 8
lea eax, [ebp - 0x294]
cmovae eax, dword [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 8
lea ecx, [ebp - 0x264]
call fcn.00401140
cmp eax, 0xffffffff
je 0x40901c
push eax
push ecx
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x264]
call fcn.00401100
cmp dword [eax + 0x14], 8
jb 0x40900a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x24c]
call fcn.00401220
call fcn.00409c80
xor esi, esi
jmp 0x409210
push 0x19
push str.Access_to_registry_denied
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], 0
call fcn.00401630
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
push 0x1a
push str.setup_error.error_registry
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0xf
mov byte [ebp - 0x27c], 0
call fcn.00401630
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x2b4]
push eax
sub esp, 0x18
lea eax, [ebp - 0x27c]
mov ecx, esp
push eax
call fcn.00402050
lea eax, [ebp - 0x234]
push eax
lea ecx, [esi + 0x34]
call fcn.00401b90
lea eax, [ebp - 0x234]
cmp edi, eax
je 0x4090e1
mov ecx, edi
call fcn.00401220
movups xmm0, xmmword [ebp - 0x234]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x224]
movq qword [edi + 0x10], xmm0
jmp 0x409121
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x409121
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409117
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409250
push edx
push ecx
call fcn.0042b435
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp edx, 0x10
jb 0x40917c
mov ecx, dword [ebp - 0x27c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409172
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409250
push edx
push ecx
call fcn.0042b435
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x238]
cmp edx, 0x10
jb 0x4091ba
mov ecx, dword [ebp - 0x24c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4091b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409250
push edx
push ecx
call fcn.0042b435
add esp, 8
push 0x4604d8
mov ecx, edi
call fcn.00402120
lea eax, [ebp - 0x2ac]
mov ecx, edi
push eax
call fcn.00403070
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, edx
jae 0x4091f4
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
cmp edx, 8
jb 0x4091eb
mov edi, dword [edi]
mov dword [edi + ecx*2], 0x29
jmp 0x40920b
push 0x29
mov byte [ebp - 0x2b4], 0
push dword [ebp - 0x2b4]
push ecx
mov ecx, edi
call fcn.00402a10
mov esi, 3
lea ecx, [ebp - 0x2ac]
call fcn.00401220
lea ecx, [ebp - 0x264]
call fcn.00401220
lea ecx, [ebp - 0x294]
call fcn.00401220
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.0042b3f4
mov esp, ebp
pop ebp
ret 0x10
call fcn.0043012a
int3