Function at 0x41afc0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4977a0
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4bb0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov byte [ebp - 0xa9], 0
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41b034
mov eax, dword [edi]
lea ecx, [edi + 0x10]
mov dword [ecx], 0
mov dword [ebp - 0xb8], ecx
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x28], ecx
push 0x14
mov dword [ebp - 0x18], ecx
xor eax, eax
push str.EasyAntiCheat_EOSSys
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
call fcn.00403b80
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00421440
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41b0bb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b0b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b49f
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov esi, dword [0x4bbce8]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0xb0], ecx
test ecx, ecx
je 0x41b313
cmp ecx, 0x1ffffe4
ja 0x41b313
add esi, 0x1c
cmp ecx, 2
jb 0x41b11d
mov al, cl
lea edx, [esi + ecx]
add al, al
add cl, al
mov al, 3
sub al, cl
add byte [edx - 1], al
mov edx, dword [ebp - 0xb0]
add edx, 0xfffffffe
je 0x41b118
movzx eax, dl
lea ecx, [edx + esi]
imul eax, eax, 0xfd
sub al, byte [edx + esi + 1]
add byte [ecx], al
sub edx, 1
jne 0x41b101
mov al, byte [esi + 1]
sub byte [esi], al
lea eax, [ebp - 0x40]
mov dl, 1
push eax
mov ecx, 1
call fcn.00421af0
add esp, 4
test al, al
jne 0x41b161
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.GetServicePath_failed_with__i.
push eax
call fcn.0041d020
add esp, 0xc
mov ecx, edi
push eax
call fcn.00409730
lea ecx, [ebp - 0x28]
call fcn.00403640
jmp 0x41b321
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0x80
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0xb4], ecx
cmp ecx, 0xffffffff
jne 0x41b1d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.CreateFile_failed_with__i.
push eax
call fcn.0041d020
add esp, 0xc
mov ecx, edi
push eax
call fcn.00409730
lea ecx, [ebp - 0x28]
call fcn.00403640
jmp 0x41b321
push 0
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0xb0]
mov eax, dword [0x4bbce8]
add eax, 0x1c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xb4]
mov dword [ebp - 0xb0], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x41b23f
push dword [ebp - 0xb0]
lea eax, [ebp - 0x28]
push str.WriteFile_failed_with__i.
push eax
call fcn.0041d020
add esp, 0xc
mov ecx, edi
push eax
call fcn.00409730
lea ecx, [ebp - 0x28]
call fcn.00403640
jmp 0x41b321
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xb4], esi
cmp esi, 0xffffffff
jne 0x41b29d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.CreateFile_for_read_failed_with__i.
push eax
call fcn.0041d020
add esp, 0xc
mov ecx, edi
push eax
call fcn.00409730
lea ecx, [ebp - 0x28]
call fcn.00403640
jmp 0x41b321
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41b2a7
mov eax, dword [edi]
mov ecx, dword [ebp - 0xb8]
push edi
push 0x1388
mov dword [ecx], 0
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x4bbd00
call fcn.00419800
sub eax, 0
je 0x41b2e2
sub eax, 1
je 0x41b2d9
sub eax, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41b321
push edi
lea eax, [ebp - 0x40]
push eax
call fcn.0041b4b0
mov esi, eax
test esi, esi
mov dword [0x4bbcfc], esi
setne byte [ebp - 0xa9]
push dword [ebp - 0xb4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x41b3f5
jmp 0x41b321
push 0x14
push str.Invalid_binary_size.
mov ecx, edi
call fcn.00403b80
lea ecx, [ebp - 0xa8]
call fcn.0041bb00
mov ecx, eax
mov byte [ebp - 4], 6
cmp dword [edi + 0x14], 8
jb 0x41b33a
mov edi, dword [edi]
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax]
lea eax, [edi + eax*2]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.0041bf50
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 8
call fcn.0041ba30
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x200
jb 0x41b39f
cmp ecx, 0x1ff
jb 0x41b38d
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0x1ff
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 0x1ff], 0
jmp 0x41b39f
mov eax, 0x1ff
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.004107a0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov eax, dword [0x4bbce8]
add eax, 0x1c
push 0x200
push eax
call fcn.00476198
mov edx, dword [ebp - 0x14]
add esp, 0xc
cmp edx, 0x10
jb 0x41b3f5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b3eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b4a4
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov eax, dword [0x4bbce8]
movzx ecx, byte [ebp - 0xa9]
mov dword [eax + 0x14], ecx
push dword [0x4bbcf4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x41b446
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b43c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b4a9
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41b47c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b472
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b4a9
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov al, byte [ebp - 0xa9]
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.0046ce78
mov esp, ebp
pop ebp
ret 4
call fcn.00471c84
call fcn.00471c84
call fcn.00471c84
int3