Function at 0x100018a0
Capabilities:
Connect 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
and esp, 0xfffffff8
mov eax, 0x3d3c
call fcn.10015420
mov eax, dword [0x10035b10]
xor eax, esp
mov dword [esp + 0x3d38], eax
cmp dword [0x1003a3a8], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], eax
jne 0x10001bc3
lea ecx, [esp + 0x28]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10001bc3
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
mov edx, 2
mov dword [esp + 0x18], eax
push 0x50
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x1c], dx
call dword [sym.imp.WS2_32.dll_htons]
push 0x1002f674
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_gethostbyname]
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.10015930
movzx edx, byte [esp + 0x2b]
movzx eax, byte [esp + 0x2a]
movzx ecx, byte [esp + 0x29]
add esp, 0xc
push edx
movzx edx, byte [esp + 0x20]
push eax
push ecx
push edx
push str.IP_address:_d._d._d._d_n
call fcn.10011927
add esp, 0x14
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x100019f8
push str.connect_failed
call fcn.10004750
add esp, 4
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10003eb0
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
lea eax, [edx + esi]
xor edi, edi
test byte [eax + 8], 6
jne 0x100019be
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x100019be
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x10001bc3
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x100019db
or eax, 4
push 0
push eax
call fcn.100011d0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d38]
xor ecx, esp
call fcn.1001116a
mov esp, ebp
pop ebp
ret
push str.connect_success
call fcn.10004750
add esp, 4
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10003eb0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], 6
jne 0x10001a35
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x10001a35
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x10001a56
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x10001a4e
or eax, 4
push 0
push eax
call fcn.100011d0
push 0x1388
lea edx, [esp + 0x29bc]
push 0
push edx
call fcn.10012780
add esp, 0xc
push 0x1002f674
push ebx
lea eax, [esp + 0x29c0]
push str.GET__s_HTTP_1.1_r_nAccept:___r_nAccept_Language:_zh_cn_r_nContent_Type:_text_html_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_5.1__Trident_4.0__.NET_CLR_2.0.50727__.NET_CLR_3.0.04506.648__.NET_CLR_3.5.21022__r_nAccept_Encoding:_gzip__deflate_r_nHost:_s_r_nConnection:_Keep_Alive_r_n_r_n
push eax
call fcn.10011672
lea eax, [esp + 0x29c8]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001a92
mov edi, dword [esp + 0xc]
push 0
sub eax, edx
push eax
lea ecx, [esp + 0x29c0]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
push 0x2800
lea edx, [esp + 0x1bc]
push 0
push edx
call fcn.10012780
add esp, 0xc
push 0
push 0x2800
lea eax, [esp + 0x1c0]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
push esi
push str.the_length_of_page_is__d_n
call fcn.10011927
add esp, 8
cmp esi, 0xffffffff
je 0x10001bb6
cmp dword [esp + 0x10], 0
je 0x10001bb6
lea eax, [esp + 0x1b8]
xor ecx, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10001b10
sub eax, esi
je 0x10001b5e
mov bl, 0xd
lea ecx, [ecx]
cmp byte [esp + ecx + 0x1b8], bl
jne 0x10001b46
cmp byte [esp + ecx + 0x1b9], 0xa
jne 0x10001b46
cmp byte [esp + ecx + 0x1ba], bl
jne 0x10001b46
cmp byte [esp + ecx + 0x1bb], 0xa
je 0x10001b5e
lea eax, [esp + 0x1b8]
inc ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10001b51
sub eax, esi
cmp ecx, eax
jb 0x10001b20
lea eax, [esp + 0x1b8]
add ecx, 4
lea esi, [eax + 1]
jmp 0x10001b70
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10001b70
sub eax, esi
cmp ecx, eax
jae 0x10001bb6
mov esi, dword [esp + 0x10]
jmp 0x10001b90
mov dl, byte [esp + ecx + 0x1b8]
mov byte [esi], dl
lea eax, [esp + 0x1b8]
inc esi
inc ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10001ba5
sub eax, edi
cmp ecx, eax
jb 0x10001b90
mov edi, dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x3d44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001116a
mov esp, ebp
pop ebp
ret