Function at 0x4d3df0
Capabilities:
Check http status code
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov esi, ecx
mov eax, dword [0x521014]
xor eax, ebp
mov dword [esp + 0x74], eax
mov ecx, dword [0x527b94]
test ecx, ecx
jne 0x4d3ef1
movzx eax, byte [esi + 0x1b]
test al, al
jns 0x4d3e21
mov eax, dword [esi + 0x14]
xor edi, edi
test eax, eax
je 0x4d3e3b
mov ecx, dword [esp + 0x74]
xor ecx, ebp
call fcn.0048b980
mov eax, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
lea edi, [esi + 0x10]
lea eax, [esp + 0x70]
mov dword [eax], 0
push eax
push 0x8000
push dword [esi + 0x5c]
push dword [esi + 0x58]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4d3f0a
xor eax, eax
lea ecx, [esp + 8]
mov dword [ecx], eax
lea edx, [esp + 4]
mov dword [edx], 4
push eax
push edx
push ecx
push 0x20000013
push dword [esi + 0x58]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4d3e97
cmp dword [esp + 8], 0xc8
jne 0x4d3f72
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4d3eb2
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
push eax
push dword [esi + 0x5c]
call dword [edx]
test al, al
je 0x4d3fd1
cmp dword [esi + 0x44], 0
je 0x4d3ec1
mov edi, dword [esp + 0x70]
jmp 0x4d3e27
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [ecx], eax
lea edx, [esp + 0xc]
mov dword [edx], 4
push eax
push edx
push ecx
push 0x20000005
push dword [esi + 0x58]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4d3eb8
mov eax, dword [esp + 0x18]
mov dword [esi + 0x44], eax
jmp 0x4d3eb8
call fcn.004d3df0
mov esi, eax
mov ecx, dword [esp + 0x74]
xor ecx, ebp
call fcn.0048b980
mov eax, esi
jmp 0x4d3e34
lea ecx, [esp + 0x18]
mov edx, str.internet_read_
call fcn.004d3cc0
cmp byte [edi + 0xb], 0
jns 0x4d3f28
push dword [edi]
call fcn.0048b376
add esp, 4
lea esi, [esp + 0x18]
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esi]
movsd qword [edi], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esp + 0xc]
push eax
push edi
call fcn.004b9e70
add esp, 8
mov ecx, esi
push edi
push 0x109
push str.ReadChunk
push 1
call fcn.004b9c70
lea ecx, [esp + 0x54]
push 0x50d6b6
push str.Download_chunk_error.
jmp 0x4d3fac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esp + 0xc]
push eax
push edi
call fcn.004b9e70
add esp, 8
lea esi, [esp + 0x18]
mov ecx, esi
push edi
push 0x112
push str.ReadChunk
push 1
call fcn.004b9c70
lea ecx, [esp + 0x54]
push 0x50d6d3
push str.HTTP_request_status_isnt_OK
call fcn.004b5d50
mov ecx, esi
call fcn.004b9cb0
cmp byte [edi + 0xb], 0
jns 0x4d3fca
push dword [esp + 0xc]
call fcn.0048b376
add esp, 4
xor edi, edi
jmp 0x4d3e27
lea ecx, [esp + 0x18]
mov edx, str.write_file_
call fcn.004d3cc0
cmp byte [edi + 0xb], 0
jns 0x4d3fef
push dword [edi]
call fcn.0048b376
add esp, 4
lea esi, [esp + 0x18]
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esi]
movsd qword [edi], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esp + 0xc]
push eax
push edi
call fcn.004b9e70
add esp, 8
mov ecx, esi
push edi
push 0x119
push str.ReadChunk
push 1
call fcn.004b9c70
lea ecx, [esp + 0x54]
push 0x50d6f1
push str.Write_file_error.
jmp 0x4d3fac