Function at 0x401ff0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406d47
push eax
mov eax, 0x184c
mov dword fs:[0], esp
call fcn.00406ad0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xac]
mov ecx, dword [eax]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
cmp ecx, eax
je 0x402357
xor ebx, ebx
lea ecx, [ecx]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov edi, 0xe
mov eax, str.__qwertyuiop_r_n
lea esi, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.00403aa0
push 0x29
mov eax, str.Content_Type:_application_octet_stream__r_n
mov ecx, esi
call fcn.00403470
push 7
mov eax, str._name_
mov ecx, esi
call fcn.00403470
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 8]
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x402080
sub ecx, esi
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403470
push 1
mov eax, 0x4073f4
lea ecx, [ebp - 0x30]
call fcn.00403470
push 2
mov eax, 0x4072cc
lea ecx, [ebp - 0x30]
call fcn.00403470
push 0x23
mov eax, str.Content_Transfer_Encoding:_base64_r_n
lea ecx, [ebp - 0x30]
call fcn.00403470
push 0x22
mov eax, str.Content_Disposition:_attachment__r_n
lea ecx, [ebp - 0x30]
call fcn.00403470
push 0xb
mov eax, str._filename_
lea ecx, [ebp - 0x30]
call fcn.00403470
mov eax, dword [edi + 8]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4020e5
sub ecx, esi
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403470
push 1
mov eax, 0x4073f4
lea ecx, [ebp - 0x30]
call fcn.00403470
push 2
mov eax, 0x4072cc
lea ecx, [ebp - 0x30]
call fcn.00403470
push 2
mov eax, 0x4072cc
lea ecx, [ebp - 0x30]
call fcn.00403470
mov eax, dword [ebp - 0x30]
mov esi, 0x10
cmp dword [ebp - 0x1c], esi
jae 0x402134
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x4c0]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [edi + 8]
sub ecx, 0xffffff80
push ecx
lea edx, [ebp - 0xe4]
push edx
call fcn.00402780
mov byte [ebp - 4], 1
cmp dword [ebp - 0x80], ebx
je 0x40236c
push 0x1770
lea eax, [ebp - 0x1854]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x1770
lea ecx, [ebp - 0x1854]
push ecx
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
and al, 6
movsx edx, al
neg edx
sbb edx, edx
not edx
test ecx, edx
je 0x40225e
jmp 0x4021c0
lea eax, [ebp - 0x1854]
push eax
mov ecx, 0x1770
call fcn.004012f0
mov esi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4021d6
sub eax, edx
mov byte [eax + esi], 0xd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4021e8
sub eax, edx
mov byte [eax + esi], 0xa
mov eax, esi
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402200
push ebx
sub eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4c0]
push eax
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push ebx
push 0x1770
lea eax, [ebp - 0x1854]
push eax
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 0xc]
add ecx, eax
and dl, 6
movsx eax, dl
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x4021c0
lea ecx, [ebp - 0x1854]
push ecx
mov ecx, dword [ebp - 0xdc]
call fcn.004012f0
mov esi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402275
sub eax, edx
mov byte [eax + esi], 0xd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402287
sub eax, edx
mov byte [eax + esi], 0xa
mov eax, esi
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4022a0
mov edx, dword [ebp + 8]
push ebx
sub eax, ecx
push eax
mov eax, dword [edx + 0x4c0]
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4022c1
sub ecx, edi
cmp eax, ecx
jne 0x4023e1
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x7c]
add esp, 4
mov dword [ebp - 0x34], ecx
mov dword [ebp + eax - 0xe4], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 4
call fcn.00402860
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 4]
mov eax, dword [sym.imp.MSVCP100.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
lea ecx, [ebp - 0x7c]
mov dword [ebp + edx - 0xe4], eax
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0x10
jb 0x402340
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
cmp eax, dword [ecx + 0xac]
jne 0x402030
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x7c]
mov dword [ebp + 8], edx
mov dword [ebp + ecx - 0xe4], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 2
call fcn.00402860
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0xe4]
mov ecx, dword [sym.imp.MSVCP100.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xe4], ecx
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [ebp - 0x1c], esi
jb 0x4023c9
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x7c]
mov dword [ebp + 8], eax
mov dword [ebp + edx - 0xe4], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 3
call fcn.00402860
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
mov edx, dword [sym.imp.MSVCP100.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov dword [ebp + ecx - 0xe4], edx
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [ebp - 0x1c], 0x10
jb 0x40243f
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4