Function at 0x407be0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409bd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1070
call fcn.00408e10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
lea ecx, [ebp - 0x80]
push esi
push esi
push esi
push esi
push 1
push 0x40d310
mov dword [ebp - 4], 1
mov dword [ebp - 0x4c], esi
call fcn.00408a4c
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CException::CException
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_2
mov edi, 0x40ae38
or ebx, 0xffffffff
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
call fcn.00408d52
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x38]
push eax
push 0x8040
push ecx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CFile::Open
cmp eax, 1
push esi
push esi
je 0x407c9e
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CException::ReportError
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 7
jmp 0x407d1e
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
lea ecx, [ebp - 0x80]
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x5c], edi
jne 0x407cd4
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x80]
call sub.MFC42.DLL_CInternetSession::Close
mov dword [ebp - 0x38], 0x40ae38
mov byte [ebp - 4], 8
jmp 0x407d1e
push 0x4000000
push esi
push esi
push esi
push esi
push 0x40d958
push esi
mov ecx, edi
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov esi, eax
test esi, esi
mov dword [ebp + 0xc], esi
jne 0x407d71
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x80]
call sub.MFC42.DLL_CInternetSession::Close
mov dword [ebp - 0x38], 0x40ae38
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x38], 0x40ae24
mov byte [ebp - 4], 2
call fcn.00408d58
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CInternetSession::CInternetSession
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_2
push 0x40d950
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_1
push 0x40d93c
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_1
push 0x40d914
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString_1
push 0x40d8fc
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString_1
push 0x40d8f0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString_1
push 0x40d8dc
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x48]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x40d884
push ecx
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
push edx
push eax
lea ecx, [ebp - 0x20]
push 0x40d848
push ecx
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
push edx
push eax
lea ecx, [ebp - 0x14]
push 0x40d7dc
push ecx
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push eax
push eax
push 0x40d790
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [ebp - 0x24]
mov ecx, esi
push 0x10000000
push eax
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov edx, dword [ecx - 8]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x6c]
mov ebx, dword [edx - 8]
call sub.MFC42.DLL_CFile::GetLength
mov edx, eax
mov edi, 0x40d198
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x40]
add ebx, edx
not ecx
dec ecx
push 1
add ecx, ebx
mov ebx, dword [ebp - 0x58]
add ecx, eax
push 8
add ecx, ebx
mov byte [ebp - 4], 0x14
push ecx
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::SendRequestEx
mov eax, dword [ebp - 0x20]
mov edx, dword [esi]
mov ebx, 0x13
mov ecx, dword [eax - 8]
mov dword [ebp - 4], ebx
push ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 0x17
call dword [edx + 0x40]
mov eax, dword [ebp - 0x14]
mov edx, dword [esi]
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x40]
xor edi, edi
lea eax, [ebp - 0x1080]
push 0x1000
push eax
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::Read
test eax, eax
mov dword [ebp - 0x4c], eax
jbe 0x407f32
mov edx, dword [esi]
push eax
lea eax, [ebp - 0x1080]
mov ecx, esi
push eax
call dword [edx + 0x40]
add edi, dword [ebp - 0x4c]
jmp 0x407f03
push 0x40d198
lea ecx, [ebp - 0x14]
call fcn.00408d52
mov eax, dword [ebp - 0x14]
mov edx, dword [esi]
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x40]
mov eax, dword [ebp - 0x1c]
mov edx, dword [esi]
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x40]
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
cmp dword [ebp - 0x4c], 0xc8
jne 0x407fd8
push 0x40da10
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString_1
mov bl, 0x1a
push 0x40da10
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esi]
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1b
call dword [edx + 0x60]
test eax, eax
je 0x407fc1
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esi]
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call dword [edx + 0x60]
test eax, eax
jne 0x407fa6
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CFile::Close
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov edi, dword [ebp - 0x5c]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x14]
test esi, esi
je 0x407ffe
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
test edi, edi
je 0x40800b
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x80]
call sub.MFC42.DLL_CInternetSession::Close
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x38], 0x40ae38
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x38], 0x40ae24
mov byte [ebp - 4], 2
call fcn.00408d58
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CInternetSession::CInternetSession
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
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 0xc