Function at 0x407bed
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
mov eax, 0x408a28
call fcn.00408540
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 0x407c29
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x407fda
lea eax, [edi + 0xc]
push eax
call fcn.0040454b
mov esi, dword [ebp + 8]
pop ecx
mov ecx, esi
call fcn.00407a1f
cmp eax, 0xffffffff
je 0x407c4c
mov eax, 0x80
jmp 0x407fda
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 0x407cbe
push dword [esi + 8]
mov ecx, edi
push dword [esi + 4]
call fcn.00407feb
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x407fda
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.0040815d
lea eax, [ebp - 0x510]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x407da5
lea eax, [ebp - 0x510]
push 0x410ffc
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x407da5
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.004080fe
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.0040815d
mov byte [ebp - 4], 3
cmp ebx, dword [ebp - 0x1c]
jge 0x407e44
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.004080fe
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.0040815d
inc ebx
jmp 0x407cf5
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.004080fe
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
mov byte [ebp - 4], 1
call fcn.0040815d
jmp 0x407e26
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x407cbe
and dword [ebp - 4], 0
push str.DATA_r_n
mov ecx, edi
call fcn.004080fe
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.0040815d
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.00407a9e
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.004080fe
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.004080fe
push 5
mov ecx, esi
call fcn.00407a53
test eax, eax
je 0x407ed0
push str.text_plain
mov ecx, edi
call fcn.004082ed
push dword [esi + 0x18]
mov ecx, edi
call fcn.004080fe
push 6
mov ecx, esi
call fcn.00407a53
test eax, eax
je 0x407efa
push str.text_html
mov ecx, edi
call fcn.004082ed
push 6
mov ecx, esi
call fcn.004079e0
push eax
mov ecx, edi
call fcn.004080fe
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.004080fe
push 8
mov ecx, esi
call fcn.00407a53
test eax, eax
je 0x407f4b
push 9
mov ecx, esi
call fcn.004079e0
push 8
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.004079e0
push dword [ebp + 8]
mov ecx, edi
push eax
call fcn.00408328
push 0xa
mov ecx, esi
call fcn.00407a53
test eax, eax
je 0x407f78
push 0xb
mov ecx, esi
call fcn.004079e0
push 0xa
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.004079e0
push dword [ebp + 8]
mov ecx, edi
push eax
call fcn.00408328
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.004080fe
push str._r_n._r_n
mov ecx, edi
call fcn.004080fe
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.0040815d
jmp 0x407fc6
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.004080a8
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