Function at 0x14004dbd4
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f8]
sub rsp, 0x4c0
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov byte [rsp + 0x30], r9b
mov rsi, r8
mov qword [rbp - 0x60], r8
mov r15, rdx
mov r13, rcx
xor ebx, ebx
mov r12d, ebx
mov dword [rsp + 0x34], ebx
test rdx, rdx
je 0x14004e270
xorps xmm0, xmm0
movss dword [rsp + 0x50], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
xor r8d, r8d
xor edx, edx
call fcn.140035050
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rbx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
movss xmm0, dword [0x140195ba8]
movss dword [rsp + 0x50], xmm0
lea edx, [rbx + 8]
lea rcx, [rsp + 0x50]
call fcn.140032944
mov rdx, r15
lea rcx, [rbp + 0x60]
call fcn.14004e29c
cmp qword [rbp + 0x70], rbx
jne 0x14004dcaf
mov rcx, r15
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1281]
cmp qword [rsi + 0x18], 8
jb 0x14004dca1
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_119]
jmp 0x14004e25b
mov r14, qword [rbp + 0x68]
mov rdi, qword [r14]
cmp rdi, r14
je 0x14004e187
mov rax, qword [rdi + 0x30]
mov cl, byte [rax + 0x40]
add rax, 0x18
neg cl
sbb rdx, rdx
and rdx, rax
lea rcx, [rbp + 0x20]
call fcn.14004e29c
mov rax, qword [rbp + 0x28]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14004e0ea
xor r14d, r14d
xor edx, edx
lea r8d, [rdx + 0x40]
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + 0x10], r14b
lea rax, [rbp - 0x30]
mov qword [rbp - 8], rax
mov rax, qword [rbx + 0x30]
mov cl, byte [rax + 0x40]
add rax, 0x18
neg cl
sbb rdx, rdx
and rdx, rax
jne 0x14004dd2b
mov ecx, 0x15a170d
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_154]
jmp 0x14004dd4a
mov dword [rsp + 0x20], 1
mov r9d, 8
lea r8, str.FilePath
lea rcx, [rbp - 0x30]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_107]
mov qword [rbp + 0x170], r14
mov qword [rbp + 0x178], 7
mov word [rbp + 0x160], r14w
mov al, byte [rbp + 0x10]
neg al
sbb rcx, rcx
lea rax, [rbp - 0x18]
and rcx, rax
lea rdx, [rbp + 0x160]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2736]
lea rcx, [rbp + 0x160]
cmp qword [rbp + 0x178], 8
cmovae rcx, qword [rbp + 0x160]
mov qword [rsp + 0x20], 1
lea r9, [0x1401183ac]
mov rdx, qword [rbp + 0x170]
call fcn.14004f8d0
lea r8, [rax + 1]
or r9, 0xffffffffffffffff
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x180]
call fcn.14000d344
or r12d, 1
mov dword [rsp + 0x34], r12d
lea r8, [rbp + 0x180]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.140032114
mov rax, qword [rbp - 0x70]
mov r14, qword [rsp + 0x58]
cmp rax, r14
jne 0x14004de71
lea rax, [rbp + 0x180]
mov qword [rbp - 0x68], rax
mov r14, qword [r14]
mov r12, qword [r14 + 8]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r8, r12
mov rdx, r14
call fcn.140050328
movabs rcx, 0x3fffffffffffffe
mov rdx, qword [rsp + 0x60]
sub rcx, rdx
cmp rcx, 1
jb 0x14004e160
inc rdx
mov qword [rsp + 0x60], rdx
mov qword [r14 + 8], rax
mov qword [r12], rax
mov r9, qword [rsp + 0x58]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x50]
call fcn.14004fbec
mov rax, qword [rbp - 0x58]
mov r12d, dword [rsp + 0x34]
jmp 0x14004de7c
mov qword [rbp - 0x58], rax
xor r8d, r8d
mov byte [rbp - 0x50], r8b
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14004de8d
lock inc dword [rdx + 8]
mov rdx, qword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
mov qword [rax + 0x30], rcx
mov r14, qword [rax + 0x38]
mov qword [rax + 0x38], rdx
test r14, r14
je 0x14004dede
or eax, 0xffffffff
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x14004dede
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax]
call qword [case.0x140089b1f.8]
or eax, 0xffffffff
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x14004dede
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [case.0x140089b1f.8]
nop
mov rax, qword [rbx + 0x30]
mov cl, byte [rax + 0x40]
add rax, 0x18
neg cl
sbb r14, r14
and r14, rax
mov rcx, r13
call fcn.14004cc20
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
call fcn.14004f198
test al, al
je 0x14004e008
xor edx, edx
lea rcx, [rbp + 0x1d0]
call fcn.140049f90
mov r8b, 1
mov rdx, r14
lea rcx, [rbp + 0x1d0]
call fcn.14004a934
test eax, eax
jne 0x14004df9b
lea rcx, [rbp + 0x1f0]
cmp qword [rbp + 0x208], 8
cmovae rcx, qword [rbp + 0x1f0]
lea r8, [rbp + 0x1a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
xor edx, edx
test eax, eax
je 0x14004df9b
cmp dword [rbp + 0x1a0], 0xffffffff
je 0x14004df9b
mov ecx, dword [rbp + 0x2a0]
mov al, cl
and al, 1
je 0x14004df95
shr ecx, 1
and cl, 1
je 0x14004dffb
lea rcx, [rbp + 0x1d0]
call fcn.140037f08
test al, al
je 0x14004df9b
jmp 0x14004dffb
cmp byte [rsp + 0x30], dl
je 0x14004dffb
mov rcx, r13
call fcn.14004cf18
mov rdx, rax
lea rcx, [rbp + 0x2c0]
call fcn.140049f90
xor r8d, r8d
mov rdx, r14
lea rcx, [rbp + 0x2c0]
call fcn.14004a934
test eax, eax
jne 0x14004dfe5
lea rcx, [rbp + 0x2e0]
cmp qword [rbp + 0x2f8], 8
cmovae rcx, qword [rbp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, r14
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_62]
lea rcx, [rbp + 0x2c0]
call fcn.140037ba4
nop
lea rcx, [rbp + 0x1d0]
call fcn.140037ba4
nop
lea rcx, [rsp + 0x38]
call fcn.14004f204
mov rax, qword [rbp + 0x198]
cmp rax, 8
jb 0x14004e054
lea rax, [rax*2 + 2]
mov rcx, qword [rbp + 0x180]
mov rdx, rcx
cmp rax, 0x1000
jb 0x14004e04e
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14004e16e
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r14d, r14d
mov qword [rbp + 0x190], r14
mov qword [rbp + 0x198], 7
mov word [rbp + 0x180], r14w
mov rax, qword [rbp + 0x178]
cmp rax, 8
jb 0x14004e0b3
lea rax, [rax*2 + 2]
mov rcx, qword [rbp + 0x160]
mov rdx, rcx
cmp rax, 0x1000
jb 0x14004e0ad
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14004e180
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp + 0x170], r14
mov qword [rbp + 0x178], 7
mov word [rbp + 0x160], r14w
lea rcx, [rbp - 0x30]
call fcn.1400181ec
mov rax, qword [rbx]
mov rbx, rax
cmp rax, qword [rbp + 0x28]
jne 0x14004dcee
mov r14, qword [rbp + 0x68]
xor ebx, ebx
cmp qword [rbp + 0x30], rbx
je 0x14004e12f
mov rax, qword [rdi + 0x30]
mov cl, byte [rax + 0x40]
add rax, 0x18
neg cl
sbb rdx, rdx
and rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.14004e29c
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.14004f380
lea rcx, [rbp + 0xe0]
call fcn.14004a880
cmp qword [rbp + 0x30], rbx
jne 0x14004e149
mov rax, qword [rdi + 0x30]
mov cl, byte [rax + 0x40]
add rax, 0x18
neg cl
sbb rcx, rcx
and rcx, rax
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_62]
nop
lea rcx, [rbp + 0x20]
call fcn.14004a880
mov rax, qword [rdi]
mov rdi, rax
cmp rax, r14
jmp 0x14004dcb9
lea rcx, str.list_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
nop word [rax + rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, rsi
lea rcx, [rbp + 0xa0]
call fcn.14004e620
mov r14, qword [rbp + 0xa8]
mov rbx, qword [r14]
cmp rbx, r14
je 0x14004e202
xor esi, esi
cmp byte [rbx + 0x30], sil
je 0x14004e1c3
lea rcx, [rbx + 0x38]
cmp qword [rcx + 0x18], 8
jb 0x14004e1bb
mov rcx, qword [rcx]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_119]
jmp 0x14004e1f3
lea r8, [rbx + 0x10]
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x50]
call fcn.140032114
mov rcx, qword [rsp + 0x58]
cmp qword [rax], rcx
jne 0x14004e1f3
lea rcx, [rbx + 0x38]
cmp qword [rcx + 0x18], 8
jb 0x14004e1ed
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rbx]
mov rbx, rax
cmp rax, r14
jne 0x14004e1a7
mov rsi, qword [rbp - 0x60]
mov rdx, r15
lea rcx, [rbp + 0x120]
call fcn.14004e29c
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.14004f380
lea rcx, [rbp + 0x120]
call fcn.14004a880
xor eax, eax
cmp qword [rbp + 0x70], rax
jne 0x14004e24e
mov rcx, r15
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_62]
cmp qword [rsi + 0x18], 8
jb 0x14004e244
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_119]
nop
lea rcx, [rbp + 0xa0]
call fcn.14004db20
nop
lea rcx, [rbp + 0x60]
call fcn.14004a880
lea rcx, [rsp + 0x50]
call fcn.14004a880
nop
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140107ad0
mov rbx, qword [rsp + 0x518]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret