Function at 0x10002083
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp 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
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a34
call fcn.10012960
mov eax, dword [0x1002b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x1a30], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x1a28], eax
lea eax, [ebp - 0x1a24]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 0x10
call fcn.100119ab
pop ecx
push ebx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x100020ea
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.WS2_32.dll_inet_ntoa
mov dword [ebp - 0x1a34], eax
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x1894], ax
call sub.WS2_32.dll_htons
push dword [ebp - 0x1a34]
mov word [ebp - 0x1892], ax
call sub.WS2_32.dll_inet_addr
push 6
push 1
push 2
mov dword [ebp - 0x1890], eax
call sub.WS2_32.dll_socket
mov edi, eax
push 0x10
lea eax, [ebp - 0x1894]
push eax
push edi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x100022aa
push dword [ebp - 0x1a30]
lea eax, [ebp - 0x1884]
push str.POST___s
push eax
call fcn.100118df
lea eax, [ebp - 0x1884]
push str._HTTP_1.1_r_nContent_Type:_application_x_www_form_urlencoded_r_nHost:
push eax
call fcn.10011a90
lea eax, [ebp - 0x1884]
push ebx
push eax
call fcn.10011a90
lea eax, [ebp - 0x1884]
push str._r_nConnection:_close
push eax
call fcn.10011a90
push esi
call fcn.10011b80
push eax
lea eax, [ebp - 0x84]
push str._r_nContent_Length:__d
push eax
call fcn.100118df
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x1884]
push eax
call fcn.10011a90
lea eax, [ebp - 0x1884]
push str._r_n_r_n
push eax
call fcn.10011a90
add esp, 0x44
lea eax, [ebp - 0x1884]
push esi
push eax
call fcn.10011a90
lea eax, [ebp - 0x1884]
push 0x10022734
push eax
call fcn.10011a90
add esp, 0x10
push 4
lea eax, [ebp - 0x1a2c]
push eax
push 0x1005
mov esi, 0xffff
push esi
push edi
mov dword [ebp - 0x1a2c], 0x1388
call sub.WS2_32.dll_setsockopt
push 4
lea eax, [ebp - 0x1a2c]
push eax
push 0x1006
push esi
push edi
call sub.WS2_32.dll_setsockopt
push dword [ebp + 0x1c]
xor esi, esi
push esi
push dword [ebp - 0x1a28]
call fcn.1000f9c0
add esp, 0xc
lea eax, [ebp - 0x1884]
push esi
push eax
call fcn.10011b80
pop ecx
push eax
lea eax, [ebp - 0x1884]
push eax
push edi
call sub.WS2_32.dll_send
test eax, eax
jle 0x100022a4
push 0x7d
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.1000f9c0
add esp, 0xc
push esi
push 0x7c
lea eax, [ebp - 0x84]
push eax
push edi
call sub.WS2_32.dll_recv
push 1
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1a28]
call fcn.10011b80
add eax, ebx
pop ecx
cmp eax, dword [ebp + 0x1c]
jae 0x1000229f
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x1a28]
call fcn.10011a90
pop ecx
pop ecx
cmp ebx, 0x7c
je 0x1000224c
push edi
call sub.WS2_32.dll_closesocket
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011586
leave
ret