Function at 0x10049dc0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp 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 ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100953ab
mov eax, dword fs:[0]
push eax
mov eax, 0x11cc
call fcn.10060410
mov eax, dword [0x100c1490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor bl, bl
mov esi, dword [ebp + 8]
mov dword [ebp - 0x11d8], eax
lea eax, [ebp - 0x11d0]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov ax, word [0x1009b7d8]
movups xmm0, xmmword [str.graph.facebook.com]
mov word [ebp - 0x20], ax
mov al, byte [0x1009b7da]
mov byte [ebp - 0x1e], al
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x10049e65
lea ecx, [ebp - 0x30]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049e45
push 2
sub ecx, edx
lea eax, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyaddr]
mov ecx, eax
test ecx, ecx
je 0x10049ff5
mov dword [ebp - 0x1040], 0x50000002
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x103c]
push eax
call fcn.10063b20
add esp, 0xc
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10049ff5
push 0x10
lea eax, [ebp - 0x1040]
push eax
push edi
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jne 0x10049ff5
mov eax, dword [0x100c1470]
mov dword [ebp - 0x11d4], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x11d4]
push str.GET__
call fcn.1005de40
push esi
lea ecx, [ebp - 0x11d4]
call fcn.1005e030
push str._HTTP_1.1_r_n
lea ecx, [ebp - 0x11d4]
call fcn.1005e030
push str.Host:_graph.facebook.com_r_n
lea ecx, [ebp - 0x11d4]
call fcn.1005e030
push str.Connection:_close_r_n_r_n
lea ecx, [ebp - 0x11d4]
call fcn.1005e030
mov eax, dword [ebp - 0x11d4]
mov edx, eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x10049f20
push 0
sub edx, esi
push edx
push eax
push edi
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
je 0x10049fdc
push 0x1000
lea eax, [ebp - 0x1030]
push 0
push eax
call fcn.100638d0
add esp, 0xc
lea eax, [ebp - 0x1030]
push 0
push 0x1000
push eax
push edi
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
je 0x10049fdc
cmp eax, 0x1000
jae 0x1004a019
mov byte [ebp + eax - 0x1030], 0
lea eax, [ebp - 0x1030]
push str._id_:
push eax
call fcn.100547c0
mov esi, eax
add esp, 8
test esi, esi
je 0x10049fdc
mov al, byte [esi + 5]
add esi, 5
test al, al
je 0x10049fae
cmp al, 0x22
je 0x10049fb3
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10049fa2
cmp byte [esi], 0x22
jne 0x10049fdc
inc esi
push 0x22
push esi
call fcn.100640a0
add esp, 8
test eax, eax
je 0x10049fdc
push esi
mov byte [eax], 0
call fcn.10068489
mov ecx, dword [ebp - 0x11d8]
add esp, 4
mov bl, 1
mov dword [ecx], eax
mov dword [ecx + 4], edx
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11d4]
call fcn.1005dd90
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005ff5d
mov esp, ebp
pop ebp
ret
call fcn.1006032d
int3