Function at 0x140050921
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x60], xmm6
mov qword [rbp + 0x58], 0xfffffffffffffffe
test rcx, rcx
je 0x140050fcd
mov rbx, rcx
cmp byte [rcx], 0
je 0x140050fcd
mov edi, r9d
mov r13, r8
mov rsi, rdx
test r9b, r9b
je 0x140050a0a
cmp dword [0x1401af27c], 0
jle 0x140050a2e
lea r14, [rbp - 0x50]
mov qword [r14], 0
lea rax, [fcn.14004f360]
mov qword [rsp + 0x20], rax
lea rdx, str.third_partyglogglog_0.3.4_srclogging.cc
mov rcx, r14
mov r8d, 0x6ae
xor r9d, r9d
call fcn.14004ee2e
mov ecx, 0x7538
add rcx, qword [r14 + 8]
lea rdx, str.Trying_to_send_TITLE:
call fcn.14000345f
mov rcx, rax
mov rdx, rsi
call fcn.14000345f
lea rdx, str._BODY:
mov rcx, rax
call fcn.14000345f
mov rcx, rax
mov rdx, r13
call fcn.14000345f
lea rdx, [0x1401463ac]
mov rcx, rax
call fcn.14000345f
mov rcx, rax
mov rdx, rbx
call fcn.14000345f
lea rcx, [rbp - 0x50]
call fcn.14004f988
jmp 0x140050a2e
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov qword [rsp + 0x20], rbx
lea rdx, str.Trying_to_send_TITLE:__s_BODY:__s_to__s_n
mov rcx, rax
mov r8, rsi
mov r9, r13
call fcn.140014500
mov qword [rbp - 0x28], rsi
mov byte [rbp + 0x57], dil
mov rsi, qword [0x14019f8a8]
mov rdi, qword [rsi + 0x10]
mov rax, rdi
shr rax, 2
movabs rcx, 0x1fffffffffffffff
cmp rax, rcx
je 0x140050fed
mov r14, qword [rsi]
mov r12, qword [rsi + 0x18]
mov qword [rbp - 0x10], 0
lea r15, [rdi + 4]
cmp r15, 0x10
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], r13
jb 0x140050aa7
mov rax, r15
or rax, 0xf
js 0x140050ab3
cmp rax, 0x17
mov r13d, 0x16
cmovae r13, rax
lea rcx, [r13 + 1]
cmp r13, 0xfff
jae 0x140050ac7
call fcn.1400e7770
jmp 0x140050acc
mov r13d, send
lea rbx, [rbp - 0x10]
jmp 0x140050ad3
movabs r13, 0x7fffffffffffffff
movabs rcx, 0x8000000000000000
call fcn.1400014ce
mov rbx, rax
mov qword [rbp - 0x10], rax
cmp r12, 0x10
cmovae rsi, r14
mov qword [rbp], r15
mov qword [rbp + 8], r13
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [rbx + rdi], 0x22732d20
mov byte [rbx + rdi + 4], 0
mov rsi, qword [rbp - 0x28]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [rbp]
mov rbx, qword [rbp + 8]
mov rdx, rbx
sub rdx, rcx
cmp rdx, rax
jae 0x140050b3d
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x10]
mov rdx, rax
mov r9, rsi
call fcn.1400022ee
mov r15, qword [rbp - 0x20]
mov r12, qword [rbp - 0x18]
mov rsi, rax
jmp 0x140050b74
mov rdi, rax
add rdi, rcx
lea rsi, [rbp - 0x10]
mov qword [rsi + 0x10], rdi
mov r14, rsi
cmp rbx, 0x10
mov r15, qword [rbp - 0x20]
mov r12, qword [rbp - 0x18]
jb 0x140050b60
mov r14, qword [rbp - 0x10]
add rcx, r14
mov rdx, qword [rbp - 0x28]
mov r8, rax
call sub.VCRUNTIME140.dll_memmove
mov byte [r14 + rdi], 0
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x10], xmm0
movaps xmm6, xmmword [section..rdata]
movups xmmword [rsi + 0x10], xmm6
mov byte [rsi], 0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jae 0x140050bc5
mov qword [rsp + 0x20], 2
lea r9, [0x140146f45]
lea rcx, [rbp + 0x10]
mov edx, 2
call fcn.1400022ee
jmp 0x140050be9
lea rbx, [rcx + 2]
lea rax, [rbp + 0x10]
mov qword [rax + 0x10], rbx
mov rbx, rax
cmp rdx, 0x10
jb 0x140050bde
mov rbx, qword [rbp + 0x10]
mov word [rbx + rcx], 0x2022
mov byte [rbx + rcx + 2], 0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp + 0x40], xmm1
movaps xmmword [rbp + 0x30], xmm0
movups xmmword [rax + 0x10], xmm6
mov byte [rax], 0
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [rbp + 0x40]
mov rbx, qword [rbp + 0x48]
mov rdx, rbx
sub rdx, rcx
cmp rdx, rax
jae 0x140050c33
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x30]
mov rdx, rax
mov r9, r15
call fcn.1400022ee
mov rsi, rax
jmp 0x140050c61
mov rdi, rax
add rdi, rcx
lea rsi, [rbp + 0x30]
mov qword [rsi + 0x10], rdi
mov r14, rsi
cmp rbx, 0x10
jb 0x140050c4e
mov r14, qword [rbp + 0x30]
add rcx, r14
mov rdx, r15
mov r8, rax
call sub.VCRUNTIME140.dll_memmove
mov byte [r14 + rdi], 0
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x50], xmm0
movups xmmword [rsi + 0x10], xmm6
mov byte [rsi], 0
mov rax, qword [rbp + 0x48]
cmp rax, 0x10
jb 0x140050cb6
mov rcx, qword [rbp + 0x30]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140050cb1
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140050ff2
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.1400e7768
movaps xmmword [rbp + 0x40], xmm6
mov byte [rbp + 0x30], 0
mov rax, qword [rbp + 0x28]
cmp rax, 0x10
jb 0x140050cfd
mov rcx, qword [rbp + 0x10]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140050cf8
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140050ff7
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.1400e7768
movaps xmmword [rbp + 0x20], xmm6
mov byte [rbp + 0x10], 0
mov rax, qword [rbp + 8]
cmp rax, 0x10
jb 0x140050d44
mov rcx, qword [rbp - 0x10]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140050d3f
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140050ffc
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.1400e7768
cmp qword [rbp - 0x38], 0x10
jb 0x140050d51
mov rcx, qword [rbp - 0x50]
jmp 0x140050d55
lea rcx, [rbp - 0x50]
lea rdx, [0x140139f9b]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__popen
mov rbx, rax
test rax, rax
je 0x140050e86
test r12, r12
je 0x140050d8d
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov edx, 1
mov rcx, r12
mov r8, rax
mov r9, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__pclose
mov sil, 1
cmp eax, 0xffffffff
jne 0x140050f8d
cmp byte [rbp + 0x57], 0
je 0x140050f0a
lea rcx, [rbp + 0x10]
mov qword [rcx], 0
lea rax, [fcn.14004f360]
mov qword [rsp + 0x20], rax
lea rdx, str.third_partyglogglog_0.3.4_srclogging.cc
mov r8d, 0x6bf
mov r9d, 2
call fcn.14004ee2e
mov ecx, 0x7538
add rcx, qword [rbp + 0x18]
lea rdx, str.Problems_sending_mail_to
call fcn.14000345f
mov rcx, rax
mov rdx, r15
call fcn.14000345f
lea rdx, [0x140146f00]
mov rcx, rax
call fcn.14000345f
mov rsi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov edx, dword [rax]
lea rdi, [rbp + 0x30]
mov rcx, rdi
call fcn.14005089a
mov r8, qword [rbp + 0x40]
cmp qword [rbp + 0x48], 0x10
jb 0x140050e2e
mov rdi, qword [rbp + 0x30]
mov rcx, rsi
mov rdx, rdi
call fcn.140004e8c
mov rax, qword [rbp + 0x48]
cmp rax, 0x10
jb 0x140050e78
mov rcx, qword [rbp + 0x30]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140050e73
mov rdi, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rdi
cmp rcx, 0x20
jae 0x14005100b
add rax, 0x28
mov rdx, rax
mov rcx, rdi
call fcn.1400e7768
lea rcx, [rbp + 0x10]
call fcn.14004f988
jmp 0x140050f8b
cmp byte [rbp + 0x57], 0
je 0x140050ee9
lea rcx, [rbp + 0x30]
mov qword [rcx], 0
lea rax, [fcn.14004f360]
mov qword [rsp + 0x20], rax
lea rdx, str.third_partyglogglog_0.3.4_srclogging.cc
mov r8d, 0x6c9
mov r9d, 2
call fcn.14004ee2e
mov ecx, 0x7538
add rcx, qword [rbp + 0x38]
lea rdx, str.Unable_to_send_mail_to
call fcn.14000345f
mov rcx, rax
mov rdx, r15
call fcn.14000345f
lea rcx, [rbp + 0x30]
call fcn.14004f988
jmp 0x140050f8d
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Unable_to_send_mail_to__s_n
mov rcx, rax
mov r8, r15
call fcn.140014500
jmp 0x140050f8d
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov edx, dword [rax]
lea rsi, [rbp + 0x30]
mov rcx, rsi
call fcn.14005089a
mov r14, qword [rbp + 0x30]
mov rdi, qword [rbp + 0x48]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
cmp rdi, 0x10
cmovae rsi, r14
lea rdx, str.Problems_sending_mail_to__s:__s_n
mov rcx, rax
mov r8, r15
mov r9, rsi
call fcn.140014500
mov rax, qword [rbp + 0x48]
cmp rax, 0x10
jb 0x140050f8b
mov rcx, qword [rbp + 0x30]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140050f86
mov rdi, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rdi
cmp rcx, 0x20
jae 0x140051006
add rax, 0x28
mov rdx, rax
mov rcx, rdi
call fcn.1400e7768
xor esi, esi
mov rax, qword [rbp - 0x38]
cmp rax, 0x10
jb 0x140050fc8
mov rcx, qword [rbp - 0x50]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140050fc3
mov rdi, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rdi
cmp rcx, 0x20
jae 0x140051001
add rax, 0x28
mov rdx, rax
mov rcx, rdi
call fcn.1400e7768
test rbx, rbx
jne 0x140050fcf
xor esi, esi
and sil, 1
mov eax, esi
movaps xmm6, xmmword [rbp + 0x60]
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.1400014b7
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3