Function at 0x40e6c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x130], ecx
push 0x280
call fcn.0042357e
mov ebx, eax
add esp, 4
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x134], ebx
push str..Client_LicenseMessage.txt
lea esi, [ebx + 0x180]
mov dword [ebx], vtable.CMemScript.0
push 0x100
push esi
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e787
lea eax, [ebx + 0x180]
push eax
lea esi, [ebx + 0x80]
push str.__s__Could_not_open_file_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call fcn.0040eaf0
add esp, 4
jmp 0x40ea8a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x40e7aa
push eax
call fcn.00423bbb
add esp, 4
mov dword [ebx + 4], 0
push dword [ebx + 8]
call fcn.00423bc0
add esp, 4
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push 0
push ecx
push dword [ebx + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e80b
lea eax, [ebx + 0x180]
push eax
lea esi, [ebx + 0x80]
push str.__s__Could_not_read_file_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040eaf0
add esp, 4
jmp 0x40ea8a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x130]
mov dword [ebx + 0x7c], eax
call fcn.0040e660
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.0040e290
cmp eax, 2
je 0x40ea86
cvttss2si ecx, dword [ebx + 0x10]
mov dword [ebp - 0x12c], ecx
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
test ecx, ecx
jne 0x40e8ee
mov ecx, ebx
call fcn.0040e290
lea esi, [ebx + 0x18]
mov eax, 0x427cc8
mov ecx, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40e890
test dl, dl
je 0x40e88c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40e890
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e870
xor eax, eax
jmp 0x40e895
sbb eax, eax
or eax, 1
test eax, eax
je 0x40e834
push 0x80
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cvttss2si eax, dword [ebx + 0x10]
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0xa0], eax
call fcn.0040e290
push esi
lea eax, [ebp - 0x9c]
push 0x80
push eax
call edi
mov eax, dword [ebp - 0xa0]
add esp, 0xc
mov ecx, dword [ebp - 0x12c]
cmp eax, 0x31
ja 0x40e855
inc eax
jmp 0x40e987
cmp ecx, 1
jne 0x40e9ab
mov ecx, ebx
call fcn.0040e290
lea esi, [ebx + 0x18]
mov eax, 0x427cc8
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40e928
test dl, dl
je 0x40e924
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40e928
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e908
xor eax, eax
jmp 0x40e92d
sbb eax, eax
or eax, 1
test eax, eax
je 0x40e834
push 0x80
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cvttss2si eax, dword [ebx + 0x10]
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0xa0], eax
call fcn.0040e290
push esi
lea eax, [ebp - 0x9c]
push 0x80
push eax
call edi
mov eax, dword [ebp - 0xa0]
add esp, 0xc
mov ecx, dword [ebp - 0x12c]
cmp eax, 0x31
ja 0x40e855
add eax, 0x33
imul edi, eax, 0x84
lea esi, [ebp - 0xa0]
mov ecx, 0x21
add edi, dword [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x12c]
jmp 0x40e84f
cmp ecx, 2
jne 0x40e834
mov ecx, ebx
call fcn.0040e290
lea esi, [ebx + 0x18]
mov eax, 0x427cc8
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40e9e5
test dl, dl
je 0x40e9e1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40e9e5
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e9c5
xor eax, eax
jmp 0x40e9ea
sbb eax, eax
or eax, 1
test eax, eax
je 0x40e834
push 0x80
lea eax, [ebp - 0x124]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cvttss2si eax, dword [ebx + 0x10]
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x128], eax
call fcn.0040e290
push esi
lea eax, [ebp - 0x124]
push 0x80
push eax
call edi
mov eax, dword [ebp - 0x128]
add esp, 0xc
mov ecx, dword [ebp - 0x12c]
cmp eax, 0x31
ja 0x40e855
add eax, 0x65
lea esi, [ebp - 0x128]
imul edi, eax, 0x84
mov ecx, 0x21
add edi, dword [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x12c]
jmp 0x40e84f
test ebx, ebx
je 0x40ea92
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00423570
mov esp, ebp
pop ebp
ret 4