Function at 0x40a5e0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dd10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push edx
push eax
push ecx
mov byte [ebp - 4], 6
call sub.MFC42.DLL_AfxParseURL
cmp eax, edi
jne 0x40a666
push 0x427da4
call fcn.0040a850
add esp, 4
jmp 0x40a6a9
push edi
push edi
push edi
push edi
push 1
push edi
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
push edi
push edi
mov bl, 7
push edx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
cmp eax, edi
jne 0x40a707
push 0x427d94
call fcn.0040a850
add esp, 4
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00406360
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
push 0x20000000
push edi
push edi
push 1
push edi
push ecx
push edi
mov ecx, eax
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov esi, eax
cmp esi, edi
jne 0x40a72d
push 0x427d84
jmp 0x40a695
push 0xffffffffffffffff
push 0x10000000
push str.Content_Type:_application_x_www_form_urlencoded
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders
push 0xffffffffffffffff
push 0x10000000
push str.Accept:__
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
push edi
push edi
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::SendRequest
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_2
lea edx, [ebp - 0x2c]
push edi
lea eax, [ebp - 0x24]
push edx
push eax
push 0x20000013
mov ecx, esi
mov byte [ebp - 4], 8
mov dword [ebp - 0x2c], 4
call sub.MFC42.DLL_CHttpFile::QueryInfo
cmp eax, edi
mov eax, dword [ebp - 0x24]
je 0x40a7b3
cmp eax, 0xc8
jb 0x40a7b3
cmp eax, 0x12c
jae 0x40a7b3
mov eax, dword [ebp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x60]
mov edi, 1
jmp 0x40a7c1
push eax
push str.error:_d
call fcn.0040a850
add esp, 8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CInternetSession::Close
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00406360
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret