Function at 0x4018d0
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
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42c700
push 0x40c730
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x10b8
call fcn.00416bf0
mov eax, dword [0x42e008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x10b0], 0
mov byte [ebp - 0x480], 0
push 0x3ff
push 0
lea eax, [ebp - 0x47f]
push eax
call fcn.0040fa30
add esp, 0xc
mov byte [ebp - 0x880], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x87f]
push ecx
call fcn.0040fa30
add esp, 0xc
mov byte [ebp - 0x1080], 0
push 0x3ff
push 0
lea edx, [ebp - 0x107f]
push edx
call fcn.0040fa30
add esp, 0xc
mov byte [ebp - 0x80], 0
push 0x63
push 0
lea eax, [ebp - 0x7f]
push eax
call fcn.0040fa30
add esp, 0xc
mov dword [ebp - 0x10a8], 0
mov dword [ebp - 4], 0
mov ecx, 0x15
mov esi, str.GET__iplookup_iplookup.php_HTTP_1.1_r_nHost:int.dpool.sina.com.cn_r_nConnection:_close_r_n_r_n
lea edi, [ebp - 0xc80]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x3a9
push 0
lea ecx, [ebp - 0xc29]
push ecx
call fcn.0040fa30
add esp, 0xc
push str.int.dpool.sina.com.cn
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x10ac], eax
cmp dword [ebp - 0x10ac], 0
je 0x401b1c
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x10ac]
mov edx, dword [ecx + 0xc]
mov eax, dword [eax + edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 0x10cc], eax
mov edx, 2
mov word [ebp - 0x1090], dx
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x108e], ax
mov eax, dword [ebp - 0x10cc]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x108c], eax
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x10a0], eax
cmp dword [ebp - 0x10a0], 0xffffffff
je 0x401b1c
push 0x10
lea ecx, [ebp - 0x1090]
push ecx
mov edx, dword [ebp - 0x10a0]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x401b0f
lea eax, [ebp - 0xc80]
mov dword [ebp - 0x10a4], eax
mov ecx, dword [ebp - 0x10a4]
add ecx, 1
mov dword [ebp - 0x10b4], ecx
mov edx, dword [ebp - 0x10a4]
mov al, byte [edx]
mov byte [ebp - 0x1092], al
add dword [ebp - 0x10a4], 1
cmp byte [ebp - 0x1092], 0
jne 0x401a89
mov ecx, dword [ebp - 0x10a4]
sub ecx, dword [ebp - 0x10b4]
mov dword [ebp - 0x10c4], ecx
push 0
mov edx, dword [ebp - 0x10c4]
push edx
lea eax, [ebp - 0xc80]
push eax
mov ecx, dword [ebp - 0x10a0]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401b0f
push 0
push 0x400
lea edx, [ebp - 0x480]
push edx
mov eax, dword [ebp - 0x10a0]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10b8], eax
cmp dword [ebp - 0x10b8], 0xffffffff
je 0x401b0f
mov dword [ebp - 0x10b0], 1
mov ecx, dword [ebp - 0x10a0]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea edx, [ebp - 0x480]
mov dword [ebp - 0x109c], edx
mov eax, dword [ebp - 0x109c]
add eax, 1
mov dword [ebp - 0x10c0], eax
mov ecx, dword [ebp - 0x109c]
mov dl, byte [ecx]
mov byte [ebp - 0x1091], dl
add dword [ebp - 0x109c], 1
cmp byte [ebp - 0x1091], 0
jne 0x401b37
mov eax, dword [ebp - 0x109c]
sub eax, dword [ebp - 0x10c0]
mov dword [ebp - 0x10c8], eax
je 0x401c1e
cmp dword [ebp - 0x10b0], 0
je 0x401c1e
push 0x31
lea ecx, [ebp - 0x480]
push ecx
call fcn.00401c60
add esp, 8
mov dword [ebp - 0x10a8], eax
cmp dword [ebp - 0x10a8], 0
je 0x401c1e
mov edx, dword [ebp - 0x10a8]
push edx
push 0x42b074
lea eax, [ebp - 0x880]
push eax
call fcn.004096c7
add esp, 0xc
lea ecx, [ebp - 0x880]
mov dword [ebp - 0x1098], ecx
mov edx, dword [ebp - 0x1098]
add edx, 1
mov dword [ebp - 0x10d0], edx
mov eax, dword [ebp - 0x1098]
mov cl, byte [eax]
mov byte [ebp - 0x1093], cl
add dword [ebp - 0x1098], 1
cmp byte [ebp - 0x1093], 0
jne 0x401bd4
mov edx, dword [ebp - 0x1098]
sub edx, dword [ebp - 0x10d0]
mov dword [ebp - 0x10bc], edx
mov eax, dword [ebp - 0x10bc]
push eax
lea ecx, [ebp - 0x880]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040a960
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x401c37
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00409240
mov esp, ebp
pop ebp
ret