Function at 0x417020
Capabilities:
Connect 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 0x58b458
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x5f31c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
call fcn.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x417253
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1b8], esi
lea eax, [ebp - 0x1b0]
mov byte [ebp - 4], 3
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4171ff
mov eax, dword [ebp + 8]
push eax
push dword [eax - 0xc]
lea eax, [ebp - 0x1b8]
push str.POST__collect_HTTP_1.1_r_nContent_Type:_application_x_www_form_urlencoded_r_nHost:_www.google_analytics.com_r_nContent_Length:__d_r_n_r_n_s
push eax
call fcn.0040f670
mov esi, dword [ebp - 0x1b8]
xorps xmm0, xmm0
push 0x50
push 0x59cddc
push 0x10
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x1c0], eax
or eax, 0xffffffff
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1e0], 0
movlpd qword [ebp - 0x1d0], xmm0
movlpd qword [ebp - 0x1c8], xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x1dc], 2
mov dword [ebp - 0x1d8], 1
mov dword [ebp - 0x1d4], 6
call fcn.004179b0
add esp, 0x20
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x20]
push eax
push str.www.google_analytics.com
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x417269
mov edi, dword [ebp - 0x1b4]
test edi, edi
je 0x4171a4
nop dword [eax + eax]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x1bc], eax
cmp eax, 0xffffffff
je 0x41724c
push dword [edi + 0x10]
push dword [edi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x41719e
call fcn.00566952
mov eax, dword [ebp - 0x1bc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, dword [edi + 0x1c]
test edi, edi
je 0x41725d
jmp 0x417150
mov edi, dword [ebp - 0x1b4]
push edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov edi, dword [ebp - 0x1bc]
cmp edi, 0xffffffff
je 0x417269
cmp dword [esi - 4], 1
jle 0x4171d4
push dword [esi - 0xc]
lea ecx, [ebp - 0x1b8]
call fcn.004046b0
mov esi, dword [ebp - 0x1b8]
push 0
push dword [ebp - 0x1c0]
push esi
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp - 0x1c0]
je 0x4171f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417219
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x417231
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0055e0c1
mov esp, ebp
pop ebp
ret
call fcn.00566952
jmp 0x41725d
push 0x80004005
call fcn.00403c70
push dword [ebp - 0x1b4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call fcn.0057091e
int3