Function at 0x41b1a0
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 [0x46b008]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
lea edi, [esi + 0x10]
mov byte [esp + 0xf], dl
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x14], 8
mov dword [edi], 0
jb 0x41b1db
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [0x46f5ac]
test eax, eax
jne 0x41b31a
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 [0x46f5ac], eax
test eax, eax
jne 0x41b31a
cmp dword [0x46f5b0], eax
jne 0x41b254
push str.SHGetFolderPathW
push str.shell32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov eax, dword [0x46f5ac]
mov dword [0x46f5b0], ecx
test eax, eax
jne 0x41b31a
test ecx, ecx
jne 0x41b254
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41b36e
lea eax, [esp + 0x18]
push str._EAC_Service___Warning__Falling_back_to_deprecated_SHGetFolderPathW_WinAPI.
push eax
call fcn.004122f0
add esp, 8
lea eax, [esp + 0x18]
cmp dword [esp + 0x2c], 0x10
jb 0x41b275
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x2c]
cmp edx, 0x10
jb 0x41b2b2
mov ecx, dword [esp + 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b2a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b44d
push edx
push ecx
call fcn.0041b677
add esp, 8
lea eax, [esp + 0x30]
mov dword [esp + 0x28], 0
push eax
push 0
push 0
push 0x8026
push 0
mov dword [esp + 0x40], 0xf
mov byte [esp + 0x2c], 0
call dword [0x46f5b0]
test eax, eax
jne 0x41b36e
lea ecx, [esp + 0x30]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b2f0
sub ecx, edx
lea eax, [esp + 0x30]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004013e0
push 0x464c7c
mov ecx, esi
call fcn.00403680
jmp 0x41b36e
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x8000
push 0x454430
call eax
test eax, eax
jne 0x41b36e
mov edx, dword [esp + 0x10]
mov ecx, edx
lea ebx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b340
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004013e0
push 0x464c7c
mov ecx, esi
call fcn.00403680
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [edi], 0
je 0x41b435
cmp byte [esp + 0xf], 0
je 0x41b3de
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41b388
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41b39e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41b3af
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41b3de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41b3de
cmp dword [esi + 0x14], 8
mov dword [edi], 0
jb 0x41b3d7
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
jmp 0x41b432
mov ecx, dword [edi]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x41b3fe
lea eax, [ecx + 1]
mov dword [edi], eax
mov eax, esi
cmp edx, 8
jb 0x41b3f5
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x5c
jmp 0x41b411
push 0x5c
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004042b0
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x41b426
sub eax, 1
jne 0x41b432
push str.EasyAntiCheat.sys
jmp 0x41b42b
push 0x464cec
mov ecx, esi
call fcn.00403680
cmp dword [edi], 0
mov ecx, dword [esp + 0x23c]
setne al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b636
mov esp, ebp
pop ebp
ret
call fcn.00436a99
int3