Function at 0x14001c010
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x240
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rcx
mov qword [rsp + 0x80], rcx
xor edi, edi
mov r15d, edi
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x38], edi
test rdx, rdx
je 0x14001c84c
cmp word [rdx], di
je 0x14001c84c
mov qword [rsp + 0xd8], rdi
mov qword [rsp + 0xe0], 7
mov word [rsp + 0xc8], di
mov r14, 0xffffffffffffffff
mov r8, r14
nop dword [rax]
inc r8
cmp word [rdx + r8*2], di
jne 0x14001c090
lea rcx, [rsp + 0xc8]
call fcn.1400088b0
nop
cmp byte [rsi + 0x140], 0
je 0x14001c4ae
lea rcx, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rcx, qword [rsp + 0xc8]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea r13, [0x14014ce5c]
mov rdx, r13
test rax, rax
cmovne rdx, rax
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xc0], 7
mov word [rsp + 0xa8], di
mov r8, r14
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001c105
lea rcx, [rsp + 0xa8]
call fcn.1400088b0
nop
xor r8d, r8d
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0xa8]
call fcn.140025500
nop
lea rcx, [rsp + 0xa8]
call fcn.140008840
nop
mov r15, rdi
mov qword [rsp + 0xf8], rdi
mov r12d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x100], r12
mov byte [rsp + 0xe8], r15b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x130]
call fcn.1400ec680
lea rcx, [rsp + 0x130]
call fcn.14000e2e0
nop
mov edx, ebx
lea rcx, [rsp + 0x140]
call fcn.14000e580
mov rdx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
test byte [rcx + rdx + 0x10], 6
jne 0x14001c1d6
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x130]
call fcn.140018430
mov r12, qword [rsp + 0x100]
mov r15, qword [rsp + 0xf8]
lea rcx, [rsp + 0x130]
call fcn.14000dbc0
nop
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x34], 7
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x108]
call fcn.14001a4c0
mov r8d, 1
lea rdx, [0x14014925c]
lea rcx, [rsp + 0x60]
call fcn.140008c10
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rsp + 0x34], reloc.WS2_32.dll_ntohs
lea rdx, [rsp + 0xe8]
cmp r12, 0x10
cmovae rdx, qword [rsp + 0xe8]
mov r8, r15
lea rcx, [rsp + 0x40]
call fcn.140008c10
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x98], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x88], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x98], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rsp + 0x34], 0x1f
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xc0], 7
mov word [rsp + 0xa8], di
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x88]
call fcn.14001a690
nop
lea rdx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rdx, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xb8]
lea rcx, [rsp + 0x108]
call fcn.1400088b0
nop
lea rcx, [rsp + 0xa8]
call fcn.140008840
nop
lea rcx, [rsp + 0x88]
call fcn.140008a50
nop
lea rcx, [rsp + 0x40]
call fcn.140008a50
nop
lea rcx, [rsp + 0x60]
call fcn.140008a50
lea rcx, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rcx, qword [rsp + 0xc8]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rdx, r13
test rax, rax
cmovne rdx, rax
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xc0], 7
mov word [rsp + 0xa8], di
mov r8, r14
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001c391
lea rcx, [rsp + 0xa8]
call fcn.1400088b0
mov r15d, 0x3b
lea r8, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae r8, qword [rsp + 0xa8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x108]
call fcn.140025500
nop
lea rcx, [rsp + 0x108]
cmp rcx, rax
je 0x14001c408
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14001c3f7
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.1400088b0
nop
lea rcx, [rsp + 0x40]
call fcn.140008840
nop
lea rcx, [rsp + 0xa8]
call fcn.140008840
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xc8]
call fcn.140024f90
nop
lea r8, [rsp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140025150
nop
lea rcx, [rsp + 0xc8]
cmp rcx, rax
je 0x14001c478
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14001c467
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.1400088b0
nop
lea rcx, [rsp + 0x40]
call fcn.140008840
nop
lea rcx, [rsp + 0x88]
call fcn.140008840
nop
lea rcx, [rsp + 0xe8]
call fcn.140008a50
nop
lea rcx, [rsp + 0x108]
call fcn.140008840
jmp 0x14001c4b5
lea r13, [0x14014ce5c]
lea rbx, [rsi + 8]
cmp qword [rsi + 0xc0], 0
je 0x14001c4db
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.140022bf0
test eax, eax
je 0x14001c83a
xor edx, edx
mov rcx, rsi
call fcn.14001c010
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xc0], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0xa8], 0
lea r12, [rsi + 0x148]
mov qword [rsp + 0x108], r12
mov edx, 0xffffffff
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete cl
mov byte [rsp + 0x30], cl
test eax, eax
jne 0x14001c53e
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [r12 + 8], rax
movzx ecx, byte [rsp + 0x30]
mov byte [rsp + 0x110], cl
cmp qword [rsi + 0xc0], 0
je 0x14001c59b
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.140022bf0
test eax, eax
jne 0x14001c59b
cmp byte [rsp + 0x30], al
je 0x14001c579
mov qword [r12 + 8], rdi
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
lea rcx, [rsp + 0xa8]
call fcn.140008a50
nop
lea rcx, [rsp + 0xc8]
call fcn.140008840
xor eax, eax
jmp 0x14001c903
lea rax, [rsp + 0xc8]
cmp rbx, rax
je 0x14001c5d2
lea rdx, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rdx, qword [rsp + 0xc8]
mov r8, qword [rsp + 0xd8]
mov rcx, rbx
call fcn.1400088b0
xor ecx, ecx
call fcn.140027840
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ba40]
mov rcx, rax
call fcn.140027a90
cmp dword [rax + 0x40], 0
jle 0x14001c7cc
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140024f90
nop
mov rcx, rax
call fcn.1400250c0
nop
lea rcx, [rsp + 0x40]
call fcn.140008840
nop
lea rbx, [rsi + 8]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001c637
mov rdx, qword [rbx]
lea rcx, [rsi + 0x28]
call fcn.14001e320
cmp qword [rsi + 0xc0], 0
jne 0x14001c697
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001c657
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001c681
mov edx, 0x80
mov rcx, rbx
call fcn.1400262d0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001c67b
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001c68e
mov rdx, qword [rbx]
lea rcx, [rsi + 0x28]
call fcn.14001e320
lea rcx, [rsi + 0x38]
lea rdx, [0x14014caa8]
call fcn.14001eec0
cmp qword [rbx + 0x18], 8
jb 0x14001c6b1
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test rax, rax
cmovne r13, rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], di
inc r14
cmp word [r13 + r14*2], 0
jne 0x14001c6d4
mov r8, r14
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.1400088b0
bts r15d, 7
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140025500
or r15d, 0x40
lea rcx, [rsp + 0x60]
call fcn.140008840
nop
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0x100], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0xe8], 0
bts r15d, 8
mov dword [rsp + 0x34], r15d
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x40]
call fcn.14001a4c0
lea rcx, [rsp + 0xa8]
call fcn.140008a50
movups xmm0, xmmword [rsp + 0xe8]
movups xmmword [rsp + 0xa8], xmm0
movups xmm1, xmmword [rsp + 0xf8]
movups xmmword [rsp + 0xb8], xmm1
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0x100], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0xe8], 0
lea rcx, [rsp + 0xe8]
call fcn.140008a50
nop
lea rcx, [rsp + 0x40]
call fcn.140008840
nop
jmp 0x14001c7cc
cmp byte [rsp + 0x30], 0
je 0x14001c7e2
mov qword [r12 + 8], rdi
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp qword [rsp + 0xb8], 0
je 0x14001c82c
xor ecx, ecx
call fcn.140027840
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ba40]
mov rcx, rax
call fcn.140027a90
mov r9b, 1
mov r8, rsi
lea rdx, [rsp + 0xa8]
mov rcx, rax
call fcn.14001cfb0
nop
lea rcx, [rsp + 0xa8]
call fcn.140008a50
nop
lea rcx, [rsp + 0xc8]
call fcn.140008840
jmp 0x14001c8ff
cmp qword [rcx + 0xc0], rdi
je 0x14001c8ff
lea rbx, [rcx + 0x148]
mov qword [rsp + 0x108], rbx
mov edx, 0xffffffff
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete r15b
test eax, eax
jne 0x14001c88c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rbx + 8], rax
mov byte [rsp + 0x110], r15b
cmp qword [rsi + 0xc0], 0
je 0x14001c8ed
lea r14, [rsi + 0x28]
lea rcx, [r14 + 0x18]
call fcn.1400202e0
test rax, rax
jne 0x14001c8d7
mov rax, qword [r14]
movsxd rcx, dword [rax + 4]
add rcx, r14
mov edx, 6
mov eax, 2
cmp qword [rcx + 0x48], 0
cmovne edx, eax
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.140002130
lea rax, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x14001c8e6
mov rax, qword [rsi + 8]
mov qword [rsi + 0x18], rdi
mov word [rax], di
test r15b, r15b
je 0x14001c8ff
mov qword [rbx + 8], rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400e9d60
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret