Function at 0x10010830
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Reference http user-agent string
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94c
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
mov dword [ebp - 0x93c], eax
push esi
push edi
test ebx, ebx
je 0x10010c7c
cmp byte [ebx], 0
je 0x10010c7c
push 0x7f
lea eax, [ebp - 0xaf]
mov byte [ebp - 0xb0], 0
push 0
push eax
call fcn.1006ff30
add esp, 0xc
mov edi, 0x50
push 0x100afc24
push ebx
call fcn.10072370
mov esi, eax
add esp, 8
test esi, esi
jne 0x100108a1
mov eax, ebx
neg eax
cmp eax, 0x13
jg 0x10010c76
mov eax, esi
sub eax, ebx
push eax
push ebx
lea eax, [ebp - 0xb0]
push 0x80
push eax
call fcn.1006e5d1
lea eax, [ebp - 0xb0]
add esi, 3
push str.http
push eax
call fcn.1006e4f5
add esp, 0x18
test eax, eax
jne 0x10010c76
push 0x2f
push esi
call fcn.10073f40
push 0x80
mov dword [ebp - 0x940], eax
lea eax, [ebp - 0xb0]
push 0
push eax
call fcn.1006ff30
mov eax, dword [ebp - 0x940]
add esp, 0x14
sub eax, esi
push eax
push esi
lea eax, [ebp - 0xb0]
push 0x80
push eax
call fcn.1006e5d1
lea eax, [ebp - 0xb0]
push 0x3a
push eax
call fcn.10073f40
mov ecx, eax
mov byte [ebp - 0x2c], 0
add esp, 0x18
mov word [ebp - 0x1b], 0
mov byte [ebp - 0x19], 0
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x2b], xmm0
test ecx, ecx
je 0x1001097e
lea edx, [ebp - 0xb0]
sub eax, edx
cmp eax, 0x80
jae 0x10010c95
mov byte [ebp + eax - 0xb0], 0
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.1006dcec
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call fcn.1006da23
add esp, 4
mov edi, eax
mov byte [ebp - 0x18], 0
xorps xmm0, xmm0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
movdqu xmmword [ebp - 0x17], xmm0
cmp edi, 0x50
je 0x100109b5
lea eax, [edi - 1]
cmp eax, 0xfffe
ja 0x100109b5
push edi
lea eax, [ebp - 0x18]
push 0x100afc30
push eax
call fcn.10011150
add esp, 0xc
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x10010c76
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x934]
push eax
call fcn.1006f8e0
add esp, 0xc
push dword [ebp - 0x934]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 0x944], eax
test eax, eax
je 0x10010c76
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
mov dword [ebp - 0x94c], 0x1388
push 4
lea eax, [ebp - 0x94c]
mov dword [ebp - 0x948], esi
push eax
push 0x1005
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
mov eax, 2
push edi
mov word [ebp - 0x928], ax
call sub.WS2_32.dll_htons
push dword [ebp - 0x944]
mov word [ebp - 0x926], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x924], eax
lea eax, [ebp - 0x928]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push 0x3ff
lea eax, [ebp - 0x917]
mov byte [ebp - 0x918], 0
push 0
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x940]
lea eax, [ebp - 0x918]
push str.GET__s_HTTP_1.1_r_nHost:__s_s_r_nAccept:__r_nUser_Agent:_Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0__r_nConnection:close_r_nCache_Control:_no_cache_r_n_r_n_r_n
push eax
call fcn.10011170
lea eax, [ebp - 0x918]
add esp, 0x14
lea edx, [eax + 1]
jmp 0x10010ac0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10010ac0
push 0
sub eax, edx
push eax
lea eax, [ebp - 0x918]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
push 0x3ff
lea eax, [ebp - 0x517]
mov byte [ebp - 0x518], 0
push 0
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x518]
push 0
push 0x400
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 8
lea ecx, [ebp - 0x518]
mov edx, ebx
mov esi, eax
call fcn.10010f80
add esp, 8
cmp eax, 0xffffffff
je 0x10010c49
cmp eax, 0xfffffffe
je 0x10010861
push 0x63
lea eax, [ebp - 0x117]
mov byte [ebp - 0x118], 0
push 0
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x518]
push str.Content_Length:
push eax
call fcn.10072370
add esp, 8
test eax, eax
je 0x10010ba2
mov cl, byte [eax + 0xf]
add eax, 0xf
test cl, cl
je 0x10010bb8
cmp cl, 0xd
je 0x10010b8f
lea edx, [ebp - 0x118]
lea ebx, [ebx]
mov byte [edx], cl
lea eax, [eax + 1]
mov cl, byte [eax]
lea edx, [edx + 1]
cmp cl, 0xd
jne 0x10010b80
lea eax, [ebp - 0x118]
push eax
mov ecx, eax
call fcn.100107a0
add esp, 4
jmp 0x10010bb8
push str.102400
lea eax, [ebp - 0x118]
push 0x64
push eax
call fcn.1006dcec
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call fcn.1006da23
mov ebx, eax
add esp, 4
cmp ebx, 1
jb 0x10010c4b
push ebx
call fcn.1007341c
mov edi, eax
add esp, 4
test edi, edi
je 0x10010c4b
push ebx
push 0
push edi
call fcn.1006ff30
mov eax, dword [ebp - 0x93c]
add esp, 0xc
mov dword [eax], edi
lea eax, [ebp - 0x518]
push str._r_n_r_n
push eax
call fcn.10072370
add esp, 8
test eax, eax
je 0x10010c4b
add eax, 4
lea ecx, [ebp - 0x518]
sub ecx, eax
add esi, ecx
push esi
push eax
push edi
call fcn.1006f8e0
add esp, 0xc
add edi, esi
cmp esi, ebx
jae 0x10010c51
push 0
push 0x400
push edi
push dword [ebp - 0x948]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10010c51
add esi, eax
add edi, eax
cmp esi, ebx
jb 0x10010c27
jmp 0x10010c51
xor ebx, ebx
mov esi, dword [ebp - 0x944]
push dword [ebp - 0x948]
call sub.WS2_32.dll_closesocket
xor eax, eax
cmp esi, ebx
cmovne ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x93c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], 0
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
call fcn.1006d947
int3