Function at 0x18009d460
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rax, qword [0x180267080]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, rdx
mov r15, rcx
xor r13d, r13d
mov qword [rbp + 0xf], r13
mov rax, qword [rcx + 8]
mov qword [rbp - 0x51], rax
mov qword [rbp + 0xf], rax
test rax, rax
je 0x18009d4c3
mov rcx, qword [rax]
test rcx, rcx
je 0x18009d4c3
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
test rsi, rsi
je 0x18009d8c7
mov rcx, qword [0x18026f3f0]
test rcx, rcx
je 0x18009d8c7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, rax
mov qword [rbp - 0x59], rax
test rax, rax
je 0x18009d8c7
xor eax, eax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov rdi, r13
mov qword [rbp - 0x29], r13
mov rbx, r13
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], r13
mov rax, qword [rsi]
mov qword [rbp - 0x61], rax
mov eax, dword [rsi + 0x10]
imul eax, dword [rsi + 0x14]
shl eax, 2
mov dword [rbp - 0x65], eax
mov r12d, r13d
cmp dword [rsi + 0x18], r13d
jle 0x18009d685
mov r14d, 0xffffffff
mov rax, qword [rsi + 8]
movzx ecx, word [rax + r13]
lea eax, [rcx + rcx*4]
add eax, eax
mov dword [rbp - 0x69], eax
cmp qword [rbp - 0x19], rbx
je 0x18009d574
mov dword [rbx], eax
add rbx, 4
mov qword [rbp - 0x21], rbx
jmp 0x18009d58c
lea r8, [rbp - 0x69]
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.18000c690
mov rbx, qword [rbp - 0x21]
mov rdx, qword [rbp - 0x59]
xor eax, eax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x28]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.18009c600
nop
mov rdi, qword [rbp - 0x11]
test rdi, rdi
je 0x18009d881
mov rax, qword [rdi]
mov r9, qword [rbp - 0x61]
mov r8d, dword [rsi + 0x14]
mov edx, dword [rsi + 0x10]
mov rcx, rdi
call qword [rax + 0x28]
test al, al
je 0x18009d881
mov rdx, qword [rbp - 0x39]
cmp qword [rbp - 0x31], rdx
je 0x18009d617
xor eax, eax
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18009d609
lock inc dword [rcx + 8]
mov rbx, qword [rbp - 0x21]
mov rcx, qword [rbp - 9]
mov rdi, qword [rbp - 0x11]
mov qword [rdx], rdi
mov qword [rdx + 8], rcx
add qword [rbp - 0x39], 0x10
jmp 0x18009d628
lea r8, [rbp - 0x11]
lea rcx, [rbp - 0x41]
call fcn.18009d9d0
mov rcx, qword [rbp - 9]
movsxd rax, dword [rbp - 0x65]
add qword [rbp - 0x61], rax
test rcx, rcx
je 0x18009d669
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18009d665
mov rbx, qword [rbp - 9]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18009d665
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x21]
inc r12d
add r13, 2
cmp r12d, dword [rsi + 0x18]
mov rdx, qword [rbp - 0x59]
jl 0x18009d551
mov rdi, qword [rbp - 0x29]
xor r13d, r13d
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x68]
mov qword [rbp - 1], r13
mov r14, qword [r15 + 8]
mov qword [rbp - 1], r14
test r14, r14
je 0x18009d6ae
mov rcx, qword [r14]
test rcx, rcx
je 0x18009d6ae
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rsi, qword [r15 + 0x20]
lea rax, [rbp - 0x41]
cmp rsi, rax
je 0x18009d6ed
mov rcx, qword [rsi]
mov rax, qword [rbp - 0x41]
mov qword [rsi], rax
mov qword [rbp - 0x41], rcx
mov rcx, qword [rsi + 8]
mov rax, qword [rbp - 0x39]
mov qword [rsi + 8], rax
mov qword [rbp - 0x39], rcx
mov rcx, qword [rsi + 0x10]
mov rax, qword [rbp - 0x31]
mov qword [rsi + 0x10], rax
mov qword [rbp - 0x31], rcx
mov rsi, qword [r15 + 0x20]
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
sar rax, 4
mov dword [r15 + 0x18], eax
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18009d719
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x38], r13
lea rcx, [rsi + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsi + 0x250]
cmp qword [rcx], 0
je 0x18009d72b
call fcn.1800a05a0
mov rcx, qword [r15 + 0x20]
call fcn.18009f150
nop
test r14, r14
je 0x18009d74c
mov rcx, qword [r14]
test rcx, rcx
je 0x18009d748
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 1], r13
mov qword [rbp + 7], r13
mov rsi, qword [r15 + 8]
mov qword [rbp + 7], rsi
test rsi, rsi
je 0x18009d76c
mov rcx, qword [rsi]
test rcx, rcx
je 0x18009d76c
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [r15 + 0x20]
lea rdx, [rax + 0x18]
lea rcx, [rbp - 0x29]
cmp rdx, rcx
je 0x18009d7aa
mov rax, qword [rdx]
mov qword [rdx], rdi
mov rdi, rax
mov qword [rbp - 0x29], rax
mov rax, qword [rdx + 8]
mov qword [rdx + 8], rbx
mov qword [rbp - 0x21], rax
mov rcx, qword [rdx + 0x10]
mov rax, qword [rbp - 0x19]
mov qword [rdx + 0x10], rax
mov qword [rbp - 0x19], rcx
mov rax, qword [r15 + 0x20]
mov rcx, qword [rax + 0x18]
cmp rcx, qword [rax + 0x20]
je 0x18009d7ba
mov eax, dword [rcx]
mov dword [r15 + 0x14], eax
test rsi, rsi
je 0x18009d7d1
mov rcx, qword [rsi]
test rcx, rcx
je 0x18009d7cd
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp + 7], r13
mov bl, 1
test rdi, rdi
je 0x18009d824
mov rax, qword [rbp - 0x19]
sub rax, rdi
sar rax, 2
lea rdx, [rax*4]
mov rax, rdi
cmp rdx, 0x1000
jb 0x18009d810
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009d914
mov rcx, rdi
call fcn.18017e41c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r13
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x18009d8c9
mov rdx, qword [rbp - 0x39]
call fcn.18009c530
mov rdx, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x41]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009d86e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009d90e
call fcn.18017e41c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r13
jmp 0x18009d8c9
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18009d8b9
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18009d8b9
mov rbx, qword [rbp - 9]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x18009d8b9
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor bl, bl
mov rdi, qword [rbp - 0x29]
xor r13d, r13d
jmp 0x18009d7d3
xor bl, bl
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x18009d8e4
mov rcx, qword [rcx]
test rcx, rcx
je 0x18009d8e0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp + 0xf], r13
movzx eax, bl
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18017df00
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180182c3c
nop
call fcn.180182c3c
int3