Function at 0x4017c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Delete file
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:
mov eax, 0x30c0
call fcn.004110b0
mov eax, dword [0x43ec10]
mov dword [esp + 0x30bc], eax
lea eax, [esp + 0x81c]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401807
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [esp + 0x30bc]
call fcn.00410a9d
add esp, 0x30c0
ret 0xc
push esi
mov esi, dword [esp + 0x30c8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x401843
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40183c
pop esi
mov ecx, dword [esp + 0x30bc]
call fcn.00410a9d
add esp, 0x30c0
ret 0xc
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push edi
push 6
push 1
push 2
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x401889
push 0x50
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [esp + 0x18]
push ecx
push edi
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4018a2
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30bc]
call fcn.00410a9d
add esp, 0x30c0
ret 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x30dc]
push 0x430748
push ebp
call fcn.00411391
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x401942
mov eax, dword [esp + 0x30d8]
mov cl, byte [eax]
push 0
lea edx, [esp + 0x18]
cmp cl, 0x2f
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], 0x400
push ecx
jne 0x4018e6
inc eax
push eax
call dword [sym.imp.SHLWAPI.dll_UrlEscapeA]
push esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x434]
push str.GET___s_HTTP_1.0_r_nAccept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_vnd.ms_excel__application_msword__application_vnd.ms_powerpoint____r_nAccept_Language:_en_us_r_nContent_type:_application_x_www_form_urlencoded_r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_Mozilla_4.0_r_nHost:__s_r_n_r_n
push eax
call fcn.004112dd
lea eax, [esp + 0x43c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401912
push 0
sub eax, edx
push eax
lea ecx, [esp + 0x434]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x401950
push ebx
call fcn.0041128c
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x401a22
mov ebp, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
mov dword [esp + 0x10], 1
test ebx, ebx
push 0
jne 0x401972
push 1
lea edx, [esp + 0x9c4]
push edx
jmp 0x40197f
push 0x2710
lea eax, [esp + 0x9c4]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
je 0x401a3b
jle 0x4019be
test ebx, ebx
jne 0x4019c2
mov al, byte [esp + 0x9bc]
cmp al, 0xa
je 0x4019a7
cmp al, 0xd
je 0x4019de
inc dword [esp + 0x10]
jmp 0x4019de
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4019b6
mov ebx, 1
xor esi, esi
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x4019de
test esi, esi
jle 0x4019de
mov ecx, dword [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x9c4]
push esi
push edx
call fcn.004111f4
add esp, 0x10
cmp esi, 0xffffffff
jne 0x401960
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x401960
xor esi, esi
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x18]
push eax
call fcn.0041128c
add esp, 4
test esi, esi
jne 0x401a20
mov ecx, dword [esp + 0x30dc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
mov ecx, dword [esp + 0x30cc]
pop ebp
pop ebx
pop edi
pop esi
call fcn.00410a9d
add esp, 0x30c0
ret 0xc
mov esi, 1
jmp 0x4019fa