Function at 0x40b4c0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee037
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x450
push ebx
push esi
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_4
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CInternetSession::CInternetSession
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push edx
push eax
push ecx
mov byte [ebp - 4], 7
call sub.MFC42.DLL_AfxParseURL
test eax, eax
jne 0x40b572
mov esi, dword [ebp + 8]
push 0x5307a8
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x24], 1
jmp 0x40ba41
push 0
lea edx, [ebp - 0x18]
push 4
mov esi, 0x7530
push edx
push 2
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], esi
call sub.MFC42.DLL_CInternetSession::SetOption
push 0
lea eax, [ebp - 0x18]
push 4
push eax
push 6
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], esi
call sub.MFC42.DLL_CInternetSession::SetOption
push 0
lea ecx, [ebp - 0x18]
push 4
push ecx
push 5
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], esi
call sub.MFC42.DLL_CInternetSession::SetOption
push 0
lea edx, [ebp - 0x18]
push 4
push edx
push 8
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], esi
call sub.MFC42.DLL_CInternetSession::SetOption
push 0
lea eax, [ebp - 0x18]
push 4
mov edi, 7
push eax
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], esi
call sub.MFC42.DLL_CInternetSession::SetOption
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x1c]
push 0
push 0
push ecx
push edx
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov edx, dword [ebp + 0x1c]
push 0x84000000
push 0
xor ecx, ecx
mov ebx, eax
mov eax, dword [ebp - 0x20]
push 0
push 1
test edx, edx
push 0
push eax
sete cl
push ecx
mov ecx, ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov esi, eax
push 0xffffffffffffffff
push 0x10000000
push str.Accept:__
mov ecx, esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders_1
mov edx, dword [ebp + 0x10]
push 0x5307a8
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40b684
lea eax, [ebp + 0x10]
lea ecx, [ebp + 0x1c]
push eax
push str.Referer:
push ecx
call sub.MFC42.DLL_operator_3
push 0x10000000
push eax
mov ecx, esi
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x40b69e
push 0xffffffffffffffff
push 0x10000000
push str.x_flash_version:_10_3_181_14
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders_1
push 0xffffffffffffffff
push 0x10000000
push str.Accept_Language:_zh_cn
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders_1
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x40b6cb
push 0xffffffffffffffff
push 0x10000000
push str.Content_Type:_application_x_www_form_urlencoded
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders_1
push 0xffffffffffffffff
push 0x10000000
push str.Accept_Encoding:_gzip_deflate
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders_1
push 0xffffffffffffffff
push 0x10000000
push str.User_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_2.0.50727_
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders_1
lea edx, [ebp - 0x1c]
lea eax, [ebp + 0x1c]
push edx
push str.Host:
push eax
call sub.MFC42.DLL_operator_3
push 0x10000000
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x40b732
mov ecx, dword [ebp + 0x14]
push eax
push ecx
jmp 0x40b736
push 0
push 0
push 0
push 0
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::SendRequest
mov dword [ebp - 4], edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x45b]
mov byte [ebp - 0x45c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x38]
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x3c], 0x194
mov dword [ebp - 0x28], 0
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
lea ecx, [ebp - 0x30]
push 0
push ecx
push 0x1d
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::QueryInfo
lea edx, [ebp - 0x34]
push 0
push edx
push 1
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::QueryInfo
lea eax, [ebp - 0x38]
push 0
push eax
push 5
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::QueryInfo
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
push ecx
push 0x5231b8
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [ebp - 0x30]
push str.gzip
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40b8db
mov ecx, dword [ebp - 0x28]
push ecx
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [ebp - 0x28]
add esp, 4
xor edi, edi
cmp eax, 0x3ff
mov dword [ebp + 0x24], ebx
jle 0x40b830
mov eax, 0x3ff
mov byte [ebp - 4], 0x11
mov edx, dword [esi]
push eax
lea eax, [edi + ebx]
mov ecx, esi
push eax
call dword [edx + 0x3c]
test eax, eax
je 0x40b875
add edi, eax
mov eax, dword [ebp - 0x28]
sub eax, edi
cmp eax, 0x3ff
jle 0x40b859
mov eax, 0x3ff
jmp 0x40b834
test eax, eax
je 0x40b875
jmp 0x40b834
push 0x2ee000
mov dword [ebp - 4], 0x10
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp - 0x28]
lea ecx, [ebp + 0x1c]
mov esi, eax
push ecx
push esi
push edx
push ebx
mov dword [ebp + 0x1c], 0x2ee000
call fcn.0040a6e0
add esp, 0x14
test eax, eax
jne 0x40b8ba
mov eax, dword [ebp + 0x1c]
cmp eax, 0x2ee000
jb 0x40b8b3
dec eax
mov dword [ebp + 0x1c], eax
mov byte [eax + esi], 0
push esi
jmp 0x40b8bf
push 0x5307a8
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_3
push esi
call sub.MFC42.DLL_operatordelete
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 8
jmp 0x40b966
mov byte [ebp - 4], 0x13
mov eax, dword [esi]
lea ecx, [ebp - 0x45c]
push 0x3ff
push ecx
mov ecx, esi
call dword [eax + 0x3c]
test eax, eax
je 0x40b92f
lea edx, [ebp - 0x45c]
lea ecx, [ebp - 0x14]
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x45c]
rep stosd dword es:[edi], eax
jmp 0x40b8df
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 4], 0x10
call dword [eax + 0x54]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x14]
test esi, esi
je 0x40b951
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
test ebx, ebx
je 0x40b95e
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 4]
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CInternetSession::Close
push str.charsetutf_8
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x40b9eb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 8]
lea ecx, [eax*4 + 4]
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp - 0x14]
mov esi, eax
mov edi, esi
add esp, 4
mov eax, dword [edx - 8]
lea ecx, [eax*4 + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov eax, dword [eax - 8]
push eax
push esi
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
push esi
lea ecx, [ebp - 0x14]
call fcn.004e982a
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x3c]
cmp eax, 0xc8
je 0x40ba07
push eax
lea ecx, [ebp - 0x14]
push 0x524278
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x38]
or al, 1
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x24], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.004e97c4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret