Function at 0x4229d0
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d6021
push eax
mov eax, 0x10a0
mov dword fs:[0], esp
call fcn.004cf470
mov eax, dword [esp + 0x10b0]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov ebp, ecx
jne 0x422a09
xor eax, eax
jmp 0x422c7c
lea esi, [ebp + 0x20]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x422a22
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esi]
mov eax, dword [ebp + 8]
push edi
push 9
push edi
push edi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, edi
mov dword [ebp + 0xc], eax
jne 0x422a48
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x422c7c
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea ecx, [esp + 0x1c]
push edi
lea edx, [esp + 0x30]
push ecx
push edx
push 0x13
push eax
mov dword [esp + 0x10cc], edi
mov dword [esp + 0x30], 0x20
call esi
mov ebx, dword [sym.imp.MSVCRT.dll_atol]
lea ecx, [esp + 0x2c]
push ecx
call ebx
add esp, 4
cmp eax, 0x194
jne 0x422aaf
lea ecx, [esp + 0x14]
mov dword [esp + 0x10b8], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x422c7c
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x2c]
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x20]
lea eax, [esp + 0x30]
push edx
push eax
push 5
push ecx
mov dword [esp + 0x30], 0x20
call esi
test eax, eax
je 0x422c63
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.WININET.dll_InternetQueryOptionA]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0
push edx
push 0
push 0x22
push eax
call esi
test eax, eax
jne 0x422b26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x422b26
lea ecx, [esp + 0x14]
mov dword [esp + 0x10b8], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x422c7c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x10b8], 1
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ebp + 0xc]
push 0x22
push eax
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x2c]
push ecx
call ebx
add esp, 4
lea ecx, [esp + 0x10]
push 0x2f
call sub.MFC42.DLL_CString::ReverseFind
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 8]
sub ecx, eax
lea eax, [esp + 0x28]
dec ecx
push ecx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x10bc], 2
call fcn.004ceb40
lea ecx, [esp + 0x28]
mov byte [esp + 0x10b8], 1
call sub.MFC42.DLL_CString::CString
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], 0
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x24]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0xb4]
push 0xfff
push edx
push eax
call ebx
test eax, eax
je 0x422c3b
mov eax, dword [esp + 0x24]
test eax, eax
je 0x422c3b
mov edx, dword [esp + 0x18]
mov ecx, eax
lea esi, [esp + 0xb0]
mov byte [esp + eax + 0xb0], 0
lea edi, [esp + edx + 0x4c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
add edx, eax
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x24]
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0xb4]
push 0xfff
push ecx
push edx
call ebx
test eax, eax
jne 0x422be6
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
mov ecx, dword [esp + 0x10c8]
add esp, 4
mov byte [esp + 0x10b8], 0
mov dword [ecx], eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x10b8], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x10b0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10ac
ret 8