Function at 0x180050850
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1110]
mov eax, 0x1210
call fcn.180068ed0
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1250], rbx
mov rax, qword [0x1800ec7a0]
xor rax, rsp
mov qword [rbp + 0x1100], rax
mov r15, rdx
mov r14, rcx
xor sil, sil
mov ecx, 0x101
lea rdx, [rsp + 0x40]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
movups xmm0, xmmword [str.graph.facebook.com]
movups xmmword [rbp + 0xe0], xmm0
movzx eax, word [0x1800acbc8]
mov word [rbp + 0xf0], ax
movzx eax, byte [0x1800acbca]
mov byte [rbp + 0xf2], al
lea rcx, [rbp + 0xe0]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
or rbx, 0xffffffffffffffff
lea edi, [rbx + 3]
test rax, rax
jne 0x180050916
lea rax, [rbp + 0xe0]
mov rdx, rbx
inc rdx
cmp byte [rax + rdx], 0
jne 0x1800508f4
mov r8d, edi
lea rcx, [rbp + 0xe0]
call qword [sym.imp.WSOCK32.dll_gethostbyaddr]
test rax, rax
je 0x180050ab4
mov dword [rsp + 0x30], 0x50000002
movsx r8, word [rax + 0x12]
mov rdx, qword [rax + 0x18]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x34]
call fcn.18006c9b0
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, edi
call qword [sym.imp.WSOCK32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180050ab4
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jne 0x180050ab4
mov rax, qword [0x1800ec760]
mov qword [rsp + 0x20], rax
lea rdx, str.GET__
lea rcx, [rsp + 0x20]
call fcn.180066690
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.1800667e0
lea rdx, str._HTTP_1.1_r_n
lea rcx, [rsp + 0x20]
call fcn.1800667e0
lea rdx, str.Host:_graph.facebook.com_r_n
lea rcx, [rsp + 0x20]
call fcn.1800667e0
lea rdx, str.Connection:_close_r_n_r_n
lea rcx, [rsp + 0x20]
call fcn.1800667e0
mov rdx, qword [rsp + 0x20]
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1800509d0
mov r8, rbx
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_send]
test eax, eax
je 0x180050aa0
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x100]
call fcn.18006ced0
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x100]
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_recv]
movsxd rcx, eax
test eax, eax
je 0x180050aa0
cmp rcx, 0x1000
jae 0x180050a9a
mov byte [rbp + rcx + 0x100], 0
lea rdx, str._id_:
lea rcx, [rbp + 0x100]
call fcn.18005d8d0
mov rbx, rax
test rax, rax
je 0x180050aa0
add rbx, 5
movzx eax, byte [rbx]
test al, al
je 0x180050a6e
nop dword [rax + rax]
cmp al, 0x22
je 0x180050a73
inc rbx
movzx eax, byte [rbx]
test al, al
jne 0x180050a60
cmp byte [rbx], 0x22
jne 0x180050aa0
mov edx, 0x22
lea rcx, [rbx + 1]
call fcn.18006d08c
test rax, rax
je 0x180050aa0
mov byte [rax], 0
lea rcx, [rbx + 1]
call fcn.1800706b8
mov qword [r15], rax
mov sil, 1
jmp 0x180050aa0
call fcn.1800690dc
int3
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_closesocket]
nop
lea rcx, [rsp + 0x20]
call fcn.180066560
call qword [sym.imp.WSOCK32.dll_WSACleanup]
movzx eax, sil
mov rcx, qword [rbp + 0x1100]
xor rcx, rsp
call fcn.180068b60
mov rbx, qword [rsp + 0x1250]
add rsp, 0x1210
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret