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

Disassembly:
push 0x168
mov eax, 0x62dfaa
call fcn.005b842d
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x140], eax
cmp dword [ecx + 4], 0
jne 0x4b6711
xor al, al
jmp 0x4b6a40
push 1
push 0x4443000
xor ebx, ebx
push ebx
push ebx
push str.HTTP_1.1
push edx
push edi
push dword [ecx + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x14c], edi
test edi, edi
je 0x4b6a3e
mov byte [ebp - 0x11f], bl
mov byte [ebp - 0x120], bl
mov byte [ebp - 0x11e], 1
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x128], edx
mov dword [ebp - 4], 1
mov byte [ebp - 4], bl
mov eax, dword [esi + 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4b67a4
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 7
cmp dword [esi + 0x14], 8
jb 0x4b6786
mov esi, dword [esi]
or dword [ebp - 4], 0xffffffff
push 0x40000000
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov ecx, dword [ebp - 0x138]
mov edx, dword [ebp - 0x128]
push 4
pop esi
test edx, edx
je 0x4b67b9
cmp dword [ecx + 0x14], 0x10
jb 0x4b67b5
mov eax, dword [ecx]
jmp 0x4b67bb
mov eax, ecx
jmp 0x4b67bb
mov eax, ebx
push 0x2710
push edx
push eax
push ecx
mov ecx, edi
call fcn.004b82c4
add esp, 0x10
test eax, eax
jne 0x4b68b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov al, bl
mov byte [ebp - 0x11d], bl
mov byte [ebp - 0x121], bl
cmp byte [ebp - 0x11f], al
jne 0x4b683c
cmp ecx, 0x2f0d
jne 0x4b683c
mov dword [ebp - 0x144], esi
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x130]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x130], 0x100
push esi
lea eax, [ebp - 0x130]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov byte [ebp - 0x11f], 1
jmp 0x4b688c
cmp byte [ebp - 0x120], 0
jne 0x4b6894
cmp ecx, 0x2f19
jne 0x4b6894
mov dword [ebp - 0x144], esi
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x134]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x134], 0x80
push esi
lea eax, [ebp - 0x134]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov byte [ebp - 0x120], 1
mov al, byte [ebp - 0x11e]
jmp 0x4b689c
mov al, bl
mov byte [ebp - 0x11e], al
test al, al
je 0x4b68bf
mov ecx, dword [ebp - 0x138]
mov edx, dword [ebp - 0x128]
jmp 0x4b67a7
mov al, 1
mov byte [ebp - 0x11d], al
mov byte [ebp - 0x121], al
mov esi, ebx
mov dword [ebp - 0x148], esi
xor eax, eax
mov word [ebp - 0x12c], ax
mov dword [ebp - 0x13c], ebx
push ebx
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4b698d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4b698d
mov eax, dword [ebp - 0x13c]
shr eax, 1
mov dword [ebp - 4], 0xa
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005261a0
pop ecx
mov dword [ebp - 0x128], eax
push ebx
lea ecx, [ebp - 0x13c]
push ecx
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, dword [ebp - 0x128]
test eax, eax
je 0x4b695a
push edi
call fcn.005be042
pop ecx
mov esi, eax
mov dword [ebp - 0x148], esi
push edi
call fcn.00529880
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x4b6985
cmp esi, 0xc8
je 0x4b6993
mov byte [ebp - 0x11d], bl
mov dword [ebp - 4], 0xc
mov eax, dword [ebp - 0x140]
mov dword [eax + 0x10], ebx
cmp dword [eax + 0x14], 0x10
jb 0x4b69ab
mov eax, dword [eax]
mov byte [eax], bl
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14c]
push 0x100
push ebx
lea eax, [ebp - 0x11c]
push eax
call fcn.005b9760
add esp, 0xc
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x174]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x174], 0x28
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], 0xff
push ebx
push 4
lea eax, [ebp - 0x174]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x4b6a37
cmp dword [ebp - 0x15c], 0
je 0x4b6a31
push dword [ebp - 0x15c]
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x140]
call fcn.0041c2e6
jmp 0x4b69b7
mov bl, byte [ebp - 0x11d]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
call fcn.005b837a
ret 0x14