Function at 0x4098f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b015
mov eax, dword fs:[0]
push eax
mov eax, 0xd318
call fcn.0040add0
mov eax, dword [0x411030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd31c], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
push 0x400
lea ecx, [ebp - 0xad4]
push ecx
push 0x100
lea edx, [ebp - 0x6bc]
push edx
push 0x14
lea eax, [ebp - 0x6d0]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xd304], esp
lea edx, [ebp + 8]
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 0xd320], eax
mov ecx, dword [ebp - 0xd31c]
call fcn.00409690
push str.HTTP
lea eax, [ebp - 0x6d0]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
je 0x4099b4
mov dword [ebp - 0xd308], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0xd308]
jmp 0x409f9f
lea ecx, [ebp - 0x1b4]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0xae0], eax
cmp dword [ebp - 0xae0], 0
je 0x4099fa
mov dword [ebp - 0xd30c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0xd30c]
jmp 0x409f9f
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0xffffffff
jne 0x409a3a
mov dword [ebp - 0xd310], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0xd310]
jmp 0x409f9f
mov edx, 2
mov word [ebp - 0x20], dx
movzx eax, word [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea ecx, [ebp - 0x6bc]
push ecx
mov ecx, dword [ebp - 0xd31c]
call fcn.00409560
mov dword [ebp - 0x1c], eax
push 0x10
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1b8]
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x409aa3
mov dword [ebp - 0xd314], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0xd314]
jmp 0x409f9f
movsx ecx, byte [ebp - 0xad4]
test ecx, ecx
jne 0x409ac5
push 0x400
push 0x40e048
lea edx, [ebp - 0xad4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x28], 0
jne 0x409af8
push 0x40e04c
mov eax, dword [ebp - 0x1b8]
push eax
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
push str.GET
lea ecx, [ebp - 0x5bc]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x409b23
push 0x40e05c
mov edx, dword [ebp - 0x1b8]
push edx
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
push str.POST
lea eax, [ebp - 0x5bc]
push eax
call sub.MSVCR90.dll_strcpy
add esp, 8
lea ecx, [ebp - 0xad4]
push ecx
mov edx, dword [ebp - 0x1b8]
push edx
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
lea eax, [ebp - 0xad4]
push eax
lea ecx, [ebp - 0x5bc]
push ecx
call sub.MSVCR90.dll_strcat
add esp, 8
push 0x40e06c
mov edx, dword [ebp - 0x1b8]
push edx
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
push str._HTTP_1.0_r_n
lea eax, [ebp - 0x5bc]
push eax
call sub.MSVCR90.dll_strcat
add esp, 8
push 0x40e0a0
mov ecx, dword [ebp - 0x1b8]
push ecx
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
push str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_vnd.ms_excel__application_msword__application_vnd.ms_powerpoint____r_n
lea edx, [ebp - 0x5bc]
push edx
call sub.MSVCR90.dll_strcat
add esp, 8
push 0x40e084
mov eax, dword [ebp - 0x1b8]
push eax
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
push str.Accept_Language:_en_us_r_n
lea ecx, [ebp - 0x5bc]
push ecx
call sub.MSVCR90.dll_strcat
add esp, 8
push 0x40e1dc
mov edx, dword [ebp - 0x1b8]
push edx
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
push str.Accept_Encoding:_gzip__default_r_n
lea eax, [ebp - 0x5bc]
push eax
call sub.MSVCR90.dll_strcat
add esp, 8
push 0x40e224
mov ecx, dword [ebp - 0x1b8]
push ecx
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
push str.User_Agent:_Neeao_4.0_r_n
lea edx, [ebp - 0x5bc]
push edx
call sub.MSVCR90.dll_strcat
add esp, 8
cmp dword [ebp + 0x2c], 0
je 0x409c77
mov eax, dword [ebp + 0x2c]
push eax
push str.Content_Length:__ld_r_n
lea ecx, [ebp - 0xd2f4]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0xd2f4]
push edx
mov eax, dword [ebp - 0x1b8]
push eax
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
lea ecx, [ebp - 0xd2f4]
push ecx
lea edx, [ebp - 0x5bc]
push edx
call sub.MSVCR90.dll_strcat
add esp, 8
push 0x40e26c
mov eax, dword [ebp - 0x1b8]
push eax
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
push str.Host:
lea ecx, [ebp - 0x5bc]
push ecx
call sub.MSVCR90.dll_strcat
add esp, 8
lea edx, [ebp - 0x6bc]
push edx
mov eax, dword [ebp - 0x1b8]
push eax
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
lea ecx, [ebp - 0x6bc]
push ecx
lea edx, [ebp - 0x5bc]
push edx
call sub.MSVCR90.dll_strcat
add esp, 8
push 0x40e27c
mov eax, dword [ebp - 0x1b8]
push eax
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
push 0x40e280
lea ecx, [ebp - 0x5bc]
push ecx
call sub.MSVCR90.dll_strcat
add esp, 8
cmp dword [ebp + 0x24], 0
je 0x409d35
mov edx, dword [ebp + 0x24]
movsx eax, byte [edx]
test eax, eax
je 0x409d35
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp - 0x1b8]
push edx
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [ebp - 0x5bc]
push ecx
call sub.MSVCR90.dll_strcat
add esp, 8
push 0x40e284
mov edx, dword [ebp - 0x1b8]
push edx
mov ecx, dword [ebp - 0xd31c]
call fcn.00409530
push 0x40e288
lea eax, [ebp - 0x5bc]
push eax
call sub.MSVCR90.dll_strcat
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x409d9f
cmp dword [ebp + 0x2c], 0
je 0x409d9f
push 0
mov ecx, dword [ebp + 0x2c]
push ecx
mov edx, dword [ebp + 0x28]
push edx
mov eax, dword [ebp - 0x1b8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp + 0x28]
add ecx, dword [ebp + 0x2c]
mov byte [ecx], 0
mov edx, dword [ebp + 0x28]
push edx
lea eax, [ebp - 0x5bc]
push eax
call sub.MSVCR90.dll_strcat
add esp, 8
lea ecx, [ebp - 0x5bc]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
shl eax, 2
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov edx, dword [ebp + 0x30]
mov dword [edx], eax
lea eax, [ebp - 0x5bc]
push eax
mov ecx, dword [ebp + 0x30]
mov edx, dword [ecx]
push edx
call sub.MSVCR90.dll_strcpy
add esp, 8
lea eax, [ebp - 0xaec]
push eax
mov ecx, dword [ebp - 0xd31c]
call fcn.00409600
mov dword [ebp - 0xaf0], 0
mov dword [ebp - 0xad8], 0
cmp dword [ebp - 0xad8], 0
jne 0x409ea8
push 0
push 1
lea ecx, [ebp - 0xd2f4]
push ecx
mov edx, dword [ebp - 0x1b8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xadc], eax
cmp dword [ebp - 0xadc], 0
jge 0x409e39
mov dword [ebp - 0xad8], 1
mov al, byte [ebp - 0xd2f4]
mov byte [ebp - 0xd324], al
cmp byte [ebp - 0xd324], 0xa
je 0x409e5b
cmp byte [ebp - 0xd324], 0xd
je 0x409e59
jmp 0x409e7a
jmp 0x409e89
cmp dword [ebp - 0xaf0], 0
jne 0x409e6e
mov dword [ebp - 0xad8], 1
mov dword [ebp - 0xaf0], 0
jmp 0x409e89
mov ecx, dword [ebp - 0xaf0]
add ecx, 1
mov dword [ebp - 0xaf0], ecx
movzx edx, byte [ebp - 0xd2f4]
push edx
lea eax, [ebp - 0xaec]
push eax
mov ecx, dword [ebp - 0xd31c]
call fcn.004098a0
jmp 0x409dfb
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp - 0xaec]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0xae8]
mov byte [eax], 0
lea ecx, [ebp - 0xd300]
push ecx
mov ecx, dword [ebp - 0xd31c]
call fcn.00409600
push 0
push 0xc7ff
lea edx, [ebp - 0xd2f4]
push edx
mov eax, dword [ebp - 0x1b8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xadc], eax
cmp dword [ebp - 0xadc], 0
jge 0x409efb
jmp 0x409f32
mov ecx, dword [ebp - 0xadc]
mov byte [ebp + ecx - 0xd2f4], 0
mov edx, dword [ebp - 0xadc]
push edx
lea eax, [ebp - 0xd2f4]
push eax
lea ecx, [ebp - 0xd300]
push ecx
mov ecx, dword [ebp - 0xd31c]
call fcn.00409840
cmp dword [ebp - 0xadc], 0
jg 0x409ecf
mov edx, dword [ebp - 0xd2fc]
mov byte [edx], 0
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp - 0xd300]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xd2fc]
sub edx, dword [ebp - 0xd300]
mov eax, dword [ebp + 0x30]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0xd300]
push ecx
mov edx, dword [ebp - 0xd31c]
add edx, 4
push edx
call sub.MSVCR90.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x1b8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0xd318], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0xd318]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406942
mov esp, ebp
pop ebp
ret 0x2c