Function at 0x180052740
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.18006aed0
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1250], rbx
mov rax, qword [0x1800f07a0]
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 [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 edi, [rbx + 3]
test rax, rax
jne 0x180052806
lea rax, [rbp + 0xe0]
mov rdx, rbx
inc rdx
cmp byte [rax + rdx], 0
jne 0x1800527e4
mov r8d, edi
lea rcx, [rbp + 0xe0]
call qword [sym.imp.WSOCK32.dll_gethostbyaddr]
test rax, rax
je 0x1800529a4
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, edi
call qword [sym.imp.WSOCK32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800529a4
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jne 0x1800529a4
mov rax, qword [0x1800f0788]
mov qword [rsp + 0x20], rax
lea rdx, str.GET__
lea rcx, [rsp + 0x20]
call fcn.180068560
mov rdx, r14
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]
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1800528c0
mov r8, rbx
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_send]
test eax, eax
je 0x180052990
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x100]
call fcn.18006eed0
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 0x180052990
cmp rcx, 0x1000
jae 0x18005298a
mov byte [rbp + rcx + 0x100], 0
lea rdx, str._id_:
lea rcx, [rbp + 0x100]
call fcn.18005f7a0
mov rbx, rax
test rax, rax
je 0x180052990
add rbx, 5
movzx eax, byte [rbx]
test al, al
je 0x18005295e
nop dword [rax + rax]
cmp al, 0x22
je 0x180052963
inc rbx
movzx eax, byte [rbx]
test al, al
jne 0x180052950
cmp byte [rbx], 0x22
jne 0x180052990
mov edx, 0x22
lea rcx, [rbx + 1]
call fcn.18006f1a8
test rax, rax
je 0x180052990
mov byte [rax], 0
lea rcx, [rbx + 1]
call fcn.1800726b8
mov qword [r15], rax
mov sil, 1
jmp 0x180052990
call fcn.18006b0dc
int3
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_closesocket]
nop
lea rcx, [rsp + 0x20]
call fcn.180068430
call qword [sym.imp.WSOCK32.dll_WSACleanup]
movzx eax, sil
mov rcx, qword [rbp + 0x1100]
xor rcx, rsp
call fcn.18006ab60
mov rbx, qword [rsp + 0x1250]
add rsp, 0x1210
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret