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

Disassembly:
push 0x168
mov eax, 0x671d9b
call fcn.005beadd
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 0x4bcebf
xor al, al
jmp 0x4bd1ee
push 1
push 0x4443000
xor ebx, ebx
push ebx
push ebx
push 0x85bd04
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 0x4bd1ec
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 0x4bcf52
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 7
cmp dword [esi + 0x14], 8
jb 0x4bcf34
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 0x4bcf67
cmp dword [ecx + 0x14], 0x10
jb 0x4bcf63
mov eax, dword [ecx]
jmp 0x4bcf69
mov eax, ecx
jmp 0x4bcf69
mov eax, ebx
push 0x2710
push edx
push eax
push ecx
mov ecx, edi
call fcn.004bea73
add esp, 0x10
test eax, eax
jne 0x4bd05f
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 0x4bcfea
cmp ecx, 0x2f0d
jne 0x4bcfea
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 0x4bd03a
cmp byte [ebp - 0x120], 0
jne 0x4bd042
cmp ecx, 0x2f19
jne 0x4bd042
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 0x4bd04a
mov al, bl
mov byte [ebp - 0x11e], al
test al, al
je 0x4bd06d
mov ecx, dword [ebp - 0x138]
mov edx, dword [ebp - 0x128]
jmp 0x4bcf55
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 0x4bd13b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4bd13b
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.0052c340
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 0x4bd108
push edi
call fcn.005e6393
pop ecx
mov esi, eax
mov dword [ebp - 0x148], esi
push edi
call fcn.0052f7e0
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x4bd133
cmp esi, 0xc8
je 0x4bd141
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 0x4bd159
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.005e1980
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 0x4bd1e5
cmp dword [ebp - 0x15c], 0
je 0x4bd1df
push dword [ebp - 0x15c]
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x140]
call fcn.0041cc6b
jmp 0x4bd165
mov bl, byte [ebp - 0x11d]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
call fcn.005bea2a
ret 0x14