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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409770
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xe0
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x318
call fcn.00408824
mov edi, eax
add esp, 4
mov dword [ebp - 0x98], edi
push 0x100
lea esi, [edi + 0xc]
mov dword [edi], vtable.CMemScript.0
push 0
push esi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [edi + 0x218]
push esi
push str.__s__The_file_were_not_configured_correctly
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x98], edi
push str.AllowableIpList.txt
push 0x100
push esi
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 SQLBindCol
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x90], eax
cmp eax, 0xffffffff
jne 0x4032be
push esi
lea eax, [edi + 0x218]
push str.__s__Could_not_open_file
push eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
call eax
add esp, 0xc
jmp 0x403637
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x4032e1
push eax
call fcn.00408877
add esp, 4
mov dword [edi + 4], 0
push dword [edi + 8]
call fcn.0040887c
add esp, 4
mov dword [edi + 4], eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push 0
push ecx
push dword [edi + 8]
push eax
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403614
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x214], eax
mov ecx, 0x40f114
mov esi, dword [0x40f114]
push dword [esi + 4]
push 0x40f114
call fcn.00403650
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [0x40f118], 0
mov dword [ebp - 4], 0
nop dword [eax]
mov ecx, edi
call fcn.00405de0
cmp eax, 2
jne 0x4033a8
test edi, edi
je 0x403388
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004085b7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
cvttss2si eax, dword [edi + 0x110]
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x403370
mov ecx, edi
call fcn.00405de0
lea esi, [edi + 0x114]
mov eax, 0x40b580
mov ecx, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4033f0
test dl, dl
je 0x4033ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4033f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4033d0
xor eax, eax
jmp 0x4033f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x403370
push esi
lea eax, [ebp - 0x8c]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x34]
push eax
call fcn.00403080
xorps xmm0, xmm0
movups xmmword [ebp - 0x6c], xmm0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xc8], xmm0
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa8], xmm0
movq qword [ebp - 0x5c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
movups xmm0, xmmword [ebp - 0x8c]
movups xmmword [ebp - 0xd8], xmm0
movups xmmword [ebp - 0x54], xmm0
movups xmm0, xmmword [ebp - 0x7c]
movups xmmword [ebp - 0xe8], xmm0
movups xmmword [ebp - 0x44], xmm0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xf4]
mov ecx, 0x40f114
push eax
call fcn.00402b50
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0xb4], xmm0
cmp byte [eax + 0xd], 0
jne 0x4034bf
add eax, 0x10
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00402c40
test al, al
jne 0x4034bf
mov esi, dword [ebp - 0x58]
jmp 0x403576
cmp dword [0x40f118], 0x38e38e3
je 0x403644
mov eax, dword [0x40f114]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xa0], 0x40f114
mov byte [ebp - 4], 3
push 0x48
mov dword [ebp - 0x9c], 0
call fcn.00408824
movups xmm0, xmmword [ebp - 0xc8]
mov ecx, dword [ebp - 0x94]
add esp, 4
mov esi, 0xf
mov byte [ebp - 0x6c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
movups xmmword [eax + 0x10], xmm0
push eax
movq xmm0, qword [ebp - 0xa8]
push dword [ebp - 0xb0]
movq qword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0xd8]
mov dword [ebp - 0x9c], 0
push dword [ebp - 0xb4]
movups xmmword [eax + 0x28], xmm0
movups xmm0, xmmword [ebp - 0xe8]
movups xmmword [eax + 0x38], xmm0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, 0x40f114
mov word [eax + 0xc], 0
call fcn.00402cf0
mov byte [ebp - 4], 1
cmp esi, 0xf
jbe 0x4035a9
mov edx, dword [ebp - 0x6c]
lea ecx, [esi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40359f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035d3
push ecx
push edx
call fcn.00408816
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x4035e3
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4035d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4035d9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00408816
add esp, 8
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
jmp 0x4033b6
push esi
lea eax, [edi + 0x218]
push str.__s__Could_not_read_file
push eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
call eax
add esp, 0xc
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00406230
push eax
call fcn.004083e0
call fcn.00402f00
int3