Function at 0x18009d4f0
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 [0x180268080]
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 0x18009d553
mov rcx, qword [rax]
test rcx, rcx
je 0x18009d553
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
test rsi, rsi
je 0x18009d957
mov rcx, qword [0x180270440]
test rcx, rcx
je 0x18009d957
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, rax
mov qword [rbp - 0x59], rax
test rax, rax
je 0x18009d957
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 0x18009d715
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 0x18009d604
mov dword [rbx], eax
add rbx, 4
mov qword [rbp - 0x21], rbx
jmp 0x18009d61c
lea r8, [rbp - 0x69]
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.18000c720
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.18009c690
nop
mov rdi, qword [rbp - 0x11]
test rdi, rdi
je 0x18009d911
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 0x18009d911
mov rdx, qword [rbp - 0x39]
cmp qword [rbp - 0x31], rdx
je 0x18009d6a7
xor eax, eax
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18009d699
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 0x18009d6b8
lea r8, [rbp - 0x11]
lea rcx, [rbp - 0x41]
call fcn.18009da60
mov rcx, qword [rbp - 9]
movsxd rax, dword [rbp - 0x65]
add qword [rbp - 0x61], rax
test rcx, rcx
je 0x18009d6f9
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18009d6f5
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 0x18009d6f5
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 0x18009d5e1
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 0x18009d73e
mov rcx, qword [r14]
test rcx, rcx
je 0x18009d73e
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rsi, qword [r15 + 0x20]
lea rax, [rbp - 0x41]
cmp rsi, rax
je 0x18009d77d
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 0x18009d7a9
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 0x18009d7bb
call fcn.1800a0630
mov rcx, qword [r15 + 0x20]
call fcn.18009f1e0
nop
test r14, r14
je 0x18009d7dc
mov rcx, qword [r14]
test rcx, rcx
je 0x18009d7d8
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 0x18009d7fc
mov rcx, qword [rsi]
test rcx, rcx
je 0x18009d7fc
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 0x18009d83a
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 0x18009d84a
mov eax, dword [rcx]
mov dword [r15 + 0x14], eax
test rsi, rsi
je 0x18009d861
mov rcx, qword [rsi]
test rcx, rcx
je 0x18009d85d
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp + 7], r13
mov bl, 1
test rdi, rdi
je 0x18009d8b4
mov rax, qword [rbp - 0x19]
sub rax, rdi
sar rax, 2
lea rdx, [rax*4]
mov rax, rdi
cmp rdx, 0x1000
jb 0x18009d8a0
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009d9a4
mov rcx, rdi
call fcn.18017ebfc
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r13
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x18009d959
mov rdx, qword [rbp - 0x39]
call fcn.18009c5c0
mov rdx, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x41]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009d8fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009d99e
call fcn.18017ebfc
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r13
jmp 0x18009d959
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18009d949
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18009d949
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 0x18009d949
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 0x18009d863
xor bl, bl
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x18009d974
mov rcx, qword [rcx]
test rcx, rcx
je 0x18009d970
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.18017e6e0
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.18018341c
nop
call fcn.18018341c
int3