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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d7c0
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x48b034]
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.0046bb69
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 accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40de87
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.0040e1f0
add esp, 4
jmp 0x40e18a
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 0x40deaa
push eax
call fcn.0046c1a8
add esp, 4
mov dword [ebx + 4], 0
push dword [ebx + 8]
call fcn.0046c1ad
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 0x40df0b
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.0040e1f0
add esp, 4
jmp 0x40e18a
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.0040dd60
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.0040d990
cmp eax, 2
je 0x40e186
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 0x40dfee
mov ecx, ebx
call fcn.0040d990
lea esi, [ebx + 0x18]
mov eax, 0x47e674
mov ecx, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40df90
test dl, dl
je 0x40df8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40df90
add eax, 2
add ecx, 2
test dl, dl
jne 0x40df70
xor eax, eax
jmp 0x40df95
sbb eax, eax
or eax, 1
test eax, eax
je 0x40df34
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.0040d990
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 0x40df55
inc eax
jmp 0x40e087
cmp ecx, 1
jne 0x40e0ab
mov ecx, ebx
call fcn.0040d990
lea esi, [ebx + 0x18]
mov eax, 0x47e678
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40e028
test dl, dl
je 0x40e024
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40e028
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e008
xor eax, eax
jmp 0x40e02d
sbb eax, eax
or eax, 1
test eax, eax
je 0x40df34
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.0040d990
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 0x40df55
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 0x40df4f
cmp ecx, 2
jne 0x40df34
mov ecx, ebx
call fcn.0040d990
lea esi, [ebx + 0x18]
mov eax, 0x47e67c
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40e0e5
test dl, dl
je 0x40e0e1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40e0e5
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e0c5
xor eax, eax
jmp 0x40e0ea
sbb eax, eax
or eax, 1
test eax, eax
je 0x40df34
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.0040d990
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 0x40df55
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 0x40df4f
test ebx, ebx
je 0x40e192
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.0046bb5b
mov esp, ebp
pop ebp
ret 4