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

Disassembly:
push 0xffffffffffffffff
push 0x4bc2c1
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x4e5a68]
xor eax, esp
mov dword [esp + 0x880], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e5a68]
xor eax, esp
push eax
lea eax, [esp + 0x898]
mov dword fs:[0], eax
mov edi, dword [esp + 0x8a8]
mov ebp, dword [esp + 0x8ac]
xor ebx, ebx
mov eax, 0x4bed68
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x417db3
sub eax, edx
push eax
push 0x4bed68
lea ecx, [esp + 0x28]
call fcn.00405200
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
mov dword [esp + 0x8ac], ebx
call fcn.00405120
mov esi, 0x10
cmp dword [esp + 0x38], esi
mov dword [esp + 0x8a0], 0xffffffff
jb 0x417e06
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00431ad1
add esp, 4
cmp dword [0x4e5594], esi
mov eax, dword [0x4e5580]
jae 0x417e18
mov eax, 0x4e5580
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push 0x84000000
push ebx
push ebx
mov esi, eax
push edi
push esi
mov dword [esp + 0x30], esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
cmp edi, ebx
je 0x417fba
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x7c]
push eax
push 0x13
push edi
mov dword [esp + 0x30], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x417fb3
lea ecx, [esp + 0x74]
push ecx
call fcn.0043451c
add esp, 4
cmp eax, 0xc8
jne 0x417fb3
mov dword [esp + 0x14], ebx
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
push 0x800
lea edx, [esp + 0x98]
push ebx
push edx
mov dword [esp + 0x8ac], 1
call fcn.00432df0
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x7ff
lea ecx, [esp + 0x9c]
push ecx
push edi
call esi
cmp eax, ebx
je 0x417f3a
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x417f3a
mov byte [esp + eax + 0x94], bl
lea eax, [esp + 0x94]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x417ef0
sub eax, edx
push eax
lea edx, [esp + 0x98]
push edx
mov ecx, ebp
call fcn.00417710
push 0x800
lea eax, [esp + 0x98]
push ebx
push eax
call fcn.00432df0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x7ff
lea edx, [esp + 0x9c]
push edx
push edi
call esi
cmp eax, ebx
jne 0x417ed3
mov esi, 0x10
cmp dword [ebp + 0x18], esi
jb 0x417f49
mov ecx, dword [ebp + 4]
jmp 0x417f4c
lea ecx, [ebp + 4]
mov al, byte [ecx]
cmp al, bl
je 0x417f68
cmp al, 0x20
je 0x417f5e
cmp al, 0xd
je 0x417f5e
cmp al, 0xa
jne 0x417f68
mov al, byte [ecx + 1]
add ecx, 1
cmp al, bl
jne 0x417f52
push ecx
lea ecx, [esp + 0x40]
call fcn.00405e70
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
mov byte [esp + 0x8ac], 2
call fcn.00405120
cmp dword [esp + 0x54], esi
jb 0x417f9c
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00431ad1
add esp, 4
cmp dword [esp + 0x70], esi
jb 0x417faf
mov edx, dword [esp + 0x5c]
push edx
call fcn.00431ad1
add esp, 4
mov esi, dword [esp + 0x18]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, ebx
je 0x417fc5
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x898]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x880]
xor ecx, esp
call fcn.0043236c
add esp, 0x890
ret