Function at 0x418bb0
Capabilities:
Create directory
Delete directory
Print debug messages
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x47b008]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea edi, [esi + 0x10]
mov byte [esp + 0x13], dl
mov dword [edi], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x418be9
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [0x47db3c]
test eax, eax
jne 0x418cc7
push str.SHGetKnownFolderPath
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x47db3c], eax
test eax, eax
jne 0x418cc7
cmp dword [0x47db40], eax
jne 0x418c60
push str.SHGetFolderPathW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov eax, dword [0x47db3c]
mov dword [0x47db40], ecx
test eax, eax
jne 0x418cc7
test ecx, ecx
jne 0x418c60
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x418d01
lea eax, [esp + 0x18]
push str._EAC_Service___Warning__Falling_back_to_deprecated_SHGetFolderPathW_WinAPI.
push eax
call fcn.00411d70
add esp, 8
lea eax, [esp + 0x18]
cmp dword [esp + 0x2c], 0x10
jb 0x418c81
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x18]
call fcn.00401680
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0x8026
push 0
call dword [0x47db40]
test eax, eax
jne 0x418d01
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00401590
push 0xe
push 0x46fad4
mov ecx, esi
call fcn.0040a810
jmp 0x418d01
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x8000
push 0x45f450
call eax
test eax, eax
jne 0x418d01
push dword [esp + 0x14]
mov ecx, esi
call fcn.00401590
push 0xe
push 0x46fad4
mov ecx, esi
call fcn.0040a810
push dword [esp + 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [edi], 0
je 0x418dc8
cmp byte [esp + 0x13], 0
je 0x418d71
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x418d1b
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x418d31
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x418d42
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x418d71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x418d71
cmp dword [esi + 0x14], 8
mov dword [edi], 0
jb 0x418d6a
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
jmp 0x418dc5
mov ecx, dword [edi]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x418d91
lea eax, [ecx + 1]
mov dword [edi], eax
mov eax, esi
cmp edx, 8
jb 0x418d88
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x5c
jmp 0x418da4
push 0x5c
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0040ac30
sub ebx, 0
je 0x418db7
sub ebx, 1
jne 0x418dc5
push 0x11
push str.EasyAntiCheat.sys
jmp 0x418dbe
push 0x11
push 0x46fb44
mov ecx, esi
call fcn.0040a810
cmp dword [edi], 0
mov ecx, dword [esp + 0x23c]
setne al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042207c
mov esp, ebp
pop ebp
ret