Function at 0x4027f0
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 0x41f5e0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xe0
mov eax, dword [0x42b040]
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.00408634
mov edi, eax
add esp, 4
mov dword [ebp - 0x9c], edi
push pe_nt_image_headers32
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 fcn.0040a260
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 - 0xa0], edi
push str.AllowableIpList.txt
push pe_nt_image_headers32
push esi
call fcn.0040bc90
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 dword [ebp - 0x90], eax
cmp eax, 0xffffffff
jne 0x4028dd
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 0x402c70
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 0x402900
push eax
call fcn.004088d8
add esp, 4
mov dword [edi + 4], 0
push dword [edi + 8]
call fcn.004088dd
add esp, 4
mov dword [edi + 4], eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], 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
jne 0x402940
push esi
push str.__s__Could_not_read_file
jmp 0x402c53
mov eax, dword [edi + 4]
cmp byte [eax], 0xef
jne 0x402958
cmp byte [eax + 1], 0xbb
jne 0x402958
cmp byte [eax + 2], 0xbf
je 0x402c4d
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, 0x42bacc
mov esi, dword [0x42bacc]
push dword [esi + 4]
push 0x42bacc
call fcn.00402c90
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [0x42bad0], 0
mov dword [ebp - 4], 0
nop dword [eax + eax]
mov ecx, edi
call fcn.00404930
cmp eax, 2
jne 0x4029e8
test edi, edi
je 0x4029c8
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.00408618
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
cvttss2si eax, dword [edi + 0x110]
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x4029b0
mov ecx, edi
call fcn.00404930
lea esi, [edi + 0x114]
mov eax, 0x426cb8
mov ecx, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402a30
test dl, dl
je 0x402a2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402a30
add eax, 2
add ecx, 2
test dl, dl
jne 0x402a10
xor eax, eax
jmp 0x402a35
sbb eax, eax
or eax, 1
test eax, eax
je 0x4029b0
push esi
lea eax, [ebp - 0x8c]
push 0x20
push eax
call fcn.0040bc90
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x20], 0
add esp, 0xc
lea edx, [ecx + 1]
movups xmmword [ebp - 0x34], xmm0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a70
sub ecx, edx
lea eax, [ebp - 0x8c]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00402430
movups xmm1, xmmword [ebp - 0x34]
mov byte [ebp - 0x34], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [ebp - 0xa8], xmm0
movq qword [ebp - 0x5c], xmm0
movups xmm0, xmmword [ebp - 0x8c]
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0xc8], xmm1
mov dword [ebp - 0x20], 0xf
movups xmmword [ebp - 0xd8], xmm0
movups xmmword [ebp - 0x54], xmm0
movups xmm0, xmmword [ebp - 0x7c]
movups xmmword [ebp - 0x6c], xmm1
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, 0x42bacc
push eax
call fcn.00402100
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0xb4], xmm0
cmp byte [eax + 0xd], 0
jne 0x402b45
cmp dword [eax + 0x24], 0xf
lea edx, [eax + 0x10]
jbe 0x402b1e
mov edx, dword [eax + 0x10]
push dword [eax + 0x20]
mov edi, dword [ebp - 0x58]
lea ecx, [ebp - 0x6c]
movd esi, xmm1
cmp edi, 0xf
push edx
mov edx, dword [ebp - 0x5c]
cmova ecx, esi
call fcn.00401c10
add esp, 8
test eax, eax
jns 0x402bf4
cmp dword [0x42bad0], 0x38e38e3
je 0x402c7d
mov esi, dword [0x42bacc]
mov dword [ebp - 0x94], 0x42bacc
mov byte [ebp - 4], 3
push 0x48
mov dword [ebp - 0x90], 0
call fcn.00408634
movups xmm0, xmmword [ebp - 0xc8]
add esp, 4
mov byte [ebp - 0x6c], 0
mov ecx, 0x42bacc
mov dword [ebp - 0x90], 0
mov dword [eax + 0x20], 0
mov edi, 0xf
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]
push dword [ebp - 0xb4]
movups xmmword [eax + 0x28], xmm0
movups xmm0, xmmword [ebp - 0xe8]
movups xmmword [eax + 0x38], xmm0
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.00402210
mov esi, dword [ebp - 0x6c]
mov byte [ebp - 4], 1
cmp edi, 0xf
jbe 0x402c24
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x402c1a
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c82
push ecx
push esi
call fcn.00408626
add esp, 8
mov edi, dword [ebp - 0x9c]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x98]
jmp 0x4029f6
push esi
push str.__s__The_file_is_codified_in_UTF_8_BOM_and_cannot_be_read._Change_it_to_UTF_8_and_try_again
lea eax, [edi + 0x218]
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.00404da0
push eax
call fcn.004081d0
call fcn.00402420
call fcn.0040bc3f
int3