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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a3e2
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x42500c]
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 eax, ecx
mov dword [ebp - 0x138], eax
mov esi, dword [eax + 0xd0]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x130], ecx
cmp esi, dword [eax + 0xd4]
je 0x4067f3
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Attachment_is_sending
push 0x40a8e0
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
call fcn.004099a0
push 0xb8
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00408a60
mov byte [ebp - 4], 1
cmp dword [ebp - 0xd0], 0
je 0x40689e
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x5c]
mov byte [ebp - 0x14], 0x5c
cmp edi, 1
jb 0x406455
cmp ebx, 0x10
lea eax, [ebp - 0x5c]
lea edx, [edi - 1]
cmovae eax, ecx
add edx, eax
nop dword [eax]
cmp byte [edx], 0x5c
sete al
test al, al
je 0x406433
mov al, byte [edx]
lea ecx, [ebp - 0x14]
cmp al, byte [ecx]
je 0x406442
lea ecx, [ebp - 0x5c]
call fcn.00408840
cmp edx, eax
je 0x406452
dec edx
jmp 0x406420
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x5c]
cmp ebx, 0x10
cmovae eax, ecx
sub edx, eax
jmp 0x406458
mov ecx, dword [ebp - 0x5c]
or edx, 0xffffffff
cmp edx, 0xffffffff
je 0x40650d
mov byte [ebp - 0x14], 0x5c
cmp edi, 1
jb 0x4064a6
cmp ebx, 0x10
lea edx, [ebp - 0x5c]
cmovae edx, ecx
dec edx
add edx, edi
cmp byte [edx], 0x5c
sete al
test al, al
je 0x406489
mov al, byte [edx]
lea ecx, [ebp - 0x14]
cmp al, byte [ecx]
je 0x406498
lea ecx, [ebp - 0x5c]
call fcn.00408840
cmp edx, eax
je 0x4064a6
dec edx
jmp 0x406476
cmp ebx, 0x10
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
sub edx, eax
jmp 0x4064a9
or edx, 0xffffffff
push edi
lea eax, [edx + 1]
push eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00408800
mov edi, eax
lea eax, [ebp - 0x44]
cmp eax, edi
je 0x4064f3
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x4064d8
inc eax
push eax
push dword [ebp - 0x44]
call fcn.0040a320
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00409d80
mov eax, dword [ebp - 0x13c]
cmp eax, 0x10
jb 0x40651c
inc eax
push eax
push dword [ebp - 0x150]
call fcn.0040a320
jmp 0x40651c
push 7
push str.Log.zip
lea ecx, [ebp - 0x44]
call fcn.004098a0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push 0x3b
push str.___boundary__r_nContent_Type:_application_octet_stream__name
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004098a0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409c90
push 2
push 0x41f1c4
lea ecx, [ebp - 0x2c]
call fcn.00409b70
push 0x2a
push str.Content_Disposition:_attachment__filename
lea ecx, [ebp - 0x2c]
call fcn.00409b70
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409c90
push 2
push 0x41f1c4
lea ecx, [ebp - 0x2c]
call fcn.00409b70
push 0x25
push str.Content_Transfer_Encoding:_base64_r_n_r_n
lea ecx, [ebp - 0x2c]
call fcn.00409b70
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x130]
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
push 2
push 0
push 0
lea ecx, [ebp - 0x12c]
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__::seekg_long_long___int64___int_]
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x12c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
push 0
push 0
push 0
mov edi, dword [eax + 8]
lea ecx, [ebp - 0x12c]
add edi, dword [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__::seekg_long_long___int64___int_]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.file:
push 0x40a8e0
push edi
call fcn.0040a6a0
lea edx, [ebp - 0x5c]
mov ecx, eax
call fcn.0040a910
mov edx, str._t_length:
mov ecx, eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push edi
call fcn.00418db5
add esp, 4
mov ebx, eax
mov eax, edi
lea ecx, [ebp - 0x12c]
cdq
push edx
push eax
push ebx
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__]
lea ecx, [ebp - 0x11c]
call fcn.00409fc0
test eax, eax
jne 0x40667a
push eax
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x12c]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov edx, edi
mov ecx, ebx
call fcn.004061b0
push ebx
mov edi, eax
call fcn.00418db0
add esp, 4
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
cmp byte [edi], 0
jne 0x4066a9
xor ecx, ecx
jmp 0x4066b9
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4066b0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x74]
call fcn.004098a0
push edi
mov byte [ebp - 4], 5
call fcn.00418db0
add esp, 4
lea ecx, [ebp - 0x74]
push 2
push 0x41f1c4
call fcn.00409b70
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x74]
mov edi, dword [ebp - 0x74]
cmp edx, 0x10
cmovae ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4066f1
sub ecx, ebx
lea eax, [ebp - 0x74]
push 0
cmp edx, 0x10
push ecx
cmovae eax, edi
push eax
mov eax, dword [ebp - 0x130]
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x74]
mov edi, dword [ebp - 0x74]
cmp edx, 0x10
mov ebx, eax
cmovae ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x134], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406730
sub ecx, dword [ebp - 0x134]
cmp ebx, ecx
jne 0x406813
cmp edx, 0x10
jb 0x406754
lea eax, [edx + 1]
push eax
push edi
call fcn.0040a320
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
cmp eax, 0x10
jb 0x406778
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.0040a320
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x40679c
inc eax
push eax
push dword [ebp - 0x44]
call fcn.0040a320
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.004089b0
lea ecx, [ebp - 0xbc]
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 eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x4067de
inc eax
push eax
push dword [ebp - 0x5c]
call fcn.0040a320
mov eax, dword [ebp - 0x138]
add esi, 0x18
cmp esi, dword [eax + 0xd4]
jne 0x406370
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.00418d36
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x41f230
push 0x40a8e0
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x406842
inc eax
push eax
push dword [ebp - 0x74]
call fcn.0040a320
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
cmp eax, 0x10
jb 0x406866
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.0040a320
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x40688a
inc eax
push eax
push dword [ebp - 0x44]
call fcn.0040a320
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
jmp 0x4068bb
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x41f170
push 0x40a8e0
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0xbc]
call fcn.004089b0
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x4068e4
inc eax
push eax
push dword [ebp - 0x5c]
call fcn.0040a320
mov eax, 1
jmp 0x4067f5