Function at 0x180084d00
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsi + 0x1178], eax
je 0x180084d62
mov qword [rsi + 0x1140], 0x3f3
xor r15d, r15d
mov dword [rsi + 0x1148], r15d
xor eax, eax
jmp 0x1800852e0
cmp qword [rsi + 0x1150], 0
je 0x180084d5b
mov qword [rsi + 0x1170], r14
xor r15d, r15d
mov dword [rsi + 0x1158], r15d
mov qword [rsi + 8], r15
mov rax, qword [rsi + 0x10]
mov word [rax], r15w
mov rax, qword [rsi + 0x20]
mov word [rax], r15w
mov qword [rsi + 0x30], r15
mov dword [rsi + 0x38], r15d
mov qword [rsi + 0x1140], r15
mov dword [rsi + 0x1148], r15d
xor eax, eax
mov qword [rsi + 0x1120], rax
mov dword [rsi + 0x1128], eax
mov dword [rsi + 0x84], r15d
mov rdx, rbx
lea rcx, [rsi + 0x98]
call fcn.180083e40
lea rcx, [rsi + 0x98]
call fcn.180084230
lea rdx, str.MEMORY_
mov rcx, qword [rsi + 0x98]
call fcn.18023c1c0
mov ecx, r15d
test eax, eax
sete cl
mov dword [rsi + 0x115c], ecx
mov qword [rbp + 0xf], r15
mov dword [rbp + 0x17], r15d
mov edx, 0x12c
lea rcx, [rbp + 0xf]
call fcn.180083d40
mov rax, qword [rbp + 0xf]
mov word [rax], r15w
mov qword [rbp - 0x21], r15
mov dword [rbp - 0x19], r15d
mov edx, 0x12c
lea rcx, [rbp - 0x21]
call fcn.180083d40
mov rax, qword [rbp - 0x21]
mov word [rax], r15w
lea edx, [r15 + 0x5c]
mov rcx, qword [rdi]
call fcn.1802328bc
mov rbx, rax
test rax, rax
jne 0x180084e7c
xor edx, edx
lea rcx, [rbp + 0xf]
call fcn.180083d40
xor r8d, r8d
lea rdx, [0x1802abc2c]
mov r14, qword [rbp + 0xf]
mov rcx, r14
call fcn.18023d394
mov word [r14], r15w
mov rdx, rdi
lea rcx, [rbp - 0x21]
call fcn.180083e40
jmp 0x180084eb9
add rbx, 2
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.180083de0
mov rdi, qword [rdi]
sub rbx, rdi
sar rbx, 1
mov edx, ebx
lea rcx, [rbp + 0xf]
call fcn.180083d40
mov ebx, ebx
mov r8d, ebx
mov rdx, rdi
mov r14, qword [rbp + 0xf]
mov rcx, r14
call fcn.18023d394
mov word [r14 + rbx*2], r15w
mov rcx, qword [rsi + 0x98]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x180084ec4
cmp eax, dword [rsi + 0xa0]
jb 0x180084ef2
lea rax, str.The_string_has_no_terminating_null_character_
mov qword [rbp + 0x67], rax
lea rdx, [0x18032e358]
lea rcx, [rbp + 0x67]
call fcn.180232de8
int3
mov rdi, qword [rbp - 0x21]
cmp eax, 3
jb 0x1800852ba
or rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], 0
jne 0x180084f03
cmp eax, dword [rbp + 0x17]
jb 0x180084f2f
lea rax, str.The_string_has_no_terminating_null_character_
mov qword [rbp + 0x67], rax
lea rdx, [0x18032e358]
lea rcx, [rbp + 0x67]
call fcn.180232de8
int3
cmp eax, 2
jb 0x1800852ba
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x180084f40
cmp eax, dword [rbp - 0x19]
jb 0x180084f6b
lea rax, str.The_string_has_no_terminating_null_character_
mov qword [rbp + 0x67], rax
lea rdx, [0x18032e358]
lea rcx, [rbp + 0x67]
call fcn.180232de8
int3
cmp eax, 2
jb 0x1800852ba
mov rax, qword [rsi + 0xa8]
mov word [rax], r15w
lea rcx, [rbp - 1]
call fcn.180083a20
nop
lea rcx, [rbp - 0x11]
call fcn.180083a20
nop
mov rax, qword [rbp - 0x11]
mov byte [rax], 0
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], 0
jne 0x180084fa0
shl eax, 2
mov edx, eax
lea rcx, [rbp - 0x11]
call fcn.180083af0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov eax, dword [rbp - 9]
mov dword [rsp + 0x28], eax
mov r13, qword [rbp - 0x11]
mov qword [rsp + 0x20], r13
or r9d, 0xffffffff
mov r8, r14
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rcx, eax
mov byte [rcx + r13], 0
mov rax, qword [rbp - 1]
mov byte [rax], 0
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x180085000
shl eax, 2
mov edx, eax
lea rcx, [rbp - 1]
call fcn.180083af0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov eax, dword [rbp + 7]
mov dword [rsp + 0x28], eax
mov r12, qword [rbp - 1]
mov qword [rsp + 0x20], r12
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rcx, eax
mov byte [rcx + r12], 0
mov rax, qword [rbp + 0x7f]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
lea rax, [0x180085490]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, r13
mov rdx, r12
mov rcx, qword [rsi + 0x1150]
call qword [rsi + 0x1190]
test eax, eax
je 0x180085260
nop word [rax + rax]
mov rcx, qword [rsi + 0xa8]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1800850a0
cmp eax, dword [rsi + 0xb0]
jae 0x180085244
test eax, eax
je 0x180085260
mov rdi, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x1800850c5
cmp ebx, dword [rsi + 0xb0]
jae 0x180085228
mov edx, ebx
lea rcx, [rbp - 0x21]
call fcn.180083d40
mov ebx, ebx
mov r8d, ebx
mov rdx, rdi
mov rdi, qword [rbp - 0x21]
mov rcx, rdi
call fcn.18023d394
mov word [rdi + rbx*2], r15w
mov rcx, r13
call fcn.180085310
nop
mov rcx, r12
call fcn.180085310
mov rax, qword [rsi + 0xa8]
mov word [rax], r15w
lea rcx, [rbp - 1]
call fcn.180083a20
nop
lea rcx, [rbp - 0x11]
call fcn.180083a20
nop
mov rax, qword [rbp - 0x11]
mov byte [rax], 0
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x180085140
shl eax, 2
mov edx, eax
lea rcx, [rbp - 0x11]
call fcn.180083af0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov eax, dword [rbp - 9]
mov dword [rsp + 0x28], eax
mov r13, qword [rbp - 0x11]
mov qword [rsp + 0x20], r13
or r9d, 0xffffffff
mov r8, r14
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rcx, eax
mov byte [rcx + r13], 0
mov rax, qword [rbp - 1]
mov byte [rax], 0
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x1800851a0
shl eax, 2
mov edx, eax
lea rcx, [rbp - 1]
call fcn.180083af0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov eax, dword [rbp + 7]
mov dword [rsp + 0x28], eax
mov r12, qword [rbp - 1]
mov qword [rsp + 0x20], r12
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rcx, eax
mov byte [rcx + r12], 0
mov rax, qword [rbp + 0x7f]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
lea rax, [0x180085490]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, r13
mov rdx, r12
mov rcx, qword [rsi + 0x1150]
call qword [rsi + 0x1190]
test eax, eax
jne 0x180085090
jmp 0x180085260
lea rax, str.The_string_has_no_terminating_null_character_
mov qword [rbp + 0x67], rax
lea rdx, [0x18032e358]
lea rcx, [rbp + 0x67]
call fcn.180232de8
int3
lea rax, str.The_string_has_no_terminating_null_character_
mov qword [rbp + 0x67], rax
lea rdx, [0x18032e358]
lea rcx, [rbp + 0x67]
call fcn.180232de8
nop
mov rcx, r13
call fcn.180085310
nop
mov rcx, r12
call fcn.180085310
mov rdx, qword [rsi + 8]
mov rcx, rsi
call fcn.180085980
cmp dword [rsi + 0x1158], 0
je 0x180085297
cmp qword [rsi + 8], 0
je 0x180085297
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [rsi + 0x1128], 0
jne 0x1800852cc
cmp dword [rsi + 0x1144], 0
jne 0x1800852cc
cmp dword [rsi + 0x1140], 0
jne 0x1800852cc
mov r15d, 1
jmp 0x1800852cc
mov qword [rsi + 0x1140], 0x3ea
mov dword [rsi + 0x1148], r15d
mov rcx, rdi
call fcn.180085310
nop
mov rcx, r14
call fcn.180085310
mov eax, r15d
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret