Function at 0x1400645c0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140090040]
xor rax, rsp
mov qword [rbp + 0x158], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rbp + 0x90], rdx
mov rax, qword [rdx]
mov rdx, qword [rax + 0x30]
mov rdx, qword [rdx]
lea rcx, [rbp + 0x118]
call fcn.1400425f0
lea rdx, [0x1400901c8]
cmp qword [0x1400901e0], 0xf
cmova rdx, qword [0x1400901c8]
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140064630
mov rax, qword [rax]
cmp r8, qword [0x1400901d8]
jne 0x140064649
mov rcx, rax
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140064649
mov bl, 1
jmp 0x14006464b
xor bl, bl
mov rdx, qword [rbp + 0x130]
cmp rdx, 0xf
jbe 0x14006468f
inc rdx
mov rcx, qword [rbp + 0x118]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006468a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006468a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072800
test bl, bl
je 0x1400649a8
lea rcx, [rbp + 0x138]
call fcn.14004c3f0
nop
mov rbx, qword [rdi]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x38], xmm0
xor edi, edi
mov qword [rbp + 0x48], rdi
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
xor r8d, r8d
lea rdx, [0x14007832f]
lea rcx, [rbp - 0x38]
call fcn.14006ec60
nop
lea rax, [rbp + 0x28]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x28], xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
lea r8d, [rdi + 0x28]
lea rdx, [0x1400807b8]
lea rcx, [rbp - 0x58]
call fcn.14006ec60
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
lea r8d, [rdi + 0xa]
lea rdx, str.image_jpeg
lea rcx, [rbp - 0x78]
call fcn.14006ec60
nop
lea r8, [rbp - 0x78]
lea rdx, [rbp + 0x138]
lea rcx, [rbp + 0xa8]
call qword [sym.imp.TgBot.dll_public:_static_class_std::shared_ptr_class_TgBot::InputFile____cdecl_TgBot::InputFile::fromFile_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64_]
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x70], xmm0
mov rcx, qword [rax]
mov qword [rbp + 0x70], rcx
mov rcx, qword [rax + 8]
mov qword [rbp + 0x78], rcx
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov dword [rbp + 0x68], edi
mov rax, qword [rsi]
mov rcx, qword [rax + 0x30]
mov rax, qword [rcx]
mov qword [rbp + 0xd0], rax
mov dword [rbp + 0xc8], edi
mov byte [rsp + 0x68], dil
mov dword [rsp + 0x60], edi
mov byte [rsp + 0x58], dil
mov byte [rsp + 0x50], dil
lea rax, [rbp + 0x38]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], dil
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x68]
lea r8, [rbp + 0xc8]
lea rdx, [rbp + 0x98]
lea rcx, [rbx + 0x20]
call qword [sym.imp.TgBot.dll__sendPhoto_Api_TgBot__QEBA_AV__shared_ptr_VMessage_TgBot___std__V__variant__JV__basic_string_DU__char_traits_D_s]
lea ebx, [rdi - 1]
mov rdi, qword [rbp + 0xa0]
test rdi, rdi
je 0x140064811
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140064811
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x140064811
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rdi, qword [rbp + 0xb0]
test rdi, rdi
je 0x140064847
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140064847
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x140064847
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140064885
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064880
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064880
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072800
movdqa xmm0, xmmword [0x140082770]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x1400648d4
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400648cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400648cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072800
movdqa xmm0, xmmword [0x140082770]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140064923
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006491e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006491e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072800
movdqa xmm0, xmmword [0x140082770]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
lea rcx, [rbp + 0x38]
call fcn.14006c9b0
lea rcx, [rbp + 0x138]
cmp qword [rbp + 0x150], 0xf
cmova rcx, qword [rbp + 0x138]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
nop
mov rdx, qword [rbp + 0x150]
cmp rdx, 0xf
jbe 0x140064b59
inc rdx
mov rcx, qword [rbp + 0x138]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006499e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006499e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072800
jmp 0x140064b59
mov rbx, qword [rdi]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
xor edi, edi
mov qword [rbp + 0x60], rdi
movups xmmword [rbp + 8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x18], xmm1
xor r8d, r8d
lea rdx, [0x14007832f]
lea rcx, [rbp + 8]
call fcn.14006ec60
nop
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 8], xmm1
lea r8d, [rdi + 0x1b]
lea rdx, [0x140080580]
lea rcx, [rbp - 0x18]
call fcn.14006ec60
nop
mov rax, qword [rsi]
mov rcx, qword [rax + 0x30]
mov rax, qword [rcx]
mov qword [rbp + 0xf8], rax
mov dword [rbp + 0xf0], edi
mov dword [rsp + 0x60], edi
mov byte [rsp + 0x58], dil
mov byte [rsp + 0x50], dil
lea rax, [rbp + 0x50]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], dil
lea rax, [rbp + 8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov byte [rsp + 0x20], dil
lea r9, [rbp - 0x18]
lea r8, [rbp + 0xf0]
lea rdx, [rbp + 0xb8]
lea rcx, [rbx + 0x20]
call qword [sym.imp.TgBot.dll__sendMessage_Api_TgBot__QEBA_AV__shared_ptr_VMessage_TgBot___std__V__variant__JV__basic_string_DU__char_traits_D]
lea ebx, [rdi - 1]
mov rdi, qword [rbp + 0xc0]
test rdi, rdi
je 0x140064ab1
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140064ab1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x140064ab1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x140064aef
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064aea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064aea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072800
movdqa xmm0, xmmword [0x140082770]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x140064b3e
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064b39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064b39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072800
movdqa xmm0, xmmword [0x140082770]
movdqu xmmword [rbp + 0x18], xmm0
mov byte [rbp + 8], 0
lea rcx, [rbp + 0x50]
call fcn.14006c9b0
nop
mov rdi, qword [rsi + 8]
test rdi, rdi
je 0x140064b89
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140064b89
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x140064b89
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, qword [rbp + 0x158]
xor rcx, rsp
call fcn.140072580
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret