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

Disassembly:
push 0xffffffffffffffff
push 0x407d7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x34], ebx
call fcn.00404b10
test al, al
jne 0x404c66
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x404c73
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
mov dword [esi + 0x198], eax
jne 0x404cb5
mov ecx, esi
call fcn.00404b60
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
mov eax, dword [eax + 0xc]
cmp dword [eax], ebx
jne 0x404ced
mov ecx, esi
call fcn.00404b60
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
lea edi, [esi + 0x19c]
xor ecx, ecx
mov edx, edi
mov eax, dword [esp + 0x4c]
push eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov word [edi], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x198]
mov word [esi + 0x19e], ax
push 0x10
push edi
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov edx, dword [esi + 4]
push edx
mov ecx, dword [eax]
mov dword [esi + 0x1a0], ecx
call dword [sym.imp.WS2_32.dll_connect]
or edi, 0xffffffff
cmp eax, edi
jne 0x404d49
mov ecx, esi
call fcn.00404b60
jmp 0x404d59
push 0x40a2c0
mov ecx, esi
call fcn.00404b90
test al, al
jne 0x404d7f
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x1c]
push eax
push str.HELO
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push 0x40a26c
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x4c], 1
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x18
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x404dc9
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
push ebx
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, edi
jne 0x404deb
mov ecx, esi
call fcn.00404b60
mov ecx, dword [esp + 0x10]
jmp 0x404dff
push 0x40a2b4
mov ecx, esi
call fcn.00404b90
mov ecx, dword [esp + 0x10]
test al, al
jne 0x404e79
cmp ecx, ebx
je 0x404e1f
mov al, byte [ecx - 1]
cmp al, bl
je 0x404e15
cmp al, 0xff
je 0x404e15
dec al
mov byte [ecx - 1], al
jmp 0x404e1f
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ebx
cmp ecx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
je 0x404e63
mov al, byte [ecx - 1]
cmp al, bl
je 0x404e59
cmp al, 0xff
je 0x404e59
dec al
pop edi
mov byte [ecx - 1], al
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
cmp ecx, ebx
je 0x404e99
mov al, byte [ecx - 1]
cmp al, bl
je 0x404e8f
cmp al, 0xff
je 0x404e8f
dec al
mov byte [ecx - 1], al
jmp 0x404e99
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ebx
cmp ecx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
je 0x404ec9
mov al, byte [ecx - 1]
cmp al, bl
je 0x404ebf
cmp al, 0xff
je 0x404ebf
dec al
mov byte [ecx - 1], al
jmp 0x404ec9
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14