Function at 0xea6200
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Reference http user-agent string
Resolve dns
Set socket configuration

Disassembly:
mov eax, 0x417c
call fcn.01087f10
sub esp, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x416c], ebx
mov ebx, 3
mov dword [esp + 0x4178], ebp
mov ebp, dword [esp + 0x4184]
mov dword [esp + 0x4170], esi
mov dword [esp + 0x4174], edi
mov dword [esp + 8], 0x4014
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x4180]
mov dword [esp + 0x414c], 0
mov dword [esp + 0x4150], 0
mov dword [esp + 0x4154], 0
mov dword [edx + 8], 0xffffffff
mov edx, dword [sym.imp.msvcrt.dll__strnicmp]
mov dword [esp + 0x4158], 0
mov word [esp + 0x414c], 2
mov dword [esp + 8], 4
mov dword [esp + 4], str.http
mov dword [esp], ebp
mov dword [esp + 0x20], edx
call edx
test eax, eax
je 0xea62e0
mov eax, ebx
mov esi, dword [esp + 0x4170]
mov ebx, dword [esp + 0x416c]
mov edi, dword [esp + 0x4174]
mov ebp, dword [esp + 0x4178]
add esp, 0x417c
ret
cmp byte [ebp + 4], 0x73
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0x50
je 0xea6571
lea eax, [ebp + 4]
mov ebx, 3
mov dword [esp + 4], 0x3a
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0xea62b7
mov edi, 0x1462869
mov ecx, 3
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0xea62b7
lea ebx, [eax + 3]
mov dword [esp + 4], 0x2f
lea esi, [esp + 0x404c]
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
mov dword [esp + 4], ebx
mov dword [esp], esi
mov edi, eax
sub edi, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 8], edi
call sub.msvcrt.dll_strncpy
mov byte [esp + edi + 0x404c], 0
mov dword [esp + 4], 0x3a
mov dword [esp], esi
call sub.msvcrt.dll_strrchr
test eax, eax
je 0xea6386
mov byte [eax], 0
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [esp + 0x24], eax
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_inet_addr]
sub esp, 4
cmp eax, 0xffffffff
mov dword [esp + 0x4150], eax
je 0xea65a0
movzx eax, word [esp + 0x24]
mov ebx, 6
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
mov word [esp + 0x414e], ax
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x38], eax
je 0xea62b7
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Mozilla_5.0
sub eax, ebp
add eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
lea ebp, [esp + 0x44]
mov dword [esp + 4], str.GET__s_HTTP_1.0_r_nUser_Agent:__s_r_nHost:__s_r_nReferrer:__.s_r_n
mov dword [esp], ebp
mov dword [esp + 8], eax
call sub.msvcrt.dll_sprintf
mov edx, dword [esp + 0x4180]
mov esi, eax
mov eax, dword [edx]
cmp byte [eax], 0
jne 0xea65d4
lea eax, [esp + 0x38]
mov ebx, 6
add eax, esi
mov word [eax + 0xc], 0xa0d
mov byte [eax + 0xe], 0
lea eax, [esp + 0x414c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], 0x10
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
test eax, eax
js 0xea6560
mov ecx, dword [esp + 0x28]
lea eax, [esi + 2]
test ecx, ecx
je 0xea64c0
mov eax, dword [0x1b30058]
mov dword [esp], eax
call fcn.00eb1eb0
mov edx, dword [esp + 0x38]
mov dword [esp + 4], edx
mov dword [esp + 0x4048], eax
mov dword [esp], eax
call fcn.00eb2da0
mov eax, dword [esp + 0x4048]
mov dword [esp], eax
call fcn.00eb5ee0
test eax, eax
js 0xea6830
lea ecx, [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ecx
call fcn.00e9cb70
lea eax, [esp + 0x415c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x415c], 0x1388
mov dword [esp + 0x10], 4
mov dword [esp + 8], 0x1006
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
test eax, eax
jne 0xea65f3
lea eax, [esp + 0x38]
mov ebx, 6
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4044], 0
mov dword [esp], eax
call fcn.00e9c8d0
test eax, eax
jle 0xea6560
mov edi, str.HTTP_1
mov ecx, 6
mov esi, ebp
mov bl, 3
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
je 0xea661c
lea edx, [esp + 0x38]
mov dword [esp], edx
call fcn.00e9ccc0
jmp 0xea62b7
mov ebx, dword [0x1b30058]
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x1bb
test ebx, ebx
jne 0xea62fa
call fcn.00e9b570
jmp 0xea62fa
mov dword [esp], esi
mov ebx, 6
call dword [sym.imp.WS2_32.dll_gethostbyname]
sub esp, 4
test eax, eax
je 0xea62b7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0xea62b7
mov eax, dword [eax]
mov dword [esp + 0x4150], eax
jmp 0xea63a2
mov dword [esp + 8], eax
lea eax, [esp + esi + 0x44]
mov dword [esp + 4], str.If_Modified_Since:__s_r_n
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
add esi, eax
jmp 0xea643a
mov dword [esp + 0xc], 5
mov dword [esp + 8], str.HTTP_get
mov dword [esp + 4], str._s__Setting_socket_timeout_to__ds_failed_
mov dword [esp], 1
call fcn.00ea3ac0
jmp 0xea651a
mov dword [esp + 4], 0x20
xor bl, bl
mov dword [esp], ebp
call sub.msvcrt.dll_strchr
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov edx, dword [esp + 0x4180]
cmp eax, 0x12b
mov dword [edx + 8], eax
jle 0xea6677
cmp eax, 0x130
mov bl, 1
je 0xea6560
cmp eax, 0x194
mov bl, 2
je 0xea6677
cmp eax, 0x1f3
mov bl, 4
jg 0xea6677
xor ebx, ebx
cmp eax, 0x190
setl bl
lea ebx, [ebx + ebx + 3]
mov esi, dword [esp + 0x3c]
mov dword [esp + 4], 0xa
mov dword [esp], ebp
mov dword [esp + 8], esi
call sub.msvcrt.dll_memchr
test eax, eax
je 0xea6851
lea edi, [eax + 1]
sub ebp, edi
add esi, ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x24], 0
jmp 0xea66e0
mov eax, dword [esp + 0x40]
add eax, 0x10
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x40]
lea edi, [ebp + 2]
mov dword [esp + 0x40], edi
sub esi, edi
add esi, dword [esp + 0x3c]
test esi, esi
mov dword [esp + 0x3c], esi
jle 0xea6766
mov dword [esp + 8], esi
mov dword [esp + 4], 0xd
mov dword [esp], edi
call sub.msvcrt.dll_memchr
test eax, eax
mov ebp, eax
je 0xea6795
cmp byte [edi], 0xd
je 0xea6787
mov dword [esp + 8], 0x10
mov dword [esp + 4], str.Content_Length:
mov dword [esp], edi
call dword [esp + 0x20]
test eax, eax
je 0xea66b0
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 0xf
mov dword [esp + 4], str.Last_Modified:
mov dword [esp], eax
call dword [esp + 0x20]
test eax, eax
jne 0xea66c3
mov byte [ebp], 0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x4180]
add eax, 0xf
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
jmp 0xea66c3
lea ecx, [esp + 0x38]
mov dword [esp], ecx
call fcn.00e9c8d0
test eax, eax
jle 0xea685b
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
jmp 0xea66e0
add edi, 2
sub esi, 2
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], esi
mov edx, dword [esp + 0x24]
xor eax, eax
test edx, edx
setg al
mov esi, eax
test esi, esi
sete dl
mov edi, edx
mov edx, dword [esp + 0x3c]
test edx, edx
jle 0xea67ff
mov ecx, dword [esp + 0x4180]
mov eax, dword [ecx + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [esp + 0x4188]
test esi, esi
mov eax, dword [esp + 0x3c]
je 0xea67e5
sub dword [esp + 0x24], eax
mov edx, dword [esp + 0x4180]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x3c], 0
add dword [edx + 4], eax
test ebp, ebp
jle 0xea6825
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.00e9c8d0
mov edx, dword [esp + 0x3c]
test eax, eax
jg 0xea67b1
cmp dword [esp + 0x24], 0
mov eax, 6
cmovg ebx, eax
jmp 0xea6560
mov ecx, edi
test cl, cl
jne 0xea67ff
jmp 0xea6560
mov dword [esp + 8], str.HTTP_get
mov dword [esp + 4], str._s__TLS_Connect_failed
mov dword [esp], 1
call fcn.00ea3ac0
jmp 0xea6560
mov ebx, 3
jmp 0xea6560
mov ebx, 6
jmp 0xea6560