Function at 0x1301b070
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0xffffffffffffffff
push 0x130fc2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f4
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x20c], ebp
mov edi, 0xf
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebp
mov byte [esp + 0x14], 0
mov byte [esp + 0x20c], 1
lea eax, [esp + 0x214]
push eax
lea ecx, [esp + 0x5c]
push str.GET___HTTP_1.1_r_nHost:
push ecx
call fcn.1301bbd0
mov ebx, 2
mov byte [esp + 0x218], bl
push str._r_nConnection:_close_r_n_r_n
push eax
lea edx, [esp + 0x50]
push edx
call fcn.1301bca0
add esp, 0x18
mov byte [esp + 0x20c], 3
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.13004a10
mov byte [esp + 0x20c], bl
mov esi, 0x10
cmp dword [esp + 0x54], esi
jb 0x1301b11c
mov eax, dword [esp + 0x40]
push eax
call fcn.1301ff6c
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebp
mov byte [esp + 0x40], 0
mov byte [esp + 0x20c], 1
cmp dword [esp + 0x70], esi
jb 0x1301b144
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.1301ff6c
add esp, 4
lea edx, [esp + 0x74]
push edx
push 0x202
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebp
mov byte [esp + 0x64], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1301b181
push str.WSAStartup_failed._n
push 0x13153080
call fcn.13011790
push 0x130feca0
call fcn.13021022
add esp, 0xc
push 6
push 1
push ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp dword [esp + 0x22c], esi
mov edi, eax
mov eax, dword [esp + 0x218]
jae 0x1301b1a5
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x50
mov esi, eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2e], ax
mov word [esp + 0x2c], bx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0x10
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x3c], edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1301b1f9
push str.Could_not_connect
push 0x13153080
call fcn.13011790
push str.pause
call fcn.13021022
add esp, 0xc
mov esi, dword [esp + 0x28]
cmp esi, 0x10
mov ebx, dword [esp + 0x14]
mov eax, ebx
jae 0x1301b20c
lea eax, [esp + 0x14]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1301b210
sub eax, edx
cmp esi, 0x10
mov ecx, ebx
jae 0x1301b226
lea ecx, [esp + 0x14]
push ebp
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push ebp
push 0x2710
push 0x13150720
push edi
call ebx
cmp eax, ebp
jle 0x1301b288
jmp 0x1301b250
mov esi, 0x13150720
movzx eax, byte [esi]
cmp al, 0x20
jge 0x1301b264
cmp al, 0xa
je 0x1301b264
cmp al, 0xd
jne 0x1301b276
push eax
push 1
mov ecx, 0x13147a10
call fcn.13006270
add esi, 1
jmp 0x1301b255
push ebp
push 0x2710
push 0x13150720
push edi
call ebx
cmp eax, ebp
jg 0x1301b250
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov byte [esp + 0x20c], 0
mov esi, 0x10
cmp dword [esp + 0x28], esi
jb 0x1301b2b5
mov ecx, dword [esp + 0x14]
push ecx
call fcn.1301ff6c
add esp, 4
mov edi, 0xf
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebp
mov byte [esp + 0x14], 0
mov dword [esp + 0x20c], 0xffffffff
cmp dword [esp + 0x22c], esi
jb 0x1301b2eb
mov edx, dword [esp + 0x218]
push edx
call fcn.1301ff6c
add esp, 4
mov ecx, dword [esp + 0x204]
mov dword [esp + 0x22c], edi
pop edi
pop esi
mov dword [esp + 0x220], ebp
pop ebp
mov byte [esp + 0x20c], 0
pop ebx
mov dword fs:[0], ecx
add esp, 0x200
ret