Function at 0x10049070
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 0x100952bb
mov eax, dword fs:[0]
push eax
mov eax, 0x124c
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 edi, dword [ebp + 0x10]
lea eax, [ebp - 0x1250]
push eax
push 0x101
mov byte [ebp - 0x1251], 0
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 0x10049111
lea ecx, [ebp - 0x30]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100490f1
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 0x100492cd
mov dword [ebp - 0x10c0], 0x50000002
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x10bc]
push eax
call fcn.10063b20
add esp, 0xc
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100492cd
push 0x10
lea eax, [ebp - 0x10c0]
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jne 0x100492cd
push 0xa
lea eax, [ebp - 0xb0]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10068ae7
mov eax, dword [0x100c1470]
add esp, 0x10
mov dword [ebp - 0x1258], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1258]
push str.GET__
call fcn.1005de40
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x1258]
call fcn.1005e030
push str._HTTP_1.1_r_n
lea ecx, [ebp - 0x1258]
call fcn.1005e030
push str.Host:_graph.facebook.com_r_n
lea ecx, [ebp - 0x1258]
call fcn.1005e030
push str.Connection:_close_r_n_r_n
lea ecx, [ebp - 0x1258]
call fcn.1005e030
mov eax, dword [ebp - 0x1258]
mov edx, eax
lea esi, [edx + 1]
nop dword [eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x100491f0
push 0
sub edx, esi
push edx
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
je 0x100492b4
push 0x1000
lea eax, [ebp - 0x10b0]
push 0
push eax
call fcn.100638d0
add esp, 0xc
lea eax, [ebp - 0x10b0]
push 0
push 0x1000
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
je 0x100492b4
cmp eax, 0x1000
jae 0x100492f5
mov byte [ebp + eax - 0x10b0], 0
lea eax, [ebp - 0x10b0]
push str._name_:
push eax
call fcn.100547c0
mov esi, eax
add esp, 8
test esi, esi
je 0x100492b4
mov al, byte [esi + 7]
add esi, 7
test al, al
je 0x1004927e
cmp al, 0x22
je 0x10049283
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10049272
cmp byte [esi], 0x22
jne 0x100492b4
inc esi
push 0x22
push esi
call fcn.100640a0
add esp, 8
test eax, eax
je 0x100492b4
mov byte [eax], 0
sub edi, esi
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edi + esi - 1], al
test al, al
jne 0x100492a0
mov byte [ebp - 0x1251], 1
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1258]
call fcn.1005dd90
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov al, byte [ebp - 0x1251]
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