Function at 0x407b81
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
mov eax, 0x4089a8
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x698
push ebx
push esi
push edi
lea eax, [ebp - 0x6a0]
mov dword [ebp - 0x10], esp
mov edi, ecx
push eax
push 0x202
mov dword [ebp - 0x14], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x407bbd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x407f6e
lea eax, [edi + 0xc]
push eax
call fcn.0040454b
mov esi, dword [ebp + 8]
pop ecx
mov ecx, esi
call fcn.004079b3
cmp eax, 0xffffffff
je 0x407be0
mov eax, 0x80
jmp 0x407f6e
push dword [esi + 0x20]
call sub.MSVCRT.dll_atoi
xor ebx, ebx
pop ecx
cmp dword [edi + 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
jne 0x407c52
push dword [esi + 8]
mov ecx, edi
push dword [esi + 4]
call fcn.00407f7f
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x407f6e
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.004080f1
lea eax, [ebp - 0x510]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x407d39
lea eax, [ebp - 0x510]
push 0x410e6c
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x407d39
push dword [esi + 0xc]
lea eax, [ebp - 0x410]
push str.MAIL_FROM:__s__r_n
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.00408092
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.004080f1
mov byte [ebp - 4], 3
cmp ebx, dword [ebp - 0x1c]
jge 0x407dd8
push dword [esi + ebx*4 + 0x34]
lea eax, [ebp - 0x410]
push str.RCPT_TO:__s__r_n
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.00408092
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.004080f1
inc ebx
jmp 0x407c89
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x410]
push str.EHLO__s_r_n
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.00408092
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
mov byte [ebp - 4], 1
call fcn.004080f1
jmp 0x407dba
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x407c52
and dword [ebp - 4], 0
push str.DATA_r_n
mov ecx, edi
call fcn.00408092
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.004080f1
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.00407a32
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.00408092
mov ebx, str.______NextPart_001_01C19920.83032BC0
mov eax, str.______NextPart_000_01C19920.83032BC0
push ebx
push eax
push eax
lea eax, [ebp - 0x410]
push str.Content_Type:_multipart_mixed__r_n_tboundary__s__r_n_r_nThis_message_is_in_MIME_format._r_n_r_n___s_r_nContent_Type:_multipart_alternative__r_n_tboundary__s_
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x14
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.00408092
push 5
mov ecx, esi
call fcn.004079e7
test eax, eax
je 0x407e64
push str.text_plain
mov ecx, edi
call fcn.00408281
push dword [esi + 0x18]
mov ecx, edi
call fcn.00408092
push 6
mov ecx, esi
call fcn.004079e7
test eax, eax
je 0x407e8e
push str.text_html
mov ecx, edi
call fcn.00408281
push 6
mov ecx, esi
call fcn.00407974
push eax
mov ecx, edi
call fcn.00408092
push ebx
mov ebx, str._r_n_r_n___s___r_n_r_n
lea eax, [ebp - 0x410]
push ebx
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.00408092
push 8
mov ecx, esi
call fcn.004079e7
test eax, eax
je 0x407edf
push 9
mov ecx, esi
call fcn.00407974
push 8
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00407974
push dword [ebp + 8]
mov ecx, edi
push eax
call fcn.004082bc
push 0xa
mov ecx, esi
call fcn.004079e7
test eax, eax
je 0x407f0c
push 0xb
mov ecx, esi
call fcn.00407974
push 0xa
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00407974
push dword [ebp + 8]
mov ecx, edi
push eax
call fcn.004082bc
push str.______NextPart_000_01C19920.83032BC0
lea eax, [ebp - 0x410]
push ebx
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.00408092
push str._r_n._r_n
mov ecx, edi
call fcn.00408092
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.004080f1
jmp 0x407f5a
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.0040803c
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8