Function at 0x10049b60
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x42c
mov eax, dword [0x101b9578]
push ebp
push esi
mov esi, dword [esp + 0x438]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x430], eax
mov dword [esp + 0x10], ebp
jne 0x10049b9c
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x428]
call fcn.1010122d
add esp, 0x42c
ret
mov eax, dword [esp + 0x444]
push edi
push ebp
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x10049bd4
push ebp
push ebp
push ebp
push ebp
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x10049bec
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x428]
call fcn.1010122d
add esp, 0x42c
ret
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
xor ecx, ecx
mov dword [esp + 0x25], ecx
mov dword [esp + 0x29], ecx
mov dword [esp + 0x2d], ecx
push ebp
mov word [esp + 0x35], cx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x3b], cl
lea ecx, [esp + 0x2c]
push ecx
push 0x13
mov edi, 0x10
push eax
mov byte [esp + 0x38], 0
mov dword [esp + 0x2c], edi
call esi
test eax, eax
je 0x10049e1e
mov eax, dword [esp + 0x18]
cmp eax, edi
jae 0x10049c3c
mov byte [esp + eax + 0x24], 0
lea edx, [esp + 0x24]
push edx
call fcn.101019d5
add esp, 4
cmp eax, 0xc8
jne 0x10049e1e
xor eax, eax
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x444]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x40], eax
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
push 5
push eax
mov dword [esp + 0x30], edi
call esi
test eax, eax
je 0x10049d5a
mov eax, dword [esp + 0x1c]
cmp eax, edi
jae 0x10049c9d
mov byte [esp + eax + 0x28], 0
lea ecx, [esp + 0x28]
push ecx
call fcn.101019d5
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x20], esi
jbe 0x10049e1d
cmp esi, 0xfa000
jae 0x10049e1d
push esi
call fcn.10101e75
mov ecx, dword [esp + 0x18]
add esp, 4
lea edx, [esp + 0x10]
push edx
mov dword [ebx], eax
push 0x400
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10049d38
lea edx, [ecx + ebp]
cmp edx, esi
ja 0x10049d38
mov edi, dword [ebx]
mov eax, ecx
shr ecx, 2
add edi, ebp
lea esi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebp, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push 0x400
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov esi, dword [esp + 0x20]
jne 0x10049cf1
cmp esi, ebp
jne 0x10049d52
mov ecx, dword [esp + 0x448]
mov dword [ecx], ebp
mov dword [esp + 0x18], 1
jmp 0x10049e1d
mov edx, dword [ebx]
push edx
jmp 0x10049e0d
mov eax, dword [ebx]
push 0x400
push eax
call fcn.10103483
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push 0x400
lea edx, [esp + 0x40]
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10049e06
lea edx, [ecx + ebp]
cmp edx, 0x300000
ja 0x10049e06
mov edi, dword [ebx]
mov eax, ecx
shr ecx, 2
add edi, ebp
lea esi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov edx, dword [ebx]
add ebp, eax
lea ecx, [ebp + 0x400]
push ecx
push edx
call fcn.10103483
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [ebx], eax
lea eax, [esp + 0x10]
push eax
push 0x400
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x10049d92
test ebp, ebp
je 0x10049e06
mov eax, dword [esp + 0x448]
mov dword [eax], ebp
mov dword [esp + 0x18], 1
jmp 0x10049e1d
mov ebx, dword [ebx]
test ebx, ebx
je 0x10049e15
push ebx
call fcn.1010168d
add esp, 4
mov dword [esp + 0x18], 0
pop ebx
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov ecx, dword [esp + 0x434]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
call fcn.1010122d
add esp, 0x42c
ret