Function at 0x416af0
Capabilities:
Create directory
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49de5b
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x4bf100]
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 - 0xb8], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xb0], eax
xor eax, eax
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 2
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x416b8e
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
cmova eax, dword [ebp - 0x28]
mov word [eax], cx
lea eax, [ebp - 0xac]
push eax
push ecx
push 0x8000
push 0x4a1e60
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x416c11
mov edx, dword [ebp - 0xac]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416bd2
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004093c0
push 0x4b41e8
lea ecx, [ebp - 0x28]
call fcn.0040be90
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x28]
call fcn.0040be90
push dword [ebp - 0xac]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x18], 0
je 0x41730d
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push pe_nt_image_headers32
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, bind
test eax, eax
jne 0x416c8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x416c8a
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmova eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
jmp 0x416dda
mov edx, bind
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xb4], edi
cmp ecx, edi
jae 0x416cc1
lea eax, [ecx + 1]
cmp edi, 7
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
mov dword [eax + ecx*2], 0x5c
jmp 0x416dcd
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x417448
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0xbc], eax
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x416ceb
mov ecx, bind
jmp 0x416d12
mov eax, edi
shr eax, 1
mov dword [ebp - 0xa4], eax
mov eax, edx
mov edx, dword [ebp - 0xa4]
sub eax, edx
cmp edi, eax
jbe 0x416d0a
mov ecx, bind
jmp 0x416d12
lea eax, [edi + edx]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004051f0
mov ecx, dword [ebp - 0xbc]
add esp, 8
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xa4], eax
lea edx, [ecx + ecx]
lea ecx, [edx + eax]
mov dword [ebp - 0xa8], ecx
push edx
cmp edi, 7
jbe 0x416dab
mov edi, dword [ebp - 0x28]
push edi
push eax
call fcn.004735e0
mov eax, dword [ebp - 0xa8]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0xb4]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x416d9f
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x417452
mov edi, edx
push ecx
push edi
call fcn.00471b8b
add esp, 8
jmp 0x416dc4
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.004735e0
mov eax, dword [ebp - 0xa8]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x28], eax
push str.EasyAntiCheat_EOS.exe
lea ecx, [ebp - 0x28]
call fcn.0040be90
cmp dword [ebp - 0x18], 0
je 0x41730d
mov edi, dword [ebp - 0xb8]
cmp byte [edi + 0x18], 0
jne 0x416e02
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004184a0
test al, al
je 0x41735d
mov ecx, dword [ebp - 0xb0]
lea edx, [ebp - 0x88]
call fcn.00421ad0
sub eax, 1
je 0x41701b
sub eax, 1
je 0x41700c
sub esp, 8
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.00415ad0
push eax
mov ecx, esi
call fcn.004094d0
lea ecx, [ebp - 0x58]
call fcn.004037b0
push 0x4b5800
mov ecx, esi
call fcn.0040be90
cmp dword [ebp - 0x74], 7
lea ecx, [ebp - 0x88]
mov edi, dword [esi + 0x10]
cmova ecx, dword [ebp - 0x88]
mov eax, dword [esi + 0x14]
mov edx, dword [ebp - 0x78]
sub eax, edi
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb0], edi
cmp edx, eax
ja 0x416ebb
cmp dword [esi + 0x14], 7
lea eax, [edi + edx]
mov dword [ebp - 0xb4], eax
mov edi, esi
mov dword [esi + 0x10], eax
jbe 0x416e91
mov edi, dword [esi]
mov eax, dword [ebp - 0xb0]
lea ecx, [edi + eax*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0xb8]
push ecx
call fcn.004735e0
mov eax, dword [ebp - 0xb4]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x416ecb
push edx
push ecx
push dword [ebp - 0xb0]
mov ecx, esi
push edx
call fcn.00409d40
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], edi
cmp ecx, edi
jae 0x416eff
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edi, 7
jbe 0x416eee
mov esi, dword [esi]
mov dword [esi + ecx*2], 0x29
mov edi, 3
jmp 0x417362
mov edx, bind
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x41744d
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0xb0], eax
or ecx, 7
cmp ecx, edx
jbe 0x416f27
mov ecx, edx
jmp 0x416f3f
mov eax, edi
shr eax, 1
sub edx, eax
cmp edi, edx
jbe 0x416f38
mov ecx, bind
jmp 0x416f3f
add eax, edi
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], ecx
push eax
push esi
call fcn.004051f0
mov ecx, dword [ebp - 0xb0]
add esp, 8
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0xa4]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xa8], eax
lea edx, [ecx + ecx]
lea ecx, [eax + edx]
mov dword [ebp - 0xa4], ecx
push edx
cmp edi, 7
jbe 0x416fe4
mov edi, dword [esi]
push edi
push eax
call fcn.004735e0
mov eax, dword [ebp - 0xa4]
add esp, 0xc
mov dword [eax], 0x29
mov eax, dword [ebp - 0xb4]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x416fc8
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x41745c
mov edi, edx
push ecx
push edi
call fcn.00471b8b
mov eax, dword [ebp - 0xa8]
add esp, 8
mov dword [esi], eax
mov edi, 3
jmp 0x417362
push esi
push eax
call fcn.004735e0
mov eax, dword [ebp - 0xa4]
add esp, 0xc
mov edi, 3
mov dword [eax], 0x29
mov eax, dword [ebp - 0xa8]
mov dword [esi], eax
jmp 0x417362
push str.ProductId_already_marked_as_installed__no_action_needed.
push 3
call fcn.00415bf0
add esp, 8
push 0x11
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
call fcn.00404400
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00423d50
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x41708f
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417085
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417452
push ecx
push edx
call fcn.00471b8b
add esp, 8
push 2
push 0
push 0
mov edi, 5
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xac], eax
test eax, eax
je 0x4172e3
mov ecx, str.Provides_security_for_online_multiplayer_games.
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4170d0
sub ecx, edx
sar ecx, 1
push ecx
push str.Provides_security_for_online_multiplayer_games.
lea ecx, [ebp - 0x58]
call fcn.00404400
mov ecx, str.Easy_Anti_Cheat__Epic_Online_Services_
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417110
sub ecx, edx
sar ecx, 1
push ecx
push str.Easy_Anti_Cheat__Epic_Online_Services_
lea ecx, [ebp - 0x40]
call fcn.00404400
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
push 0x11
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
push str.EasyAntiCheat_EOS
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
call fcn.00404400
push esi
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xac]
lea edx, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004188c0
mov byte [ebp - 4], 5
add esp, 0x10
mov ecx, dword [ebp - 0x5c]
mov edi, eax
cmp ecx, 7
jbe 0x4171b7
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4171ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417457
push ecx
push edx
call fcn.00471b8b
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ecx, 7
jbe 0x417209
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4171ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417457
push ecx
push edx
call fcn.00471b8b
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 7
jbe 0x41725b
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417251
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417457
push ecx
push edx
call fcn.00471b8b
add esp, 8
test edi, edi
je 0x4172d5
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Provides_security_for_online_multiplayer_games.
lea ecx, [ebp - 0x70]
call fcn.00403810
push str.Easy_Anti_Cheat__Epic_Online_Services_
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00403810
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
call fcn.00403810
push esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xac]
lea edx, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004188c0
add esp, 0x10
lea ecx, [ebp - 0x58]
mov edi, eax
call fcn.004037b0
lea ecx, [ebp - 0x40]
call fcn.004037b0
lea ecx, [ebp - 0x70]
call fcn.004037b0
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x417362
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push str.OpenSCManager_failed_with__i
push eax
call fcn.0041f5e0
add esp, 0xc
mov ecx, esi
push eax
call fcn.004094d0
lea ecx, [ebp - 0x58]
call fcn.004037b0
jmp 0x417362
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.0041f5e0
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x417355
mov ecx, esi
call fcn.004037b0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x58]
call fcn.004037b0
mov edi, 4
mov eax, dword [ebp - 0x74]
cmp eax, 7
jbe 0x41739f
mov edx, dword [ebp - 0x88]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417395
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41745c
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4173d9
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4173cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41745c
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov ecx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x417429
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41741f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41745c
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov eax, edi
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.00471b48
mov esp, ebp
pop ebp
ret 8
call fcn.00401510
call fcn.00401510
call fcn.00477334
call fcn.00477334
call fcn.00477334
int3