Function at 0x180051a00
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 - 0x1190]
mov eax, 0x1290
call fcn.18006aed0
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x12d0], rbx
mov rax, qword [0x1800f07a0]
xor rax, rsp
mov qword [rbp + 0x1180], rax
mov rdi, rdx
mov r15, rcx
xor r14b, r14b
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 [0x1800aff20]
mov word [rbp + 0xf0], ax
movzx eax, byte [0x1800aff22]
mov byte [rbp + 0xf2], al
lea rcx, [rbp + 0xe0]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
or rbx, 0xffffffffffffffff
lea esi, [rbx + 3]
test rax, rax
jne 0x180051ac6
lea rax, [rbp + 0xe0]
mov rdx, rbx
inc rdx
cmp byte [rax + rdx], 0
jne 0x180051aa4
mov r8d, esi
lea rcx, [rbp + 0xe0]
call qword [sym.imp.WSOCK32.dll_gethostbyaddr]
test rax, rax
je 0x180051c8d
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.18006e9b0
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, esi
call qword [sym.imp.WSOCK32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180051c8d
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jne 0x180051c8d
lea r8d, [rax + 0xa]
lea rdx, [rbp + 0x100]
mov rcx, r15
call fcn.180072da8
mov rax, qword [0x1800f0788]
mov qword [rsp + 0x20], rax
lea rdx, str.GET__
lea rcx, [rsp + 0x20]
call fcn.180068560
lea rdx, [rbp + 0x100]
lea rcx, [rsp + 0x20]
call fcn.180068760
lea rdx, str._HTTP_1.1_r_n
lea rcx, [rsp + 0x20]
call fcn.180068760
lea rdx, str.Host:_graph.facebook.com_r_n
lea rcx, [rsp + 0x20]
call fcn.180068760
lea rdx, str.Connection:_close_r_n_r_n
lea rcx, [rsp + 0x20]
call fcn.180068760
mov rdx, qword [rsp + 0x20]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x180051b95
mov r8, rbx
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_send]
test eax, eax
je 0x180051c79
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x180]
call fcn.18006eed0
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x180]
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_recv]
movsxd rcx, eax
test eax, eax
je 0x180051c79
cmp rcx, 0x1000
jae 0x180051c73
mov byte [rbp + rcx + 0x180], 0
lea rdx, str._name_:
lea rcx, [rbp + 0x180]
call fcn.18005f7a0
mov rbx, rax
test rax, rax
je 0x180051c79
add rbx, 7
movzx eax, byte [rbx]
test al, al
je 0x180051c36
cmp al, 0x22
je 0x180051c3b
inc rbx
movzx eax, byte [rbx]
test al, al
jne 0x180051c28
cmp byte [rbx], 0x22
jne 0x180051c79
inc rbx
mov edx, 0x22
mov rcx, rbx
call fcn.18006f1a8
test rax, rax
je 0x180051c79
mov byte [rax], 0
sub rdi, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdi + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x180051c60
mov r14b, 1
jmp 0x180051c79
call fcn.18006b0dc
int3
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_closesocket]
nop
lea rcx, [rsp + 0x20]
call fcn.180068430
call qword [sym.imp.WSOCK32.dll_WSACleanup]
movzx eax, r14b
mov rcx, qword [rbp + 0x1180]
xor rcx, rsp
call fcn.18006ab60
mov rbx, qword [rsp + 0x12d0]
add rsp, 0x1290
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret