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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495bf0
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4b80c8]
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 0x419724
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.00403a20
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0041f9d0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4197ab
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4197a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b8f
push edx
push ecx
call fcn.0046b46b
add esp, 8
mov esi, dword [0x4b8c38]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0xb0], ecx
test ecx, ecx
je 0x419a03
cmp ecx, 0x1ffffe4
ja 0x419a03
add esi, 0x1c
cmp ecx, 2
jb 0x41980d
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 0x419808
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 0x4197f1
mov al, byte [esi + 1]
sub byte [esi], al
lea eax, [ebp - 0x40]
mov dl, 1
push eax
mov ecx, 1
call fcn.004200a0
add esp, 4
test al, al
jne 0x419851
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.GetServicePath_failed_with__i.
push eax
call fcn.0041b6a0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00407f20
lea ecx, [ebp - 0x28]
call fcn.004034e0
jmp 0x419a11
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 0x4198c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.CreateFile_failed_with__i.
push eax
call fcn.0041b6a0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00407f20
lea ecx, [ebp - 0x28]
call fcn.004034e0
jmp 0x419a11
push 0
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0xb0]
mov eax, dword [0x4b8c38]
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 0x41992f
push dword [ebp - 0xb0]
lea eax, [ebp - 0x28]
push str.WriteFile_failed_with__i.
push eax
call fcn.0041b6a0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00407f20
lea ecx, [ebp - 0x28]
call fcn.004034e0
jmp 0x419a11
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 0x41998d
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.0041b6a0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00407f20
lea ecx, [ebp - 0x28]
call fcn.004034e0
jmp 0x419a11
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x419997
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, 0x4b8c50
call fcn.004180b0
sub eax, 0
je 0x4199d2
sub eax, 1
je 0x4199c9
sub eax, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x419a11
push edi
lea eax, [ebp - 0x40]
push eax
call fcn.00419ba0
mov esi, eax
test esi, esi
mov dword [0x4b8c4c], esi
setne byte [ebp - 0xa9]
push dword [ebp - 0xb4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x419ae5
jmp 0x419a11
push 0x14
push str.Invalid_binary_size.
mov ecx, edi
call fcn.00403a20
lea ecx, [ebp - 0xa8]
call fcn.0041a1f0
mov ecx, eax
mov byte [ebp - 4], 6
cmp dword [edi + 0x14], 8
jb 0x419a2a
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.0041a640
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 8
call fcn.0041a120
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x200
jb 0x419a8f
cmp ecx, 0x1ff
jb 0x419a7d
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 0x419a8f
mov eax, 0x1ff
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.0040eea0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov eax, dword [0x4b8c38]
add eax, 0x1c
push 0x200
push eax
call fcn.00474758
mov edx, dword [ebp - 0x14]
add esp, 0xc
cmp edx, 0x10
jb 0x419ae5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x419adb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b94
push edx
push ecx
call fcn.0046b46b
add esp, 8
mov eax, dword [0x4b8c38]
movzx ecx, byte [ebp - 0xa9]
mov dword [eax + 0x14], ecx
push dword [0x4b8c44]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x419b36
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419b2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b99
push edx
push ecx
call fcn.0046b46b
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x419b6c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419b62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b99
push edx
push ecx
call fcn.0046b46b
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.0046b428
mov esp, ebp
pop ebp
ret 4
call fcn.00470244
call fcn.00470244
call fcn.00470244
int3