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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4072f3
mov eax, dword fs:[0]
push eax
mov eax, 0x1850
call fcn.00406fc0
mov eax, dword [0x40b018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x17a4], eax
mov eax, dword [eax + 0xac]
mov ecx, dword [eax]
mov dword [ebp - 0x17a8], ecx
cmp ecx, eax
je 0x402434
xor ebx, ebx
jmp 0x4020c0
mov dword [ebp - 0x178c], 0xf
mov dword [ebp - 0x1790], ebx
mov byte [ebp - 0x17a0], bl
mov edi, 0xe
mov eax, str.__qwertyuiop_r_n
lea esi, [ebp - 0x17a0]
mov dword [ebp - 4], ebx
call fcn.00403b50
push 0x29
mov eax, str.Content_Type:_application_octet_stream__r_n
mov ecx, esi
call fcn.00403530
push 7
mov eax, str._name_
mov ecx, esi
call fcn.00403530
mov edi, dword [ebp - 0x17a8]
mov eax, dword [edi + 8]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x402118
sub ecx, esi
push ecx
lea ecx, [ebp - 0x17a0]
call fcn.00403530
push 1
mov eax, 0x4083e4
lea ecx, [ebp - 0x17a0]
call fcn.00403530
push 2
mov eax, 0x4082bc
lea ecx, [ebp - 0x17a0]
call fcn.00403530
push 0x23
mov eax, str.Content_Transfer_Encoding:_base64_r_n
lea ecx, [ebp - 0x17a0]
call fcn.00403530
push 0x22
mov eax, str.Content_Disposition:_attachment__r_n
lea ecx, [ebp - 0x17a0]
call fcn.00403530
push 0xb
mov eax, str._filename_
lea ecx, [ebp - 0x17a0]
call fcn.00403530
mov eax, dword [edi + 8]
mov ecx, eax
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x402190
sub ecx, esi
push ecx
lea ecx, [ebp - 0x17a0]
call fcn.00403530
push 1
mov eax, 0x4083e4
lea ecx, [ebp - 0x17a0]
call fcn.00403530
push 2
mov eax, 0x4082bc
lea ecx, [ebp - 0x17a0]
call fcn.00403530
push 2
mov eax, 0x4082bc
lea ecx, [ebp - 0x17a0]
call fcn.00403530
mov eax, dword [ebp - 0x17a0]
mov esi, 0x10
cmp dword [ebp - 0x178c], esi
jae 0x4021f4
lea eax, [ebp - 0x17a0]
mov ecx, dword [ebp - 0x1790]
mov edx, dword [ebp - 0x17a4]
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 - 0x185c]
push edx
call fcn.00402890
mov byte [ebp - 4], 1
cmp dword [ebp - 0x17f8], ebx
je 0x402454
push 0x1770
lea eax, [ebp - 0x1784]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x1770
lea ecx, [ebp - 0x1784]
push ecx
lea ecx, [ebp - 0x185c]
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 0x402321
mov edi, edi
lea eax, [ebp - 0x1784]
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 0x402296
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 0x4022a8
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 0x4022c0
push ebx
sub eax, ecx
mov ecx, dword [ebp - 0x17a4]
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 - 0x1784]
push eax
lea ecx, [ebp - 0x185c]
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 0x402280
lea ecx, [ebp - 0x1784]
push ecx
mov ecx, dword [ebp - 0x1854]
call fcn.004012f0
mov esi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402338
sub eax, edx
mov byte [eax + esi], 0xd
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402350
sub eax, edx
mov byte [eax + esi], 0xa
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402362
mov edx, dword [ebp - 0x17a4]
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 0x402386
sub ecx, edi
cmp eax, ecx
jne 0x4024ca
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov edx, dword [ebp - 0x185c]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x17f4]
add esp, 4
mov dword [ebp - 0x17ac], ecx
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x184c]
mov byte [ebp - 4], 4
call fcn.00402980
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x185c]
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 - 0x17f4]
mov dword [ebp + edx - 0x185c], 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 - 0x178c], 0x10
jb 0x402414
mov ecx, dword [ebp - 0x17a0]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp - 0x17a8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x17a4]
mov dword [ebp - 0x17a8], eax
cmp eax, dword [ecx + 0xac]
jne 0x4020c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040663a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x185c]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x17f4]
mov dword [ebp - 0x17ac], edx
mov dword [ebp + ecx - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x184c]
mov byte [ebp - 4], 2
call fcn.00402980
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0x185c]
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 - 0x185c], ecx
lea ecx, [ebp - 0x17f4]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [ebp - 0x178c], esi
jb 0x4024c0
mov edx, dword [ebp - 0x17a0]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 4
jmp 0x402436
mov ecx, dword [ebp - 0x185c]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x17f4]
mov dword [ebp - 0x17ac], eax
mov dword [ebp + edx - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x184c]
mov byte [ebp - 4], 3
call fcn.00402980
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x185c]
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 - 0x185c], edx
lea ecx, [ebp - 0x17f4]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [ebp - 0x178c], 0x10
jb 0x402537
mov eax, dword [ebp - 0x17a0]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
jmp 0x402436