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

Disassembly:
jmp 0x403c45
mov eax, 0x418424
call fcn.00416730
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 0x403d06
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.00401ad7
test eax, eax
je 0x403f5a
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.004165de
mov ecx, dword [0x422e08]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040122b
test eax, eax
je 0x403f61
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.004165de
push str._proginit_proginit.asp
lea ecx, [ebp - 0x10]
call fcn.004165de
push 0x420d90
lea ecx, [ebp - 0x10]
call fcn.004165de
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
call fcn.004165f6
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 0x403dd3
push edi
push edi
push edi
push 1
push edi
call esi
cmp eax, edi
mov dword [ebp - 0x30], eax
je 0x403f90
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 0x403fd5
mov edi, 0x2000
push edi
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp - 0x28], eax
je 0x403fcc
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 0x403fd5
mov ecx, dword [ebp - 0x40]
mov eax, 0x12c
cmp ecx, 0xc8
jb 0x404013
cmp ecx, eax
jae 0x404013
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 0x403fd5
xor esi, esi
push 0x422970
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 0x403eed
cmp dword [ebp - 0x2c], 0
jbe 0x403f06
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.004165f6
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.004165d8
add esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
push eax
push 0x2000
push dword [ebp - 0x28]
push dword [ebp - 0x24]
jmp 0x403e9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1c], eax
jl 0x404005
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 0x403fea
push dword [ebp - 0x44]
push dword [ebp - 0x20]
push esi
call sub.MSVCRT.dll_memcpy
mov ecx, dword [0x422e08]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.004017b7
test eax, eax
je 0x403ff3
push esi
mov ecx, ebx
call fcn.004015f0
test eax, eax
je 0x403ffe
jmp 0x404005
push str.CCacheUpdateThread::GetLBSNameFromInternetOpenUrl___:_GetCurrrentIP___failed_n
jmp 0x403f66
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.004165d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004165d8
jmp 0x4040a5
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.004165d8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004165d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004165d8
jmp 0x40407b
mov dword [ebp - 0x1c], 0x8007000e
jmp 0x404047
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1c], eax
jmp 0x404047
mov dword [ebp - 0x1c], 0x8007000e
jmp 0x404005
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.004165d8
jmp 0x404047
cmp ecx, 0x1f4
jbe 0x404024
mov dword [ebp - 0x1c], 0x80070548
jmp 0x404047
cmp ecx, 0x190
jb 0x404035
mov dword [ebp - 0x1c], 0x80070002
jmp 0x404047
cmp ecx, eax
mov dword [ebp - 0x1c], 0x8007065e
jae 0x404047
mov dword [ebp - 0x1c], 0x8007000d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004165d8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004165d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004165d8
xor edi, edi
cmp dword [ebp - 0x24], edi
je 0x40407b
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x30], edi
je 0x404089
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x28], edi
je 0x404097
push dword [ebp - 0x28]
call sub.MFC42.DLL_operatordelete
pop ecx
cmp dword [ebp - 0x3c], edi
je 0x4040a5
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