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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4964e0
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4d406c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x22c], edi
mov esi, dword [ebp + 8]
push 0x200
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0045f220
add esp, 0xc
mov dword [ebp - 0x214], 0x200
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x13
push edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
call edi
test eax, eax
je 0x421275
lea eax, [ebp - 0x210]
push eax
call fcn.00465a50
add esp, 4
cmp eax, 0xc8
jne 0x421275
push 0x200
lea eax, [ebp - 0x210]
mov dword [ebp - 0x228], 0
push 0
push eax
call fcn.0045f220
add esp, 0xc
mov dword [ebp - 0x214], 0x200
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 5
push dword [ebp - 0x22c]
call edi
test eax, eax
je 0x421180
lea eax, [ebp - 0x210]
push eax
call fcn.00465a50
add esp, 4
mov dword [ebp - 0x228], eax
mov edi, 0x2800
push edi
call fcn.00465a73
add esp, 4
mov dword [ebx], eax
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x4211a6
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x421275
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x4211d4
mov eax, dword [esi]
lea edx, [ebp - 0x218]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x21c], eax
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x21c]
push edx
call dword [eax + 8]
mov edx, dword [esi]
lea eax, [edx + 0x400]
cmp eax, edi
jb 0x4211f6
lea edi, [edi*2 + 0x400]
push edi
push dword [ebx]
call fcn.00465a7e
mov dword [ebx], eax
add esp, 8
mov edx, dword [esi]
mov ecx, dword [ebp + 0x5c]
mov eax, edi
sub eax, edx
mov dword [ebp - 0x224], 0
cmp eax, ecx
cmovbe ecx, eax
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebx]
push ecx
add eax, edx
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x42123a
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x421240
add dword [esi], eax
jmp 0x421190
mov dword [esi], 0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x421271
mov eax, dword [esi]
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x218], eax
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x218]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x30]
mov bl, 1
jmp 0x42127a
mov ecx, dword [ebp + 0x30]
xor bl, bl
mov byte [ebp - 4], 8
test ecx, ecx
je 0x42129a
mov edx, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp + 0x30], 0
mov dword [ebp - 4], 9
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x4212b9
mov esi, dword [ecx]
lea eax, [ebp + 0x34]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045cf38
mov esp, ebp
pop ebp
ret