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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x405646
push eax
mov eax, 0x4070
mov dword fs:[0], esp
call fcn.00404e90
push ebx
push ebp
push esi
push edi
mov edi, ecx
push str.Accept:___r_n_r_n
lea ecx, [esp + 0x14]
mov dword [esp + 0x408c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x4088], 2
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x24], ebx
push ebx
mov ecx, dword [eax - 8]
push 0x84000100
push ecx
mov ecx, dword [edi + 4]
push eax
mov eax, dword [esp + 0x40a0]
push eax
push ecx
mov byte [esp + 0x40a0], 3
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x40462a
lea ecx, [esp + 0x14]
mov byte [esp + 0x4088], 2
call fcn.00404c66
lea ecx, [esp + 0x10]
mov byte [esp + 0x4088], 1
call fcn.00404a98
lea ecx, [esp + 0x4090]
mov byte [esp + 0x4088], bl
call fcn.00404a98
lea ecx, [esp + 0x4094]
mov dword [esp + 0x4088], 0xffffffff
call fcn.00404a98
mov eax, 1
jmp 0x404881
lea edx, [esp + 0x28]
push ebx
lea eax, [esp + 0x34]
push edx
push eax
push 0x13
push esi
mov dword [esp + 0x3c], 0x50
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4046a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x4088], 2
call fcn.00404c66
lea ecx, [esp + 0x10]
mov byte [esp + 0x4088], 1
call fcn.00404a98
lea ecx, [esp + 0x4090]
mov byte [esp + 0x4088], bl
call fcn.00404a98
lea ecx, [esp + 0x4094]
mov dword [esp + 0x4088], 0xffffffff
call fcn.00404a98
mov eax, 5
jmp 0x404881
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 0xc8
je 0x40470b
lea ecx, [esp + 0x14]
mov byte [esp + 0x4088], 2
call fcn.00404c66
lea ecx, [esp + 0x10]
mov byte [esp + 0x4088], 1
call fcn.00404a98
lea ecx, [esp + 0x4090]
mov byte [esp + 0x4088], bl
call fcn.00404a98
lea ecx, [esp + 0x4094]
mov dword [esp + 0x4088], 0xffffffff
call fcn.00404a98
mov eax, 6
jmp 0x404881
push ecx
lea edx, [esp + 0x4098]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
call fcn.004048c0
mov eax, dword [esp + 0x4094]
push ebx
push 0x9021
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Open
mov eax, dword [esp + 0x18]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x40479a
lea ecx, [esp + 0x14]
mov byte [esp + 0x4088], 2
call fcn.00404c66
lea ecx, [esp + 0x10]
mov byte [esp + 0x4088], 1
call fcn.00404a98
lea ecx, [esp + 0x4090]
mov byte [esp + 0x4088], bl
call fcn.00404a98
lea ecx, [esp + 0x4094]
mov dword [esp + 0x4088], ebp
call fcn.00404a98
mov eax, 2
jmp 0x404881
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x80]
push ecx
push 0x4000
push edx
push esi
call edi
test eax, eax
lea ecx, [esp + 0x14]
je 0x4047d5
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x404829
push eax
lea eax, [esp + 0x84]
push eax
call sub.MFC42.DLL_CFile::Write
jmp 0x4047a0
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x14]
mov byte [esp + 0x4088], 2
call fcn.00404c66
lea ecx, [esp + 0x10]
mov byte [esp + 0x4088], 1
call fcn.00404a98
lea ecx, [esp + 0x4090]
mov byte [esp + 0x4088], bl
call fcn.00404a98
lea ecx, [esp + 0x4094]
mov dword [esp + 0x4088], ebp
call fcn.00404a98
mov eax, 3
jmp 0x404881
call sub.MFC42.DLL_CFile::Flush
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x14]
mov byte [esp + 0x4088], 2
call fcn.00404c66
lea ecx, [esp + 0x10]
mov byte [esp + 0x4088], 1
call fcn.00404a98
lea ecx, [esp + 0x4090]
mov byte [esp + 0x4088], bl
call fcn.00404a98
lea ecx, [esp + 0x4094]
mov dword [esp + 0x4088], ebp
call fcn.00404a98
xor eax, eax
mov ecx, dword [esp + 0x4080]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x407c
ret 8