Function at 0x4101a0
Capabilities:
Connect socket
Resolve dns
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x4141bb
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41c404]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x41c404]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x54], ebx
call fcn.00410130
test al, al
je 0x41021e
cmp dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x60]
jae 0x4101f1
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [esi + 0x198], eax
cmp eax, ebx
jne 0x410237
mov eax, dword [esi + 4]
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x410370
mov edx, dword [eax + 0xc]
cmp dword [edx], ebx
je 0x410202
xor eax, eax
lea edi, [esi + 0x19c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x78]
mov edx, 2
push eax
mov word [edi], dx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x198]
mov word [esi + 0x19e], ax
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov edx, dword [esi + 4]
mov ecx, dword [eax]
push 0x10
push edi
push edx
mov dword [esi + 0x1a0], ecx
call dword [sym.imp.WS2_32.dll_connect]
or edi, 0xffffffff
mov ecx, esi
cmp eax, edi
jne 0x4102ae
call fcn.0040fc60
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x410370
push 0x417798
call fcn.0040fc80
test al, al
je 0x410299
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x14]
push str.HELO
push ecx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x417720
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x6c], 1
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x18
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x410308
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov edx, dword [esi + 4]
push ebx
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, esi
cmp eax, edi
jne 0x410344
call fcn.0040fc60
mov byte [esp + 0x54], bl
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x410370
push 0x41778c
call fcn.0040fc80
mov byte [esp + 0x54], bl
lea ecx, [esp + 0x2c]
test al, al
je 0x41032c
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], edi
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 al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00411bf6
add esp, 0x48
ret 0x20