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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ec7b
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x4c0100]
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 0x416fde
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 0x4a2e60
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x417061
mov edx, dword [ebp - 0xac]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417022
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00409510
push 0x4b5138
lea ecx, [ebp - 0x28]
call fcn.0040bf80
push str.EasyAntiCheat_EOS
lea ecx, [ebp - 0x28]
call fcn.0040bf80
push dword [ebp - 0xac]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x18], 0
je 0x41775d
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 0x4170df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4170da
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 0x41722a
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 0x417111
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 0x41721d
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x417898
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0xbc], eax
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x41713b
mov ecx, bind
jmp 0x417162
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 0x41715a
mov ecx, bind
jmp 0x417162
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 0x4171fb
mov edi, dword [ebp - 0x28]
push edi
push eax
call fcn.00474370
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 0x4171ef
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4178a2
mov edi, edx
push ecx
push edi
call fcn.0047292b
add esp, 8
jmp 0x417214
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.00474370
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.0040bf80
cmp dword [ebp - 0x18], 0
je 0x41775d
mov edi, dword [ebp - 0xb8]
cmp byte [edi + 0x18], 0
jne 0x417252
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004188f0
test al, al
je 0x4177ad
mov ecx, dword [ebp - 0xb0]
lea edx, [ebp - 0x88]
call fcn.00422870
sub eax, 1
je 0x41746b
sub eax, 1
je 0x41745c
sub esp, 8
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.00415f10
push eax
mov ecx, esi
call fcn.00409620
lea ecx, [ebp - 0x58]
call fcn.004037b0
push 0x4b6758
mov ecx, esi
call fcn.0040bf80
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 0x41730b
cmp dword [esi + 0x14], 7
lea eax, [edi + edx]
mov dword [ebp - 0xb4], eax
mov edi, esi
mov dword [esi + 0x10], eax
jbe 0x4172e1
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.00474370
mov eax, dword [ebp - 0xb4]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x41731b
push edx
push ecx
push dword [ebp - 0xb0]
mov ecx, esi
push edx
call fcn.00409fa0
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], edi
cmp ecx, edi
jae 0x41734f
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edi, 7
jbe 0x41733e
mov esi, dword [esi]
mov dword [esi + ecx*2], 0x29
mov edi, 3
jmp 0x4177b2
mov edx, bind
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x41789d
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0xb0], eax
or ecx, 7
cmp ecx, edx
jbe 0x417377
mov ecx, edx
jmp 0x41738f
mov eax, edi
shr eax, 1
sub edx, eax
cmp edi, edx
jbe 0x417388
mov ecx, bind
jmp 0x41738f
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 0x417434
mov edi, dword [esi]
push edi
push eax
call fcn.00474370
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 0x417418
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4178ac
mov edi, edx
push ecx
push edi
call fcn.0047292b
mov eax, dword [ebp - 0xa8]
add esp, 8
mov dword [esi], eax
mov edi, 3
jmp 0x4177b2
push esi
push eax
call fcn.00474370
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 0x4177b2
push str.ProductId_already_marked_as_installed__no_action_needed.
push 3
call fcn.00416030
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.00424af0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x4174df
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4174d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4178a2
push ecx
push edx
call fcn.0047292b
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 0x417733
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 0x417520
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 0x417560
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.00418d10
mov byte [ebp - 4], 5
add esp, 0x10
mov ecx, dword [ebp - 0x5c]
mov edi, eax
cmp ecx, 7
jbe 0x417607
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4175fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4178a7
push ecx
push edx
call fcn.0047292b
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 0x417659
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41764f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4178a7
push ecx
push edx
call fcn.0047292b
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 0x4176ab
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4176a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4178a7
push ecx
push edx
call fcn.0047292b
add esp, 8
test edi, edi
je 0x417725
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.00418d10
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 0x4177b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push str.OpenSCManager_failed_with__i
push eax
call fcn.00420510
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409620
lea ecx, [ebp - 0x58]
call fcn.004037b0
jmp 0x4177b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push str.GetServiceImagePathByType_failed_with__i
push eax
call fcn.00420510
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x4177a5
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 0x4177ef
mov edx, dword [ebp - 0x88]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4177e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4178ac
push ecx
push edx
call fcn.0047292b
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x417829
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41781f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4178ac
push ecx
push edx
call fcn.0047292b
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 0x417879
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41786f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4178ac
push ecx
push edx
call fcn.0047292b
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.004728e8
mov esp, ebp
pop ebp
ret 8
call fcn.00401510
call fcn.00401510
call fcn.004780c4
call fcn.004780c4
call fcn.004780c4
int3