Function at 0x180017330
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa8
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov rax, qword [0x180083008]
xor rax, rsp
mov qword [rbp + 7], rax
mov qword [rbp - 0x49], r9
mov qword [rbp - 0x41], r8
mov r12, rdx
mov r13, rcx
xor r15d, r15d
mov dword [rbp - 0x59], r15d
lea ecx, [r15 + 0x60]
call fcn.18004d044
mov rbx, rax
mov qword [rbp - 0x51], rax
mov dword [rax + 8], r15d
mov qword [rax + 0x10], 0xffffffffffffffff
lea rax, [0x180077788]
mov qword [rbx], rax
lea r14, [rbx + 0x20]
mov qword [r14 + 0x18], 7
mov qword [r14 + 0x10], r15
mov word [r14], r15w
lea rsi, [rbx + 0x40]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r15
mov word [rsi], r15w
mov dword [rbx + 0x18], r15d
lea rax, [rbp - 0x59]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x29], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov rdx, qword [r12]
mov rcx, rbx
call fcn.180023200
mov edi, eax
test eax, eax
jne 0x180017637
cmp qword [r13 + 0x100], r15
je 0x1800174a3
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x1800174a3
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x20]
mov edi, eax
test eax, eax
jne 0x180017637
lea ecx, [rax + 0x18]
call fcn.18004d044
mov rsi, rax
mov qword [rbp - 0x39], rax
mov dword [rax + 8], r15d
lea rax, [0x180076e98]
mov qword [rsi], rax
mov qword [rsi + 0x10], r15
mov qword [rbp - 0x39], rsi
mov rcx, rsi
call fcn.1800044e0
nop
mov rax, qword [r13 + 0x100]
mov qword [rbp - 0x51], rax
mov rax, qword [rsi]
mov qword [rsp + 0x28], r15
lea rcx, [rbp - 0x51]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x51]
mov r8, rbx
mov rdx, qword [r13 + 0x38]
mov rcx, rsi
call qword [rax + 0x18]
mov edi, eax
mov rcx, rsi
test eax, eax
mov rax, qword [rsi]
je 0x180017497
call qword [rax + 0x10]
lea rsi, [rbx + 0x40]
jmp 0x180017637
call qword [rax + 0x10]
lea rsi, [rbx + 0x40]
jmp 0x1800175ee
mov rcx, qword [r12 + 0x38]
test rcx, rcx
je 0x1800175ee
mov rdx, rbx
call fcn.180019fe0
mov edi, eax
test eax, eax
jne 0x180017637
cmp qword [r12 + 0x40], 0
jne 0x1800174de
cmp qword [r12 + 0x48], 0
jne 0x1800174de
cmp dword [r12 + 0x50], eax
je 0x1800175ee
mov rcx, qword [rbx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x1800174f6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0xffffffffffffffff
mov qword [rbp - 1], 7
mov qword [rbp - 9], r15
mov word [rbp - 0x19], r15w
mov edx, 0x40
mov ecx, 0x20
cmp qword [rbx + 0x50], 0
cmove edx, ecx
add rdx, rbx
lea rax, [rbp - 0x19]
cmp rax, rdx
je 0x180017540
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x19]
call fcn.18000e760
cmp qword [rbp - 1], 8
mov rdx, qword [rbp - 0x19]
jae 0x180017544
lea rdx, [rbp - 0x19]
mov r8, qword [r12 + 0x40]
call fcn.1800315d0
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
mov r8, qword [r12 + 0x48]
call fcn.1800319a0
cmp dword [r12 + 0x50], 0
je 0x180017581
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
call fcn.180031b60
cmp qword [rbx + 0x30], 0
jne 0x18001758f
mov edi, 0x80004005
jmp 0x1800175da
cmp qword [rbx + 0x50], 0
jne 0x1800175a7
cmp qword [r14 + 0x18], 8
jb 0x1800175a2
mov rdx, qword [r14]
jmp 0x1800175b4
mov rdx, r14
jmp 0x1800175b4
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1800175b4
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.180023140
mov edi, eax
test eax, eax
jne 0x1800175da
mov rax, qword [rbx]
xor r9d, r9d
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [rax + 0x20]
mov edi, eax
test eax, eax
je 0x1800175e5
lea rcx, [rbp - 0x19]
call fcn.18000ece0
jmp 0x180017637
lea rcx, [rbp - 0x19]
call fcn.18000ece0
mov rax, qword [rbx]
lea r9, [r13 + 0x100]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rbx
call qword [rax + 0x20]
mov edi, eax
test eax, eax
jne 0x180017637
mov rax, qword [rbp - 0x49]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9, r12
mov r8, qword [r13 + 0x100]
mov rdx, rbx
mov rcx, r13
call fcn.180016e40
mov edi, eax
test eax, eax
je 0x1800176a6
cmp dword [rbx + 0x18], 0
je 0x180017647
mov rcx, rbx
call fcn.180023450
jmp 0x180017691
mov rcx, qword [rbx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x180017694
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0xffffffffffffffff
cmp qword [rbx + 0x50], 0
jne 0x180017672
cmp qword [r14 + 0x18], 8
jb 0x18001767f
mov r14, qword [r14]
jmp 0x18001767f
cmp qword [rsi + 0x18], 8
jb 0x18001767c
mov rsi, qword [rsi]
mov r14, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180017694
call fcn.18000ebe0
mov r15d, eax
mov dword [rbp - 0x59], r15d
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
nop
mov eax, edi
jmp 0x1800176eb
mov rcx, qword [r13 + 0x30]
test rcx, rcx
je 0x1800176b9
mov qword [r13 + 0x30], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x1800176cc
mov qword [r13 + 0x38], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
mov dword [rbx + 0x18], 1
mov rcx, rbx
call fcn.180023450
mov dword [rbp - 0x59], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov eax, dword [rbp - 0x59]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.18004d010
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret