Function at 0x27033312
Capabilities:
Get socket status
Receive data
Receive data on socket
Reference opendns dns server
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x270b313c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
push 2
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
call sub.WS2_32.dll_socket
mov dword [0x270bbfa8], eax
cmp eax, 0xffffffff
jne 0x27033356
push str.create_socket
call sub.msvcrt.dll_perror
or eax, 0xffffffff
jmp 0x27033584
push 4
push 0x2709f228
push 4
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push 4
lea eax, [ebp - 0x2c]
push eax
mov esi, 0x9800000c
push esi
push dword [0x270bbfa8]
call sub.WS2_32.dll_WSAIoctl
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop edi
mov eax, edi
push 0x35
mov word [ebp - 0x14], ax
mov dword [ebp - 0x10], ebx
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [0x270bbfa8]
call sub.WS2_32.dll_bind
test eax, eax
je 0x270333c5
push str.bind_service_port
jmp 0x27033349
or dword [0x270bdfb4], 0xffffffff
mov eax, edi
push str.208.67.222.222
mov dword [0x270bdfb0], ebx
mov word [0x270bdfb8], ax
call sub.WS2_32.dll_inet_addr
push 0x1bb
mov dword [0x270bdfbc], eax
call sub.WS2_32.dll_htons
mov word [0x270bdfba], ax
mov dword [0x270bdfc8], ebx
mov dword [0x270bdfcc], ebx
mov dword [0x270bdfd0], 0x6000
cmp dword [0x270bdfb0], ebx
jne 0x27033442
push ebx
push edi
push edi
call sub.WS2_32.dll_socket
mov dword [0x270bdfb4], eax
cmp eax, 0xffffffff
je 0x27033344
push ebx
push ebx
lea ecx, [ebp - 0x30]
push ecx
push ebx
push ebx
push 4
lea ecx, [ebp - 0x2c]
push ecx
push esi
push eax
call sub.WS2_32.dll_WSAIoctl
lea eax, [ebp - 0x28]
push eax
call sub.msvcrt.dll_time
pop ecx
jmp 0x27033451
push 2
pop edi
mov eax, dword [0x270bdfb4]
mov ecx, dword [0x270bbfa8]
xor esi, esi
inc esi
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x148], esi
cmp eax, 0xffffffff
je 0x27033496
xor edx, edx
cmp dword [ebp + edx*4 - 0x144], eax
je 0x27033480
inc edx
cmp edx, esi
jb 0x27033472
cmp edx, esi
jne 0x27033490
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x148], edi
cmp ecx, eax
jge 0x27033496
mov ecx, eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x148]
push eax
inc ecx
push ecx
mov dword [ebp - 0x3c], 6
mov dword [ebp - 0x38], ebx
call sub.WS2_32.dll_select
mov edi, eax
cmp edi, ebx
jle 0x27033549
mov eax, dword [0x270bdfb4]
cmp eax, 0xffffffff
je 0x2703352c
lea ecx, [ebp - 0x148]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x2703352c
cmp dword [0x270bdfb0], ebx
je 0x270334ed
mov esi, 0x270bdfb0
call fcn.2703324c
jmp 0x2703352c
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x2000
mov esi, 0x270bdfd4
push esi
push dword [0x270bdfb4]
mov dword [ebp - 0x34], 0x10
call sub.WS2_32.dll_recvfrom
cmp eax, 0xc
jl 0x2703352c
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [0x270bdfbc]
jne 0x2703352c
push esi
mov ecx, eax
call fcn.27032f69
pop ecx
lea eax, [ebp - 0x148]
push eax
push dword [0x270bbfa8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x27033567
call fcn.2703289a
jmp 0x27033567
jne 0x27033567
lea eax, [ebp - 0x28]
push eax
call sub.msvcrt.dll_time
pop ecx
push dword [ebp - 0x28]
call fcn.27033d5d
pop ecx
push dword [ebp - 0x28]
call fcn.27033eab
pop ecx
cmp edi, 0xffffffff
jne 0x2703344e
or dword [ebp - 0x28], edi
push edi
call fcn.27033d5d
pop ecx
push dword [ebp - 0x28]
call fcn.27033eab
xor eax, eax
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.27088f70
leave
ret