Function at 0x403220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov eax, 0x1970
call fcn.00419070
mov eax, dword [0x425064]
xor eax, esp
mov dword [esp + 0x196c], eax
mov eax, dword [esp + 0x1974]
push ebx
push ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1980]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1984]
push esi
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
test eax, eax
je 0x40373e
test ecx, ecx
je 0x40373e
mov al, byte [0x433cac]
cmp al, 0x30
jl 0x403295
cmp al, 0x39
jg 0x403295
push 0x433cac
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4032af
jmp 0x40373e
push 0x433cac
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40373e
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edi, dword [eax]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x403740
mov ecx, 2
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
push 0x19
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov dword [esp + 0x30], edi
mov word [esp + 0x2c], cx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x2c]
push edx
push esi
mov word [esp + 0x36], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x403737
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x800
lea eax, [esp + 0x180]
push eax
push esi
call ebx
test eax, eax
je 0x403737
cmp eax, 0xffffffff
je 0x403737
cmp dword [esp + 0x178], 0x20303232
jne 0x403737
push str.EHLO_MailSender_r_n
lea edx, [esp + 0x17c]
call fcn.00403ab0
lea eax, [esp + 0x17c]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403363
mov ebp, dword [sym.imp.WS2_32.dll_send]
sub eax, edx
push 0
mov edi, eax
push edi
lea ecx, [esp + 0x180]
push ecx
push esi
call ebp
cmp eax, 0xffffffff
je 0x403737
cmp eax, edi
jl 0x403737
push 0
push 0x800
lea edx, [esp + 0x180]
push edx
push esi
call ebx
test eax, eax
je 0x403737
cmp eax, 0xffffffff
je 0x403737
mov eax, dword [esp + 0x178]
cmp al, 0x32
jne 0x403737
cmp ah, 0x35
jne 0x403737
cmp byte [esp + 0x17a], 0x30
jne 0x403737
push 0x42d874
push str.AUTH_PLAIN__s_r_n
lea edx, [esp + 0x180]
call fcn.00403ab0
lea eax, [esp + 0x180]
add esp, 8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403400
sub eax, edx
push 0
mov edi, eax
push edi
lea eax, [esp + 0x180]
push eax
push esi
call ebp
cmp eax, 0xffffffff
je 0x403737
cmp eax, edi
jl 0x403737
push 0
push 0x800
lea ecx, [esp + 0x180]
push ecx
push esi
call ebx
test eax, eax
je 0x403737
cmp eax, 0xffffffff
je 0x403737
cmp dword [esp + 0x178], 0x20353332
jne 0x403737
push 0x433c94
push str.MAIL_FROM:__s_r_n
lea edx, [esp + 0x180]
call fcn.00403ab0
lea eax, [esp + 0x180]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403481
sub eax, edx
push 0
mov edi, eax
push edi
lea edx, [esp + 0x180]
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x403737
cmp eax, edi
jl 0x403737
push 0
push 0x800
lea eax, [esp + 0x180]
push eax
push esi
call ebx
test eax, eax
je 0x403737
cmp eax, 0xffffffff
je 0x403737
mov ebx, 0x20303532
cmp dword [esp + 0x178], ebx
jne 0x403737
push 0x433c94
push str.RCPT_TO:___s__r_n
lea edx, [esp + 0x180]
call fcn.00403ab0
lea eax, [esp + 0x180]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403503
sub eax, edx
push 0
mov edi, eax
push edi
lea ecx, [esp + 0x180]
push ecx
push esi
call ebp
cmp eax, 0xffffffff
je 0x403737
cmp eax, edi
jl 0x403737
push 0
push 0x800
lea edx, [esp + 0x180]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x403737
cmp eax, 0xffffffff
je 0x403737
cmp dword [esp + 0x178], ebx
jne 0x403737
push str.DATA_r_n
lea edx, [esp + 0x17c]
call fcn.00403ab0
lea eax, [esp + 0x17c]
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403580
sub eax, edx
push 0
mov edi, eax
push edi
lea eax, [esp + 0x180]
push eax
push esi
call ebp
cmp eax, 0xffffffff
je 0x403737
cmp eax, edi
jl 0x403737
push 0
push 0x800
lea ecx, [esp + 0x180]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x403737
cmp eax, 0xffffffff
je 0x403737
cmp dword [esp + 0x178], 0x20343533
jne 0x403737
push 0x7ff
lea edx, [esp + 0x117d]
push 0
push edx
mov byte [esp + 0x1184], 0
call fcn.004119c0
add esp, 0xc
lea ebx, [esp + 0x38]
call fcn.004016d0
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403611
sub eax, edx
push eax
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x1180]
lea edi, [esp + 0x40]
call fcn.00401750
lea ecx, [esp + 0x18]
push ecx
call fcn.0040d051
lea edx, [esp + 0x18]
push edx
call fcn.0040d051
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x1180]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
push 0x433c94
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
push str.Message_ID:___x_x_MailSender__r_nFrom:___s____s__r_nTo:___s__r_nSubject:__s_r_nMIME_Version:_1.0_r_nContent_Type:_multipart_alternative__boundary_MailSender_Boundary__r_n_r_nThis_is_a_multi_part_message_in_MIME_format._r_n_r_n__MailSender_Boundary_r_nContent_Type:_text_html__r_nContent_Transfer_Encoding:_base64_r_n_r_n_s_r_n_r_n__MailSender_Boundary___r_n_r_n._r_n
lea edx, [esp + 0x1a0]
call fcn.00403ab0
lea eax, [esp + 0x1a0]
add esp, 0x28
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403688
sub eax, ecx
push 0
mov edi, eax
push edi
lea eax, [esp + 0x180]
push eax
push esi
call ebp
cmp eax, 0xffffffff
je 0x403737
cmp eax, edi
jl 0x403737
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x800
lea ecx, [esp + 0x180]
push ecx
push esi
call edi
test eax, eax
je 0x403737
cmp eax, 0xffffffff
je 0x403737
cmp dword [esp + 0x178], 0x20303532
jne 0x403737
push str.QUIT_r_n
lea edx, [esp + 0x17c]
call fcn.00403ab0
lea eax, [esp + 0x17c]
add esp, 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403700
push 0
sub eax, edx
push eax
lea edx, [esp + 0x180]
push edx
push esi
call ebp
push 0
push 0x800
lea eax, [esp + 0x180]
push eax
push esi
call edi
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
jmp 0x403740
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov ecx, dword [esp + 0x197c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bd50
add esp, 0x1970
ret 0xc