Function at 0x4019f7
Capabilities:
Connect to http server
Create http request
Initialize winsock library
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1fc
lea eax, [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemTime]
call eax
sub esp, 4
mov eax, dword [0x41b020]
test eax, eax
je 0x401a6a
movzx eax, word [ebp - 0x34]
movzx edi, ax
movzx eax, word [ebp - 0x36]
movzx esi, ax
movzx eax, word [ebp - 0x38]
movzx ebx, ax
movzx eax, word [ebp - 0x3a]
movzx ecx, ax
movzx eax, word [ebp - 0x3e]
movzx edx, ax
movzx eax, word [ebp - 0x40]
movzx eax, ax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str.DEBUG:_Current_date:__4d__02d__02d__02d:_02d:_02d_n
call sym._printf
lea eax, [ebp - 0x1e4]
mov dword [esp + 4], eax
mov dword [esp], 0x202
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401aad
call sym.lastError__
mov dword [esp + 4], eax
mov dword [esp], str.ERROR:_WSAStartup_failed:__s_n
call sym._printf
mov eax, 1
jmp 0x401eaa
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], str.date_test
mov eax, dword [sym.imp.WININET.DLL_InternetOpenA]
call eax
sub esp, 0x14
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401b29
call sym.lastError__
mov dword [esp + 4], eax
mov dword [esp], str.ERROR:_InternetOpenA_failed:__s_n
call sym._printf
mov eax, 1
jmp 0x401eaa
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1bb
mov dword [esp + 4], str.update.lastline.com
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetConnectA]
call eax
sub esp, 0x20
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], 0
jne 0x401b99
call sym.lastError__
mov dword [esp + 4], eax
mov dword [esp], str.ERROR:_InternetConnectA_failed:__s_n
call sym._printf
mov eax, 1
jmp 0x401eaa
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x803080
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str._utility_api.php_functionget_datetimeformatjson
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_HttpOpenRequestA]
call eax
sub esp, 0x20
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x401c09
call sym.lastError__
mov dword [esp + 4], eax
mov dword [esp], str.ERROR:_HttpOpenRequestA_failed:__s_n
call sym._printf
mov eax, 1
jmp 0x401eaa
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_HttpSendRequestA]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x401c61
call sym.lastError__
mov dword [esp + 4], eax
mov dword [esp], str.ERROR:_HttpSendRequestA_failed:__s_n
call sym._printf
mov eax, 1
jmp 0x401eaa
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetQueryDataAvailable]
call eax
sub esp, 0x10
test eax, eax
je 0x401c93
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x401c9a
mov eax, 1
jmp 0x401c9f
mov eax, 0
test al, al
je 0x401cc2
call sym.lastError__
mov dword [esp + 4], eax
mov dword [esp], str.ERROR:_InternetQueryDataAvailable_failed:__s_n
call sym._printf
mov eax, 1
jmp 0x401eaa
mov eax, dword [ebp - 0x44]
and eax, 3
test eax, eax
je 0x401cd8
mov eax, dword [ebp - 0x44]
and eax, 0xfffffffc
add eax, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call sym.operator_new___unsigned_int_
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x48]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetReadFile]
call eax
sub esp, 0x10
test eax, eax
je 0x401d30
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x401d37
mov eax, 1
jmp 0x401d3c
mov eax, 0
test al, al
je 0x401d70
cmp dword [ebp - 0x2c], 0
je 0x401d51
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym.operator_delete___void_
call sym.lastError__
mov dword [esp + 4], eax
mov dword [esp], str.ERROR:_InternetReadFile_failed:__s_n
call sym._printf
mov eax, 1
jmp 0x401eaa
mov eax, dword [ebp - 0x44]
sub eax, 1
add eax, dword [ebp - 0x2c]
mov byte [eax], 0
mov eax, dword [0x41b020]
test eax, eax
je 0x401d98
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], str.DEBUG:_Downloaded:__s_n
call sym._printf
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov dword [esp + 4], str._date_:_
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._strstr
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x401dfa
mov dword [esp], str.WARNING:_Cannot_obtain_date_from_Internet__unexpected_JSON_response_
call sym._puts
mov eax, 1
jmp 0x401eaa
lea eax, [ebp - 0x54]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 4], str._date_:__d__d__d
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._sscanf
test eax, eax
sete al
test al, al
je 0x401e3e
mov dword [esp], str.WARNING:_Cannot_obtain_date_from_Internet
call sym._puts
mov eax, 1
jmp 0x401eaa
mov eax, dword [0x41b020]
test eax, eax
je 0x401e68
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str.DEBUG:_Internet_says_its__d__02d__02d_n
call sym._printf
movzx eax, word [ebp - 0x3a]
movzx edx, ax
mov eax, dword [ebp - 0x54]
cmp edx, eax
jne 0x401e92
movzx eax, word [ebp - 0x3e]
movzx edx, ax
mov eax, dword [ebp - 0x50]
cmp edx, eax
jne 0x401e92
movzx eax, word [ebp - 0x40]
movzx edx, ax
mov eax, dword [ebp - 0x4c]
cmp edx, eax
je 0x401ea5
mov dword [esp], str.WARNING:_The_date_is_wrong___probably_resuming_a_VM_snapshot
call sym._puts
mov eax, 1
jmp 0x401eaa
mov eax, 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret