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

Disassembly:
push ebp
lea ebp, [esp - 0x208]
sub esp, 0x288
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x204], eax
push esi
mov esi, dword [ebp + 0x21c]
push edi
mov edi, dword [ebp + 0x210]
push str.AIL:OnShowLicense
lea ecx, [ebp - 0x68]
call fcn.100010f3
push 1
push esi
call fcn.1001096c
pop ecx
pop ecx
xor esi, esi
push esi
push str.32770
push esi
push edi
call dword [sym.imp.USER32.dll_FindWindowExW]
cmp eax, esi
jne 0x10010385
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x68], vtable.CLogFunc.0
call fcn.101d12b4
pop ecx
jmp 0x10010620
push ebx
push 0x3e8
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
mov dword [ebp - 0x74], ebx
cmp ebx, esi
je 0x1001060e
mov ax, word [0x10275d80]
cmp ax, si
je 0x10010418
cmp ax, 0x66
je 0x100103b6
cmp ax, 0x46
jne 0x100103c0
cmp word [0x10275d82], 0x3d
je 0x10010421
mov eax, 0x10275d80
push closesocket
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], 0x1000fb65
mov dword [0x10275d5c], esi
call fcn.1001661b
mov edi, eax
push edi
push str.StrSize_d
push 3
call fcn.101d1209
add esp, 0x14
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x435
push ebx
call esi
lea eax, [ebp - 0x80]
push eax
push 1
push 0x449
push ebx
call esi
jmp 0x1001060e
mov dword [ebp - 0x70], str.License
jmp 0x10010428
mov dword [ebp - 0x70], 0x10275d84
push 0x10
lea eax, [ebp + 0x1e4]
push eax
push dword [section..data]
call fcn.1000c1df
add esp, 0xc
lea eax, [ebp + 0x1e4]
push eax
push dword [ebp - 0x70]
push str.ExeDir
call fcn.1000a6f3
pop ecx
push eax
push str._s_Setup_s__s.txt
lea eax, [ebp - 0x24]
push 0x104
push eax
call fcn.1001d140
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x18
push esi
push 0x80
push 3
push esi
push esi
mov ebx, closesocket
push ebx
lea eax, [ebp - 0x24]
push eax
call edi
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
jne 0x10010505
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push eax
push str.CreateFile__s__err___d
push 1
call fcn.101d1209
push 0x10
lea eax, [ebp + 0x1e4]
push eax
push 0x409
call fcn.1000c1df
add esp, 0x1c
lea eax, [ebp + 0x1e4]
push eax
push dword [ebp - 0x70]
push str.ExeDir
call fcn.1000a6f3
pop ecx
push eax
push str._s_Setup_s__s.txt
lea eax, [ebp - 0x24]
push 0x104
push eax
call fcn.1001d140
add esp, 0x18
push esi
push 0x80
push 3
push esi
push esi
push ebx
lea eax, [ebp - 0x24]
push eax
call edi
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
je 0x100105f4
lea eax, [ebp - 0x24]
push eax
push str.LicenseFile_s
push 3
call fcn.101d1209
add esp, 0xc
push esi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x100105d3
push edi
push str.FileSize_d
push 3
call fcn.101d1209
lea eax, [edi + 2]
push eax
call fcn.101d2044
mov ebx, eax
lea eax, [edi + 2]
push eax
push esi
push ebx
call fcn.101d19d0
add esp, 0x1c
cmp ebx, esi
je 0x100105c3
push esi
lea eax, [ebp - 0x70]
push eax
push edi
push ebx
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100105a5
push edi
push esi
push 0x435
push dword [ebp - 0x74]
lea eax, [ebx + 2]
mov dword [ebp - 0x7c], esi
mov dword [0x10275d5c], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0x1000fb65
call esi
lea eax, [ebp - 0x80]
push eax
push 0x11
push 0x449
push dword [ebp - 0x74]
call esi
jmp 0x100105bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___err_d
push 1
call fcn.101d1209
add esp, 0xc
push ebx
call fcn.101d1bfb
jmp 0x100105d0
push 0x101f53dc
push 1
call fcn.101d0efc
pop ecx
pop ecx
jmp 0x100105e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSize___err_d
push 1
call fcn.101d1209
add esp, 0xc
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001060e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push eax
push str.CreateFile__s__err___d
push 1
call fcn.101d1209
add esp, 0x10
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x68], vtable.CLogFunc.0
call fcn.101d12b4
pop ecx
pop ebx
mov ecx, dword [ebp + 0x204]
pop edi
xor ecx, ebp
pop esi
call fcn.101d14d7
add ebp, 0x208
leave
ret