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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406cab
mov eax, dword fs:[0]
push eax
mov eax, 0x187c
call fcn.004069a0
mov eax, dword [0x40a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x179c], ecx
mov eax, dword [ecx + 0x94]
mov esi, dword [eax]
cmp esi, eax
je 0x40396b
nop dword [eax + eax]
mov dword [ebp - 0x1798], 0
mov dword [ebp - 0x1788], 0
mov dword [ebp - 0x1784], 0xf
mov byte [ebp - 0x1798], 0
push 0xe
push str.__qwertyuiop_r_n
lea ecx, [ebp - 0x1798]
mov dword [ebp - 4], 0
call fcn.004014f0
mov edx, dword [ebp - 0x1784]
mov eax, edx
mov ecx, dword [ebp - 0x1788]
sub eax, ecx
push 0x29
push str.Content_Type:_application_octet_stream__r_n
cmp eax, 0x29
jb 0x4032f4
cmp edx, 0x10
lea edi, [ebp - 0x1798]
lea eax, [ecx + 0x29]
cmovae edi, dword [ebp - 0x1798]
add edi, ecx
mov dword [ebp - 0x1788], eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [edi + 0x29], 0
jmp 0x40330e
mov byte [ebp - 0x17a0], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17a0]
push 0x29
call fcn.004057f0
mov edx, dword [ebp - 0x1784]
mov eax, edx
mov ecx, dword [ebp - 0x1788]
sub eax, ecx
push 7
push str._name_
cmp eax, 7
jb 0x403354
cmp edx, 0x10
lea edi, [ebp - 0x1798]
lea eax, [ecx + 7]
cmovae edi, dword [ebp - 0x1798]
add edi, ecx
mov dword [ebp - 0x1788], eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [edi + 7], 0
jmp 0x40336e
mov byte [ebp - 0x17a4], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17a4]
push 7
call fcn.004057f0
mov ecx, dword [esi + 8]
mov ebx, ecx
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x403376
mov edi, dword [ebp - 0x1784]
sub ebx, edx
mov edx, dword [ebp - 0x1788]
mov eax, edi
sub eax, edx
push ebx
push ecx
cmp ebx, eax
ja 0x4033c0
lea eax, [edx + ebx]
cmp edi, 0x10
mov dword [ebp - 0x1788], eax
lea eax, [ebp - 0x1798]
cmovae eax, dword [ebp - 0x1798]
lea edi, [eax + edx]
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [ebx + edi], 0
jmp 0x4033d9
mov byte [ebp - 0x17a8], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17a8]
push ebx
call fcn.004057f0
mov edx, dword [ebp - 0x1784]
mov eax, edx
mov ecx, dword [ebp - 0x1788]
sub eax, ecx
cmp eax, 1
jb 0x40340f
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x1788], eax
lea eax, [ebp - 0x1798]
cmovae eax, dword [ebp - 0x1798]
mov word [eax + ecx], 0x22
jmp 0x403430
push 1
push 0x407554
mov byte [ebp - 0x17ac], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17ac]
push 1
call fcn.004057f0
mov edx, dword [ebp - 0x1784]
mov eax, edx
mov ecx, dword [ebp - 0x1788]
sub eax, ecx
cmp eax, 2
jb 0x40346e
lea eax, [ecx + 2]
cmp edx, 0x10
mov dword [ebp - 0x1788], eax
mov edx, 0xa0d
lea eax, [ebp - 0x1798]
cmovae eax, dword [ebp - 0x1798]
mov word [eax + ecx], dx
mov byte [eax + ecx + 2], 0
jmp 0x40348f
push 2
push 0x407430
mov byte [ebp - 0x17b0], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17b0]
push 2
call fcn.004057f0
mov edx, dword [ebp - 0x1784]
mov eax, edx
mov ecx, dword [ebp - 0x1788]
sub eax, ecx
push 0x23
push str.Content_Transfer_Encoding:_base64_r_n
cmp eax, 0x23
jb 0x4034d5
cmp edx, 0x10
lea edi, [ebp - 0x1798]
lea eax, [ecx + 0x23]
cmovae edi, dword [ebp - 0x1798]
add edi, ecx
mov dword [ebp - 0x1788], eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [edi + 0x23], 0
jmp 0x4034ef
mov byte [ebp - 0x17b4], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17b4]
push 0x23
call fcn.004057f0
mov edx, dword [ebp - 0x1784]
mov eax, edx
mov ecx, dword [ebp - 0x1788]
sub eax, ecx
push 0x22
push str.Content_Disposition:_attachment__r_n
cmp eax, 0x22
jb 0x403535
cmp edx, 0x10
lea edi, [ebp - 0x1798]
lea eax, [ecx + 0x22]
cmovae edi, dword [ebp - 0x1798]
add edi, ecx
mov dword [ebp - 0x1788], eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [edi + 0x22], 0
jmp 0x40354f
mov byte [ebp - 0x17b8], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17b8]
push 0x22
call fcn.004057f0
mov edx, dword [ebp - 0x1784]
mov eax, edx
mov ecx, dword [ebp - 0x1788]
sub eax, ecx
push 0xb
push str._filename_
cmp eax, 0xb
jb 0x403595
cmp edx, 0x10
lea edi, [ebp - 0x1798]
lea eax, [ecx + 0xb]
cmovae edi, dword [ebp - 0x1798]
add edi, ecx
mov dword [ebp - 0x1788], eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [edi + 0xb], 0
jmp 0x4035af
mov byte [ebp - 0x17bc], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17bc]
push 0xb
call fcn.004057f0
mov ecx, dword [esi + 8]
mov ebx, ecx
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4035b7
mov edi, dword [ebp - 0x1784]
sub ebx, edx
mov edx, dword [ebp - 0x1788]
mov eax, edi
sub eax, edx
push ebx
push ecx
cmp ebx, eax
ja 0x403601
lea eax, [edx + ebx]
cmp edi, 0x10
mov dword [ebp - 0x1788], eax
lea eax, [ebp - 0x1798]
cmovae eax, dword [ebp - 0x1798]
lea edi, [eax + edx]
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [ebx + edi], 0
jmp 0x40361a
mov byte [ebp - 0x17c0], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17c0]
push ebx
call fcn.004057f0
mov edx, dword [ebp - 0x1784]
mov eax, edx
mov ecx, dword [ebp - 0x1788]
sub eax, ecx
cmp eax, 1
jb 0x403650
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x1788], eax
lea eax, [ebp - 0x1798]
cmovae eax, dword [ebp - 0x1798]
mov word [eax + ecx], 0x22
jmp 0x403671
push 1
push 0x407554
mov byte [ebp - 0x17c4], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17c4]
push 1
call fcn.004057f0
mov edx, dword [ebp - 0x1784]
mov eax, edx
mov ecx, dword [ebp - 0x1788]
sub eax, ecx
cmp eax, 2
jb 0x4036af
lea eax, [ecx + 2]
cmp edx, 0x10
mov dword [ebp - 0x1788], eax
mov ebx, 0xa0d
lea eax, [ebp - 0x1798]
cmovae eax, dword [ebp - 0x1798]
mov word [eax + ecx], bx
mov byte [eax + ecx + 2], 0
jmp 0x4036d5
push 2
push 0x407430
mov byte [ebp - 0x17c8], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17c8]
push 2
call fcn.004057f0
mov ebx, 0xa0d
mov edx, dword [ebp - 0x1784]
mov eax, edx
mov ecx, dword [ebp - 0x1788]
sub eax, ecx
cmp eax, 2
jb 0x40370e
lea eax, [ecx + 2]
cmp edx, 0x10
mov dword [ebp - 0x1788], eax
lea eax, [ebp - 0x1798]
cmovae eax, dword [ebp - 0x1798]
mov word [eax + ecx], bx
mov byte [eax + ecx + 2], 0
jmp 0x40372f
push 2
push 0x407430
mov byte [ebp - 0x17cc], 0
lea ecx, [ebp - 0x1798]
push dword [ebp - 0x17cc]
push 2
call fcn.004057f0
cmp dword [ebp - 0x1784], 0x10
lea eax, [ebp - 0x1798]
mov ebx, dword [ebp - 0x179c]
cmovae eax, dword [ebp - 0x1798]
push 0
push dword [ebp - 0x1788]
push eax
push dword [ebx + 0x4a4]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x1888]
sub esp, 0xc
sub eax, 0xffffff80
push eax
call fcn.00404810
mov byte [ebp - 4], 1
cmp dword [ebp - 0x182c], 0
je 0x403990
push 0x1770
lea eax, [ebp - 0x1780]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1780]
lea ecx, [ebp - 0x1888]
push 0
push 0x1770
push eax
call dword [sym.imp.MSVCP140.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]
test byte [ecx + eax + 0xc], 6
jne 0x403850
push 0x1770
lea eax, [ebp - 0x1780]
push eax
call fcn.004019f0
mov edi, eax
mov ecx, edi
lea eax, [ecx + 1]
nop dword [eax]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4037e0
sub ecx, eax
mov byte [ecx + edi], 0xd
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4037f2
sub ecx, edx
mov byte [ecx + edi], 0xa
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403804
push 0
sub ecx, edx
push ecx
push edi
push dword [ebx + 0x4a4]
call dword [sym.imp.WS2_32.dll_send]
push edi
call fcn.00405cae
add esp, 4
lea eax, [ebp - 0x1780]
lea ecx, [ebp - 0x1888]
push 0
push 0x1770
push eax
call dword [sym.imp.MSVCP140.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]
test byte [ecx + eax + 0xc], 6
je 0x4037c4
push dword [ebp - 0x1880]
lea eax, [ebp - 0x1780]
push eax
call fcn.004019f0
mov edi, eax
mov edx, edi
lea eax, [edx + 1]
nop dword [eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x403870
sub edx, eax
mov ecx, edi
mov byte [edx + edi], 0xd
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403882
sub ecx, edx
mov byte [ecx + edi], 0xa
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403894
push 0
sub ecx, edx
push ecx
push edi
push dword [ebx + 0x4a4]
call dword [sym.imp.WS2_32.dll_send]
mov edx, edi
lea ebx, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4038b2
sub edx, ebx
cmp eax, edx
jne 0x403989
push edi
call fcn.00405cae
mov eax, dword [ebp - 0x1888]
add esp, 4
mov eax, dword [eax + 4]
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
mov eax, dword [ebp - 0x1888]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x188c], eax
lea ecx, [ebp - 0x1878]
call fcn.00404730
lea ecx, [ebp - 0x1870]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1818]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1784]
cmp edx, 0x10
jb 0x403957
mov ecx, dword [ebp - 0x1798]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40394d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a0b
push edx
push ecx
call fcn.00405c7d
add esp, 8
mov ecx, dword [ebp - 0x179c]
mov esi, dword [esi]
cmp esi, dword [ecx + 0x94]
jne 0x403270
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 - 0x10]
xor ecx, ebp
call fcn.00405c3f
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x403995
mov esi, 4
mov eax, dword [ebp - 0x1888]
mov eax, dword [eax + 4]
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
mov eax, dword [ebp - 0x1888]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x188c], eax
lea ecx, [ebp - 0x1878]
call fcn.00404730
lea ecx, [ebp - 0x1870]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1818]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [ebp - 0x1784]
cmp edx, 0x10
jb 0x403a1b
mov ecx, dword [ebp - 0x1798]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403a11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403a11
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00405c7d
add esp, 8
mov eax, esi
jmp 0x40396d