Function at 0x4014f1
Capabilities:
Check http status code
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
jmp 0x403bd9
mov eax, 0x418494
call fcn.004167a0
sub esp, 0x5c
push ebx
mov ebx, ecx
xor eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], eax
push 0xa
lea eax, [ebx + 0x192]
push str.UNDEFINED
push eax
call esi
mov edi, str.127.0.0.1
push 0x10
lea eax, [ebx + 0x19d]
push edi
push eax
call esi
push 0x10
lea eax, [ebx + 0x1ae]
push edi
push eax
call esi
push 0x10
lea eax, [ebx + 0x5af]
push edi
push eax
call esi
push 0x10
lea eax, [ebx + 0x9b0]
push edi
push eax
call esi
push 0x10
lea eax, [ebx + 0xdb1]
push edi
push eax
call esi
push 0x10
lea eax, [ebx + 0x11b2]
push edi
push eax
call esi
push 0x10
lea eax, [ebx + 0x15b3]
push edi
push eax
call esi
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
pop ecx
call dword [sym.imp.MSVCRT.dll_rand]
push 2
lea edi, [ebx + 0x112]
cdq
pop ecx
idiv ecx
push 0x80
lea eax, [ebx + 0x48]
test edx, edx
je 0x403c9a
lea eax, [ebx + 0xad]
push eax
push edi
call esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
xor esi, esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
mov byte [ebp - 4], 1
call fcn.00401adc
test eax, eax
je 0x403eee
push str.mode0LANIP
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x14]
push eax
call fcn.0041664c
mov ecx, dword [0x422d18]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040122b
test eax, eax
je 0x403ef5
push str.http:__
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0041664c
push str._proginit_proginit.asp
lea ecx, [ebp - 0x10]
call fcn.0041664c
push 0x420cdc
lea ecx, [ebp - 0x10]
call fcn.0041664c
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
call fcn.00416664
push esi
push esi
push esi
push esi
push esi
mov esi, dword [sym.imp.WININET.dll_InternetOpenA]
call esi
xor edi, edi
mov dword [ebp - 0x30], eax
cmp eax, edi
jne 0x403d67
push edi
push edi
push edi
push 1
push edi
call esi
cmp eax, edi
mov dword [ebp - 0x30], eax
je 0x403f24
push edi
push edi
push edi
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, edi
mov dword [ebp - 0x24], eax
je 0x403f69
mov edi, 0x2000
push edi
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp - 0x28], eax
je 0x403f60
lea eax, [ebp - 0x34]
push 0
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
and dword [ebp - 0x40], 0
push eax
lea eax, [ebp - 0x40]
push eax
push 0x20000013
push dword [ebp - 0x24]
mov dword [ebp - 0x34], 4
call esi
test eax, eax
je 0x403f69
mov ecx, dword [ebp - 0x40]
mov eax, 0x12c
cmp ecx, 0xc8
jb 0x403fa7
cmp ecx, eax
jae 0x403fa7
lea eax, [ebp - 0x34]
push 0
and dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x34], 4
push eax
push 0x20000005
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x403f69
xor esi, esi
push 0x422880
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], esi
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
push edi
push dword [ebp - 0x28]
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
push dword [ebp - 0x24]
call edi
test eax, eax
je 0x403e81
cmp dword [ebp - 0x2c], 0
jbe 0x403e9a
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], eax
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.00416664
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00416646
add esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
push eax
push 0x2000
push dword [ebp - 0x28]
push dword [ebp - 0x24]
jmp 0x403e30
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1c], eax
jl 0x403f99
mov dword [ebp - 0x44], esi
inc esi
push esi
call sub.MFC42.DLL_operatornew
mov esi, eax
pop ecx
test esi, esi
mov dword [ebp - 0x3c], esi
je 0x403f7e
push dword [ebp - 0x44]
push dword [ebp - 0x20]
push esi
call sub.MSVCRT.dll_memcpy
mov ecx, dword [0x422d18]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.004017b7
test eax, eax
je 0x403f87
push esi
mov ecx, ebx
call fcn.004015f0
test eax, eax
je 0x403f92
jmp 0x403f99
push str.CCacheUpdateThread::GetLBSNameFromInternetOpenUrl___:_GetCurrrentIP___failed_n
jmp 0x403efa
push str.CCacheUpdateThread::GetLBSNameFromInternetOpenUrl___:_EncryptInfo___failed_n
call fcn.00401465
and byte [ebp - 4], 0
pop ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 0x80004005
call fcn.00416646
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00416646
jmp 0x404039
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
lea ecx, [ebp - 0x10]
or eax, 0x80070000
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], eax
call fcn.00416646
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00416646
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00416646
jmp 0x40400f
mov dword [ebp - 0x1c], 0x8007000e
jmp 0x403fdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1c], eax
jmp 0x403fdb
mov dword [ebp - 0x1c], 0x8007000e
jmp 0x403f99
push str.CCacheUpdateThread::GetLBSNameFromInternetOpenUrl___:_DecryptInfo___Failed_n
call fcn.00401465
pop ecx
mov dword [ebp - 0x1c], 0x80004005
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00416646
jmp 0x403fdb
cmp ecx, 0x1f4
jbe 0x403fb8
mov dword [ebp - 0x1c], 0x80070548
jmp 0x403fdb
cmp ecx, 0x190
jb 0x403fc9
mov dword [ebp - 0x1c], 0x80070002
jmp 0x403fdb
cmp ecx, eax
mov dword [ebp - 0x1c], 0x8007065e
jae 0x403fdb
mov dword [ebp - 0x1c], 0x8007000d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00416646
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00416646
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00416646
xor edi, edi
cmp dword [ebp - 0x24], edi
je 0x40400f
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x30], edi
je 0x40401d
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x28], edi
je 0x40402b
push dword [ebp - 0x28]
call sub.MFC42.DLL_operatordelete
pop ecx
cmp dword [ebp - 0x3c], edi
je 0x404039
push dword [ebp - 0x3c]
call sub.MFC42.DLL_operatordelete
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret