Function at 0x429fa0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
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 0x435fae
mov eax, dword fs:[0]
push eax
sub esp, 0x6a0
mov eax, dword [0x4420a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
xorps xmm0, xmm0
push 0x18e
push eax
mov word [ebp - 0x690], ax
lea eax, [ebp - 0x68e]
push eax
movdqu xmmword [ebp - 0x6a0], xmm0
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x690]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x42a04d
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0x42a04d
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [ebp - 0x6a0], xmm0
push str.stat.Droid4X.me
mov word [ebp - 0x6a0], ax
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x42a054
push edi
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor al, al
jmp 0x42a4c7
mov eax, dword [eax + 0xc]
push 0x50
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x69c], eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x69e], ax
lea eax, [ebp - 0x6a0]
push 0x10
push eax
push edi
call sub.WS2_32.dll_connect
mov ecx, dword [0x44381c]
cmp eax, 0xffffffff
jne 0x42a09a
push str.connected_error
call fcn.00423ea0
xor al, al
jmp 0x42a4c7
push str.connected_success
call fcn.00423ea0
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
push str.GET__interface_install.aspx_HTTP_1.1_r_n
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0
call fcn.00416170
push str.Accept:text_html_application_xhtmlxml_application_xml_q0.9_image_webp___q0.8_r_n
lea ecx, [ebp - 0x428]
call fcn.00416170
push str.Accept_Encoding:gzip_deflate_sdch_r_n
lea ecx, [ebp - 0x428]
call fcn.00416170
push str.Accept_Language:zh_CN_zh_q0.8_r_n
lea ecx, [ebp - 0x428]
call fcn.00416170
push str.Connection:keep_alive_r_n
lea ecx, [ebp - 0x428]
call fcn.00416170
push str.Host:stat.Droid4X.me_r_n
lea ecx, [ebp - 0x428]
call fcn.00416170
lea eax, [ebp - 0x4e8]
push eax
call fcn.0042f360
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 1
push eax
call fcn.0042ec00
lea eax, [ebp - 0x4a0]
mov byte [ebp - 4], 2
push eax
call fcn.0042ecc0
lea eax, [ebp - 0x4b8]
mov byte [ebp - 4], 3
push eax
call fcn.0042eef0
lea eax, [ebp - 0x4d0]
mov byte [ebp - 4], 4
push eax
call fcn.0042ead0
add esp, 0x14
mov dword [ebp - 0x42c], 0xf
mov dword [ebp - 0x430], 0
mov byte [ebp - 0x440], 0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4e8]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x440]
call fcn.00406230
push 0x43979c
lea ecx, [ebp - 0x440]
call fcn.00416170
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x440]
call fcn.00406230
push 0x43979c
lea ecx, [ebp - 0x440]
call fcn.00416170
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x440]
call fcn.00406230
push 0x43979c
lea ecx, [ebp - 0x440]
call fcn.00416170
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x440]
call fcn.00406230
push 0x43979c
lea ecx, [ebp - 0x440]
call fcn.00416170
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4b8]
push eax
lea ecx, [ebp - 0x440]
call fcn.00406230
push 0x43979c
lea ecx, [ebp - 0x440]
call fcn.00416170
push str._alive
lea ecx, [ebp - 0x440]
call fcn.00416170
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], 0
mov byte [ebp - 0x458], 0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x458]
call fcn.00406230
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x458]
call fcn.00406230
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4b8]
push eax
lea ecx, [ebp - 0x458]
call fcn.00406230
cmp dword [ebp - 0x448], 0
jne 0x42a2e3
push edi
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
mov byte [ebp - 0x6a1], 1
jmp 0x42a469
cmp dword [ebp - 0x42c], 0x10
lea eax, [ebp - 0x440]
push dword [ebp - 0x430]
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x470]
push eax
call fcn.0042dd60
sub esp, 0xc
mov byte [ebp - 4], 8
lea eax, [ebp - 0x458]
mov ecx, esp
push eax
call fcn.00403340
lea eax, [ebp - 0x500]
push eax
call fcn.0042f8c0
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 9
call fcn.00406230
lea ecx, [ebp - 0x500]
mov byte [ebp - 4], 8
call fcn.00403db0
push str.data:
lea ecx, [ebp - 0x428]
call fcn.00416170
cmp dword [ebp - 0x45c], 0x10
lea eax, [ebp - 0x470]
lea ecx, [ebp - 0x428]
cmovae eax, dword [ebp - 0x470]
push eax
call fcn.00416170
push str._r_n_r_n
lea ecx, [ebp - 0x428]
call fcn.00416170
cmp dword [ebp - 0x414], 0x10
lea ecx, [ebp - 0x428]
mov eax, dword [ebp - 0x418]
cmovae ecx, dword [ebp - 0x428]
xor esi, esi
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6a8], ecx
test eax, eax
jle 0x42a3ea
lea ecx, [ecx]
push 0
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push edi
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x42a4e2
mov ecx, dword [ebp - 0x6a8]
add esi, eax
mov eax, dword [ebp - 0x6ac]
cmp esi, eax
jl 0x42a3c0
push dword [ebp - 0x69e]
call sub.WS2_32.dll_ntohs
movzx eax, ax
push eax
push dword [ebp - 0x69c]
call sub.WS2_32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x410]
push str.ip_address___s__port___d_n
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
mov ecx, dword [0x44381c]
lea eax, [ebp - 0x410]
add esp, 0x10
push eax
call fcn.00423ea0
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
mov ecx, dword [0x44381c]
cmovae eax, dword [ebp - 0x428]
push eax
call fcn.00423ea0
push edi
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
mov byte [ebp - 0x6a1], 1
lea ecx, [ebp - 0x470]
call fcn.00403db0
lea ecx, [ebp - 0x458]
call fcn.00403db0
lea ecx, [ebp - 0x440]
call fcn.00403db0
lea ecx, [ebp - 0x4d0]
call fcn.00403db0
lea ecx, [ebp - 0x4b8]
call fcn.00403db0
lea ecx, [ebp - 0x4a0]
call fcn.00403db0
lea ecx, [ebp - 0x488]
call fcn.00403db0
lea ecx, [ebp - 0x4e8]
call fcn.00403db0
lea ecx, [ebp - 0x428]
call fcn.00403db0
mov al, byte [ebp - 0x6a1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004308d0
mov esp, ebp
pop ebp
ret
push edi
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
mov byte [ebp - 0x6a1], 0
jmp 0x42a45e