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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ff23
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x467074]
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]
xor eax, eax
mov byte [ebp - 0xa9], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x40cb9a
mov eax, dword [edi]
lea ecx, [edi + 0x10]
mov dword [ebp - 0x14], 7
mov dword [ecx], 0
mov dword [ebp - 0xb8], ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 0x14
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
push str.EasyAntiCheat_EOSSys
mov word [ebp - 0x28], ax
call fcn.00401470
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00413190
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40cc1a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cc10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1ab
push edx
push ecx
call fcn.0042b435
add esp, 8
mov esi, dword [0x467b48]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0xb0], ecx
test ecx, ecx
je 0x40cea2
cmp ecx, 0x1ffffe4
ja 0x40cea2
add esi, 0x1c
cmp ecx, 2
jb 0x40cc7c
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 0x40cc77
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 0x40cc60
mov al, byte [esi + 1]
sub byte [esi], al
lea eax, [ebp - 0x40]
mov dl, 1
push eax
mov ecx, 1
call fcn.00413e90
add esp, 4
test al, al
jne 0x40cd22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.GetServicePath_failed_with__i.
push eax
call fcn.0040e6a0
mov esi, eax
add esp, 0xc
cmp edi, esi
je 0x40ccdf
mov ecx, edi
call fcn.00401220
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40ceb0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1b0
push edx
push ecx
call fcn.0042b435
add esp, 8
jmp 0x40ceb0
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 0x40cd8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.CreateFile_failed_with__i.
push eax
call fcn.0040e6a0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00401280
jmp 0x40ccdf
push 0
lea eax, [ebp - 0xf0]
push eax
push dword [ebp - 0xb0]
mov eax, dword [0x467b48]
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 0x40cdf0
push dword [ebp - 0xb0]
lea eax, [ebp - 0x28]
push str.WriteFile_failed_with__i.
push eax
call fcn.0040e6a0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00401280
jmp 0x40ccdf
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 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ce40
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.0040e6a0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00401280
jmp 0x40ccdf
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40ce4a
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, 0x467b60
call fcn.0040c400
sub eax, 0
jne 0x40ce8c
push edi
lea eax, [ebp - 0x40]
push eax
call fcn.0040d1c0
test eax, eax
mov dword [0x467b5c], eax
setne byte [ebp - 0xa9]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xa9], 0
jne 0x40d0fd
jmp 0x40ceb0
push 0x14
push str.Invalid_binary_size.
mov ecx, edi
call fcn.00401470
mov dword [ebp - 0xa8], 0x45fdb0
push 1
mov byte [ebp - 4], 3
call fcn.00414624
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
mov byte [ebp - 4], 6
push 0x34
mov word [ebp - 0x60], ax
mov byte [ebp - 0x5e], al
call fcn.0042b405
mov esi, eax
add esp, 8
mov dword [ebp - 0xb4], esi
mov dword [esi + 4], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xec]
push 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.004143b0
mov dword [ebp - 0xe8], 0
mov byte [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov byte [ebp - 0xdc], 0
xor eax, eax
mov dword [ebp - 0xd8], 0
mov word [ebp - 0xd4], ax
mov dword [ebp - 0xd0], eax
mov word [ebp - 0xcc], ax
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], al
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0xbc], al
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0xf
push 0x46097c
push eax
call fcn.0041472b
lea eax, [ebp - 0x11c]
push eax
call fcn.00414c2a
add esp, 0xc
lea ecx, [ebp - 0xec]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
call fcn.00405910
push esi
lea ecx, [ebp - 0xa8]
mov dword [esi], method.std::codecvt_wchar_t__char__struct__Mbstatet_.virtual_0
mov byte [ebp - 4], 6
call fcn.0040dfc0
mov byte [ebp - 4], 0x10
cmp dword [edi + 0x14], 8
jb 0x40cfff
mov edi, dword [edi]
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xa8]
mov eax, dword [eax]
lea eax, [edi + eax*2]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.0040db70
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0x12
call fcn.0040d420
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x200
jb 0x40d0a7
cmp ecx, 0x1ff
jb 0x40d058
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 0x40d0a7
mov edx, dword [ebp - 0x14]
mov edi, 0x1ff
mov eax, edx
sub edi, ecx
sub eax, ecx
cmp edi, eax
ja 0x40d08e
cmp edx, 0x10
lea esi, [ebp - 0x28]
push edi
cmovae esi, dword [ebp - 0x28]
lea eax, [edi + ecx]
add esi, ecx
mov dword [ebp - 0x18], eax
push 0
push esi
call fcn.0042d660
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x40d0a7
push 0
push edi
mov byte [ebp - 0xb4], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0xb4]
push edi
call fcn.00405030
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov eax, dword [0x467b48]
add eax, 0x1c
push 0x200
push eax
call fcn.004341e0
mov edx, dword [ebp - 0x14]
add esp, 0xc
cmp edx, 0x10
jb 0x40d0fd
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d0f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1b0
push edx
push ecx
call fcn.0042b435
add esp, 8
mov eax, dword [0x467b48]
xor ecx, ecx
cmp byte [ebp - 0xa9], cl
setne cl
mov dword [eax + 0x14], ecx
push dword [0x467b54]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40d152
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d148
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1b0
push edx
push ecx
call fcn.0042b435
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40d188
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d17e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1b0
push edx
push ecx
call fcn.0042b435
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.0042b3f4
mov esp, ebp
pop ebp
ret 4
call fcn.0043012a
call fcn.0043012a
int3