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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425f60
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x43400c]
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.0042455e
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 bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ffa7
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.00410310
add esp, 4
jmp 0x4102aa
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 0x40ffca
push eax
call fcn.00424b9b
add esp, 4
mov dword [ebx + 4], 0
push dword [ebx + 8]
call fcn.00424ba0
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 0x41002b
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.00410310
add esp, 4
jmp 0x4102aa
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.0040fe80
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.0040fab0
cmp eax, 2
je 0x4102a6
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 0x41010e
mov ecx, ebx
call fcn.0040fab0
lea esi, [ebx + 0x18]
mov eax, 0x42906c
mov ecx, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4100b0
test dl, dl
je 0x4100ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4100b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x410090
xor eax, eax
jmp 0x4100b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x410054
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.0040fab0
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 0x410075
inc eax
jmp 0x4101a7
cmp ecx, 1
jne 0x4101cb
mov ecx, ebx
call fcn.0040fab0
lea esi, [ebx + 0x18]
mov eax, 0x42906c
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410148
test dl, dl
je 0x410144
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410148
add eax, 2
add ecx, 2
test dl, dl
jne 0x410128
xor eax, eax
jmp 0x41014d
sbb eax, eax
or eax, 1
test eax, eax
je 0x410054
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.0040fab0
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 0x410075
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 0x41006f
cmp ecx, 2
jne 0x410054
mov ecx, ebx
call fcn.0040fab0
lea esi, [ebx + 0x18]
mov eax, 0x42906c
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410205
test dl, dl
je 0x410201
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410205
add eax, 2
add ecx, 2
test dl, dl
jne 0x4101e5
xor eax, eax
jmp 0x41020a
sbb eax, eax
or eax, 1
test eax, eax
je 0x410054
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.0040fab0
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 0x410075
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 0x41006f
test ebx, ebx
je 0x4102b2
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.00424550
mov esp, ebp
pop ebp
ret 4