Function at 0x4042a0
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40570e
push eax
mov eax, 0x8140
mov dword fs:[0], esp
call fcn.00404cc0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x8158], 1
push ebx
push ebx
push ebx
push ebx
push str.HTTP
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
je 0x40478b
mov eax, dword [esp + 0x8160]
push ebx
push 0x80000000
push ebx
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x404312
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40478b
lea ecx, [esp + 0x44]
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
push 5
push esi
mov dword [esp + 0x5c], 0x104
mov dword [esp + 0x58], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, ebx
jne 0x404346
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40478b
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
mov edx, dword [esp + 0x8168]
mov ebp, eax
push str.CareSetup.dll
push edx
mov dword [esp + 0x48], ebp
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
cmp eax, ebx
jne 0x4043b7
cmp ebp, 0x1388
jae 0x4043b7
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x8160]
mov byte [esp + 0x8158], bl
call fcn.00404940
lea ecx, [esp + 0x8164]
mov dword [esp + 0x8158], 0xffffffff
call fcn.00404940
or eax, 0xffffffff
jmp 0x404829
mov eax, dword [esp + 0x8164]
push 0x40834c
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x404449
push 2
push ebx
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
push ebp
call dword [sym.imp.MSVCRT.dll_ftell]
push ebp
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, ecx
jne 0x404442
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x8160]
mov byte [esp + 0x8158], bl
call fcn.00404940
lea ecx, [esp + 0x8164]
mov dword [esp + 0x8158], 0xffffffff
call fcn.00404940
mov eax, 2
jmp 0x404829
mov ebp, 1
jmp 0x40444d
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x14]
mov byte [esp + 0x8158], 2
call sub.MFC42.DLL_CException::CException
lea ecx, [esp + 0x24]
mov byte [esp + 0x8158], 3
call sub.MFC42.DLL_CString::CString
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x815c], 4
mov dword [esp + 0x18], 0x406654
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::operator
cmp ebp, ebx
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [esp + 0x8158], 5
jne 0x4044d0
mov eax, dword [esp + 0x8164]
lea edx, [esp + 0x14]
push edx
push 0x1021
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::Open
jmp 0x40467a
mov edx, dword [esp + 0x8164]
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::Open
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::GetLength
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Close
push esi
call ebp
push edi
call ebp
push ebx
push ebx
push ebx
push ebx
push str.HTTP
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
jne 0x40457a
mov dword [esp + 0x14], 0x406654
lea ecx, [esp + 0x24]
mov byte [esp + 0x8158], 6
call fcn.00404940
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x406640
mov byte [esp + 0x8158], 1
call fcn.00404ad8
lea ecx, [esp + 0x8160]
mov byte [esp + 0x8158], bl
call fcn.00404940
lea ecx, [esp + 0x8164]
mov dword [esp + 0x8158], 0xffffffff
call fcn.00404940
mov eax, 1
jmp 0x404829
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
push str.Range:bytes_d_
push ecx
mov byte [esp + 0x8164], 7
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x816c]
add esp, 0xc
mov ecx, dword [eax - 8]
push ebx
push 0x80000000
push ecx
push eax
push edx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x404640
push edi
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x8158], 5
call fcn.00404940
mov dword [esp + 0x14], 0x406654
lea ecx, [esp + 0x24]
mov byte [esp + 0x8158], 8
call fcn.00404940
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x406640
mov byte [esp + 0x8158], 1
call fcn.00404ad8
lea ecx, [esp + 0x8160]
mov byte [esp + 0x8158], bl
call fcn.00404940
lea ecx, [esp + 0x8164]
mov dword [esp + 0x8158], 0xffffffff
call fcn.00404940
mov eax, 1
jmp 0x404829
mov ecx, dword [esp + 0x8164]
lea eax, [esp + 0x14]
push eax
push 0x3021
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::Open
mov edx, dword [esp + 0x28]
push 2
push ebx
lea ecx, [esp + 0x30]
call dword [edx + 0x30]
lea ecx, [esp + 0x10]
mov byte [esp + 0x8158], 5
call fcn.00404940
push ebx
lea eax, [esp + 0x44]
push ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x4046e7
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x154]
push edx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404753
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4047bc
lea ecx, [esp + 0x150]
push eax
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Write
cmp dword [esp + 0x38], ebx
je 0x4047bc
push ebx
lea edx, [esp + 0x44]
push ebx
push edx
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x40468c
push esi
call ebp
push edi
call ebp
mov dword [esp + 0x14], 0x406654
lea ecx, [esp + 0x24]
mov byte [esp + 0x8158], 9
call fcn.00404940
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x406640
mov byte [esp + 0x8158], 1
call fcn.00404ad8
lea ecx, [esp + 0x8160]
mov byte [esp + 0x8158], bl
call fcn.00404940
lea ecx, [esp + 0x8164]
mov dword [esp + 0x8158], 0xffffffff
call fcn.00404940
mov eax, 1
jmp 0x404829
push esi
call ebp
push edi
call ebp
mov dword [esp + 0x14], 0x406654
lea ecx, [esp + 0x24]
mov byte [esp + 0x8158], 0xa
call fcn.00404940
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x406640
mov byte [esp + 0x8158], 1
call fcn.00404ad8
lea ecx, [esp + 0x8160]
mov byte [esp + 0x8158], bl
call fcn.00404940
lea ecx, [esp + 0x8164]
mov dword [esp + 0x8158], 0xffffffff
call fcn.00404940
mov eax, 1
jmp 0x404829
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Close
push esi
call ebp
push edi
call ebp
mov dword [esp + 0x14], 0x406654
lea ecx, [esp + 0x24]
mov byte [esp + 0x8158], 0xb
call fcn.00404940
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x406640
mov byte [esp + 0x8158], 1
call fcn.00404ad8
lea ecx, [esp + 0x8160]
mov byte [esp + 0x8158], bl
call fcn.00404940
lea ecx, [esp + 0x8164]
mov dword [esp + 0x8158], 0xffffffff
call fcn.00404940
xor eax, eax
mov ecx, dword [esp + 0x8150]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x814c
ret 8