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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x46f008]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov byte [esp + 0x13], dl
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x14], 8
jb 0x41f5b2
mov eax, dword [esi]
lea edi, [esi + 0x10]
xor ecx, ecx
mov dword [edi], 0
mov word [eax], cx
mov eax, dword [0x4738fc]
test eax, eax
jne 0x41f748
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SHGetKnownFolderPath
push str.shell32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4738fc], eax
test eax, eax
jne 0x41f748
cmp dword [0x473900], eax
jne 0x41f634
push str.SHGetFolderPathW
push str.shell32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov eax, dword [0x4738fc]
mov dword [0x473900], ecx
test eax, eax
jne 0x41f748
test ecx, ecx
jne 0x41f634
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41f7e6
lea eax, [esp + 0x20]
push str._EAC_Service___Warning__Falling_back_to_deprecated_SHGetFolderPathW_WinAPI.
push eax
call fcn.00412330
add esp, 8
lea eax, [esp + 0x20]
cmp dword [esp + 0x34], 0x10
jb 0x41f655
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x41f692
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41f688
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f916
push edx
push ecx
call fcn.0041fbbf
add esp, 8
lea eax, [esp + 0x38]
mov dword [esp + 0x30], 0
push eax
push 0
push 0
push 0x8026
push 0
mov dword [esp + 0x48], 0xf
mov byte [esp + 0x34], 0
call dword [0x473900]
test eax, eax
jne 0x41f7e6
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f6d0
sub ecx, edx
lea eax, [esp + 0x38]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00401680
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [edi]
sub eax, ecx
mov dword [esp + 0x18], ecx
cmp eax, 0xe
jb 0x41f72f
lea eax, [ecx + 0xe]
mov ebx, esi
mov dword [edi], eax
cmp edx, 8
jb 0x41f70c
mov ebx, dword [esi]
push 0x1c
lea eax, [ebx + ecx*2]
push 0x4685d4
push eax
call fcn.00437380
mov eax, dword [esp + 0x24]
add esp, 0xc
xor ecx, ecx
mov word [ebx + eax*2 + 0x1c], cx
jmp 0x41f7e6
push 0xe
push 0x4685d4
push dword [esp + 0x1c]
mov ecx, esi
push 0xe
call fcn.004045d0
jmp 0x41f7e6
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x8000
push 0x459430
call eax
test eax, eax
jne 0x41f7e6
mov edx, dword [esp + 0x18]
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f770
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00401680
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [edi]
sub eax, ecx
mov dword [esp + 0x1c], ecx
cmp eax, 0xe
jb 0x41f7c8
lea eax, [ecx + 0xe]
mov ebx, esi
mov dword [edi], eax
cmp edx, 8
jb 0x41f7a8
mov ebx, dword [esi]
push 0x1c
lea eax, [ebx + ecx*2]
push 0x4685d4
push eax
call fcn.00437380
mov eax, dword [esp + 0x28]
add esp, 0xc
xor ecx, ecx
mov word [ebx + eax*2 + 0x1c], cx
jmp 0x41f7dc
push 0xe
push 0x4685d4
push dword [esp + 0x1c]
mov ecx, esi
push 0xe
call fcn.004045d0
push dword [esp + 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [edi], 0
je 0x41f8fe
cmp byte [esp + 0x13], 0
je 0x41f859
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41f800
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41f816
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41f827
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41f859
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41f859
cmp dword [esi + 0x14], 8
jb 0x41f849
mov esi, dword [esi]
xor eax, eax
mov dword [edi], 0
mov word [esi], ax
jmp 0x41f8fb
push 0x5c
mov ecx, esi
call fcn.004035d0
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x41f8b2
sub eax, 1
jne 0x41f8fb
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [edi]
sub eax, ecx
cmp eax, 0x11
jb 0x41f8a9
lea ebx, [ecx + 0x11]
mov dword [edi], ebx
cmp edx, 8
jb 0x41f88e
mov esi, dword [esi]
push 0x22
lea eax, [esi + ecx*2]
push str.EasyAntiCheat.sys
push eax
call fcn.00437380
add esp, 0xc
xor eax, eax
mov word [esi + ebx*2], ax
jmp 0x41f8fb
push 0x11
push str.EasyAntiCheat.sys
jmp 0x41f8ee
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [edi]
sub eax, ecx
cmp eax, 0x11
jb 0x41f8e7
lea ebx, [ecx + 0x11]
mov dword [edi], ebx
cmp edx, 8
jb 0x41f8cc
mov esi, dword [esi]
push 0x22
lea eax, [esi + ecx*2]
push 0x468644
push eax
call fcn.00437380
add esp, 0xc
xor eax, eax
mov word [esi + ebx*2], ax
jmp 0x41f8fb
push 0x11
push 0x468644
push dword [esp + 0x1c]
mov ecx, esi
push 0x11
call fcn.004045d0
cmp dword [edi], 0
mov ecx, dword [esp + 0x244]
setne al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041fb7c
mov esp, ebp
pop ebp
ret
call fcn.00439d3f
int3