Function at 0x416070
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 0x496ff2
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x4bb0c8]
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 ebx, ecx
mov dword [ebp - 0x29c], ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x27c], 0
xor eax, eax
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
mov byte [ebp - 4], 5
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x416122
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
cmp byte [ebp + 0x10], cl
jne 0x4162c7
cmp dword [edi + 0x10], ecx
jne 0x416144
lea esi, [ecx + 1]
jmp 0x4165e6
mov dword [ebp - 0x24c], ecx
mov ebx, 7
mov dword [ebp - 0x238], ebx
xor eax, eax
mov byte [ebp - 4], bl
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x298]
push eax
push 0
push 0
push 0x49ada0
mov dword [ebp - 0x23c], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x416274
mov edx, dword [ebp - 0x298]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416194
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24c]
call fcn.00403b80
push 1
push 0x4b1098
lea ecx, [ebp - 0x24c]
call fcn.0040a1c0
push 0xd
push str.EasyAntiCheat
lea ecx, [ebp - 0x24c]
call fcn.0040a1c0
push dword [ebp - 0x298]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x23c], 0
je 0x41626e
push 1
push 0x4b1098
lea ecx, [ebp - 0x24c]
call fcn.0040a1c0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x416209
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x24c]
push eax
call fcn.0040a1c0
sub esp, 0x18
lea eax, [ebp - 0x24c]
mov ecx, esp
push eax
call fcn.0040bd10
call fcn.00416fa0
mov byte [ebp - 4], 5
add esp, 0x18
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x4162b2
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41626b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4166df
push edx
jmp 0x4162a9
mov ebx, dword [ebp - 0x238]
mov byte [ebp - 4], 5
cmp ebx, 8
jb 0x4162b2
mov ecx, dword [ebp - 0x24c]
lea ebx, [ebx*2 + 2]
mov eax, ecx
cmp ebx, 0x1000
jb 0x4162a8
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4166df
push ebx
push ecx
call fcn.0046cebb
add esp, 8
lea edx, [ebp - 0x294]
mov ecx, edi
call fcn.0041f5b0
mov ebx, dword [ebp - 0x29c]
jmp 0x4162d7
call fcn.004170e0
lea ecx, [ebp - 0x294]
call fcn.0041f810
sub eax, 0
je 0x416584
mov bh, byte [ebp + 0xc]
sub eax, 1
je 0x4162fc
sub eax, 1
jne 0x416304
push str.ProductId_already_not_installed__no_action_needed.
push 3
call fcn.00415150
add esp, 8
test bh, bh
je 0x416580
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x264]
call fcn.004036a0
mov edx, esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x264]
call fcn.00421440
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 5
mov bl, al
call fcn.00403640
test bl, bl
jne 0x416344
mov esi, 5
jmp 0x4165e6
lea eax, [ebp - 0x234]
xor dl, dl
push eax
xor ecx, ecx
call fcn.00421af0
add esp, 4
test al, al
jne 0x416393
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x264]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.0041d020
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409730
lea ecx, [ebp - 0x264]
call fcn.00403640
mov esi, 4
jmp 0x4165e6
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push 0x80
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x29c]
cmp byte [eax + 0x30], 0
jne 0x416429
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4164e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4164e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x264]
push str.DeleteFile_failed_with__i
push eax
call fcn.0041d020
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409730
lea ecx, [ebp - 0x264]
call fcn.00403640
mov esi, 4
jmp 0x4165e6
test bh, bh
jne 0x4164e4
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x264]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.004036a0
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 9
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4164d5
cmp eax, 0x105
jae 0x4164d5
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.004036a0
push 0x1b
push str.EasyAntiCheat_Setup.exe.tmp
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0xa
call fcn.0040a1c0
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x24c]
lea eax, [ebp - 0x264]
cmovae ecx, dword [ebp - 0x24c]
cmp dword [ebp - 0x250], 8
push ecx
cmovae eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x24c]
call fcn.00403640
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 5
call fcn.00403640
lea eax, [ebp - 0x27c]
xor dl, dl
push eax
mov ecx, 1
call fcn.00421af0
add esp, 4
test al, al
je 0x416539
cmp dword [ebp - 0x268], 8
lea eax, [ebp - 0x27c]
push 0x80
cmovae eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x268], 8
lea eax, [ebp - 0x27c]
cmovae eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 8
lea ecx, [ebp - 0x234]
call fcn.0040a6f0
cmp eax, 0xffffffff
je 0x41657b
push eax
push 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040a660
cmp dword [eax + 0x14], 8
jb 0x416569
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x264]
call fcn.00403640
call fcn.004170e0
xor esi, esi
jmp 0x4165e6
sub esp, 8
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.00415030
push eax
mov ecx, esi
call fcn.00409730
lea ecx, [ebp - 0x264]
call fcn.00403640
push 2
push 0x4b17d8
mov ecx, esi
call fcn.0040a1c0
cmp dword [ebp - 0x280], 8
lea eax, [ebp - 0x294]
push dword [ebp - 0x284]
cmovae eax, dword [ebp - 0x294]
mov ecx, esi
push eax
call fcn.0040a1c0
push 0x29
mov ecx, esi
call fcn.0040e190
mov esi, 3
mov edx, dword [ebp - 0x280]
cmp edx, 8
jb 0x416626
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41661c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4166df
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x416666
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41665c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4166df
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov edx, dword [ebp - 0x268]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp edx, 8
jb 0x4166bf
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4166b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4166df
push edx
push ecx
call fcn.0046cebb
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.0046ce78
mov esp, ebp
pop ebp
ret 0x10
call fcn.00471c84
int3