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

Disassembly:
push 0xffffffffffffffff
push 0x40770b
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.004042f0
test al, al
jne 0x404446
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 0x404453
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 0x404495
mov ecx, esi
call fcn.00404340
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 0x4044cd
mov ecx, esi
call fcn.00404340
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 0x404529
mov ecx, esi
call fcn.00404340
jmp 0x404539
push 0x40a1a4
mov ecx, esi
call fcn.00404370
test al, al
jne 0x40455f
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 0x40a140
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 0x4045a9
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 0x4045cb
mov ecx, esi
call fcn.00404340
mov ecx, dword [esp + 0x10]
jmp 0x4045df
push 0x40a198
mov ecx, esi
call fcn.00404370
mov ecx, dword [esp + 0x10]
test al, al
jne 0x404659
cmp ecx, ebx
je 0x4045ff
mov al, byte [ecx - 1]
cmp al, bl
je 0x4045f5
cmp al, 0xff
je 0x4045f5
dec al
mov byte [ecx - 1], al
jmp 0x4045ff
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 0x404643
mov al, byte [ecx - 1]
cmp al, bl
je 0x404639
cmp al, 0xff
je 0x404639
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 0x404679
mov al, byte [ecx - 1]
cmp al, bl
je 0x40466f
cmp al, 0xff
je 0x40466f
dec al
mov byte [ecx - 1], al
jmp 0x404679
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 0x4046a9
mov al, byte [ecx - 1]
cmp al, bl
je 0x40469f
cmp al, 0xff
je 0x40469f
dec al
mov byte [ecx - 1], al
jmp 0x4046a9
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