Function at 0x402158
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
mov eax, 0x403e93
call fcn.0040395c
sub esp, 0x24
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x20], ebx
push 1
lea eax, [ebp - 0x1c]
pop edi
lea ecx, [ebp + 0xc]
push 5
push ebx
push eax
mov dword [ebp - 4], edi
mov byte [ebp - 0xd], bl
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push str.https
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
neg eax
pop ecx
sbb al, al
pop ecx
inc al
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0xe], al
call sub.MFC42.DLL_CString::CString
cmp byte [ebp - 0xe], bl
je 0x4021b1
mov byte [ebp - 0xd], 1
push str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0_
lea ecx, [ebp - 0x18]
call fcn.00403738
push ebx
push ebx
push ebx
push edi
push dword [ebp - 0x18]
mov byte [ebp - 4], 2
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x4021eb
mov ecx, dword [ebp + 8]
push 0x40745c
call fcn.00403738
mov dword [ebp - 0x20], edi
jmp 0x40240d
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402438
movzx ecx, ax
cmp ecx, 0xffffffff
jne 0x402218
mov al, byte [ebp - 0xd]
neg al
sbb eax, eax
and eax, 0x16b
add eax, 0x50
push ebx
push ebx
mov edi, 0x40745c
push 3
push edi
push edi
push eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00402541
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004026e2
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetConnectA]
lea ecx, [ebp - 0x1c]
mov dword [esi + 4], eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
cmp dword [esi + 4], ebx
jne 0x402285
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 8]
push edi
call fcn.00403738
mov dword [ebp - 0x20], 1
jmp 0x40240d
mov al, byte [ebp - 0xd]
push 0x407150
neg al
sbb eax, eax
lea ecx, [ebp - 0x2c]
and eax, 0x7fc000
add eax, 0x80004000
mov edi, eax
call fcn.00403738
push ebx
push edi
push ebx
push ebx
push str.HTTP_1.1
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0040265a
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004026e2
push eax
lea ecx, [ebp - 0x2c]
call fcn.004026e2
push eax
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
cmp dword [esi], ebx
jne 0x40230c
push dword [esi + 4]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [esi + 8]
call edi
push str.Accept:_text_html__application_xhtmlxml___
lea ecx, [ebp - 0x14]
call fcn.00403738
mov edi, 0x407110
lea ecx, [ebp - 0x14]
push edi
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator
push str.Accept_Language:_zh_cn
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push str.Connection:_Keep_Alive
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x14]
push ebx
push ebx
mov ecx, dword [eax - 8]
push ecx
push eax
push dword [esi]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, 0xfa000
mov dword [ebp - 0x24], ebx
push edi
mov dword [ebp - 0x1c], ebx
call sub.MFC42.DLL_operatornew
push edi
push ebx
push eax
mov dword [ebp - 0x30], eax
call sub.MSVCRT.dll_memset
add esp, 0x10
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x1c]
add eax, edi
push 0x400
push eax
push dword [esi]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x4023ae
add dword [ebp - 0x1c], eax
jmp 0x402388
push edi
lea ecx, [ebp - 0x28]
call fcn.00403738
push edi
mov byte [ebp - 4], 7
call sub.MFC42.DLL_operatordelete
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ecx
push dword [esi]
call edi
push dword [esi + 4]
call edi
push dword [esi + 8]
call edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8