Function at 0x185c6576
Capabilities:
Connect to http server
Create http request
Initialize winsock library
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0x1d8
mov eax, 0x186b89f3
call fcn.18615cb5
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 0x10]
push 7
pop edx
mov byte [ebp - 0x1d1], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edx
mov word [ebp - 0x40], cx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edx
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.185c6b0c
add esp, 0xc
lea eax, [ebp - 0x1d0]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x185c677a
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x1e4], ebx
test ebx, ebx
je 0x185c677a
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push ecx
push 0x50
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, eax
test ecx, ecx
je 0x185c6773
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor edx, edx
push edx
push 0x4000100
push edx
push edx
push edx
push eax
push 0x1885f2a0
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
je 0x185c6773
xor eax, eax
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x185c675f
and dword [ebp - 0x1d8], 0
mov byte [ebp - 0x1d1], 1
test edi, edi
je 0x185c675f
and dword [edi + 0x10], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x185c6688
mov eax, dword [edi]
xor ecx, ecx
push ecx
mov word [eax], cx
lea eax, [ebp - 0x1d8]
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x185c675f
mov eax, dword [ebp - 0x1d8]
test eax, eax
je 0x185c6759
inc eax
push eax
call fcn.185ab940
pop ecx
mov ebx, eax
lea eax, [ebp - 0x1dc]
push eax
push dword [ebp - 0x1d8]
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x185c6728
mov eax, dword [ebp - 0x1dc]
mov byte [eax + ebx], 0
test ebx, ebx
je 0x185c6702
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x185c66e9
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x1e0], eax
cmp eax, 0x3fffffff
jle 0x185c6706
xor eax, eax
jmp 0x185c671e
add eax, eax
call fcn.18616300
mov eax, esp
push 3
push dword [ebp - 0x1e0]
push ebx
push eax
call fcn.185beff0
push eax
mov ecx, edi
call fcn.185b9fa8
jmp 0x185c672f
and dword [ebp - 0x1dc], 0
push ebx
call fcn.18615a4a
cmp dword [ebp - 0x1dc], 0
pop ecx
je 0x185c6759
push 0
push 0
lea eax, [ebp - 0x1d8]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x185c66a5
mov ebx, dword [ebp - 0x1e4]
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call sub.WS2_32.dll_WSACleanup
lea ecx, [ebp - 0x28]
call fcn.185ac1f0
lea ecx, [ebp - 0x40]
call fcn.185ac1f0
mov al, byte [ebp - 0x1d1]
lea esp, [ebp - 0x1f4]
call fcn.18615c5f
ret