Function at 0x411270
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4766de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ebx
xor esi, esi
push esi
push esi
push esi
push esi
push 1
push str.HTTP_Patch_program
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 1
call sub.MFC71.DLL_CInternetSession::CInternetSession
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov ecx, 0x13
mov esi, str.Accept:___r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0__r_n
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov cx, word [ebx + 0x110]
push 0
push 0
movsw word es:[edi], word [esi]
push ecx
push 0x4000000
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call sub.MFC71.DLL_CInternetSession::GetHttpConnection
mov edi, eax
lea edx, [ebp + 8]
push edx
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x14], edi
call fcn.00402d20
add esp, 0xc
push 0x47fb30
push 0x4818a4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Replace]
mov edx, dword [ebp - 0x18]
push 0x4000000
push 0
push 0
push 1
push 0
push edx
push 1
mov ecx, edi
call sub.MFC71.DLL_CHttpConnection::OpenRequest
mov esi, eax
push 0xffffffffffffffff
push 0x10000000
lea eax, [ebp - 0x9c]
push eax
mov ecx, esi
mov dword [ebp - 0x1c], esi
call sub.MFC71.DLL_CHttpFile::AddRequestHeaders
push 0
push 0
push 0
push 0
mov ecx, esi
call sub.MFC71.DLL_CHttpFile::SendRequest
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call sub.MFC71.DLL_CHttpFile::QueryInfoStatusCode
mov eax, dword [ebp - 0x2c]
cmp eax, 0xc8
je 0x411409
push eax
lea edx, [ebp - 0x24]
push edx
mov ecx, ebx
call fcn.00410c10
mov eax, dword [eax]
push eax
push 0x100
add ebx, 0x10
push ebx
call fcn.0046210d
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [edi]
xor esi, esi
mov ecx, edi
mov dword [ebp - 0x1c], esi
call dword [eax + 0x14]
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00462bac
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x20]
call dword [0x47f138]
push 0
lea eax, [ebp - 0x20]
push eax
push 0x16
mov ecx, esi
mov byte [ebp - 4], 5
call sub.MFC71.DLL_CHttpFile::QueryInfo
mov eax, dword [ebx + 0x118]
test eax, eax
je 0x411452
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ecx, ebx
call fcn.004110f0
mov ecx, dword [ebx + 0x118]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov edx, dword [edi]
xor esi, esi
mov ecx, edi
mov dword [ebp - 0x1c], esi
call dword [edx + 0x14]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], esi
call sub.MFC71.DLL_CInternetSession::Close
push 0x47fb2c
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Trim]
push 0x47fb30
push 0x4807d8
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Replace]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push ebx
push edx
call fcn.00402d20
add esp, 0xc
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push ecx
lea edx, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x4c], esp
push edx
mov byte [ebp - 4], 7
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00410a20
lea ecx, [ebp - 0x28]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00462bac
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8