Function at 0x18000b400
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
test rdx, rdx
je 0x18000b681
cmp word [rdx], 0
je 0x18000b681
mov rcx, qword [rcx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x18000b448
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x380]
xor r12d, r12d
test rcx, rcx
je 0x18000b463
call fcn.1800626bc
mov qword [rdi + 0x380], r12
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x18000b477
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rsp + 0x98], r12
mov rax, qword [rbx]
lea r8, [rsp + 0x98]
lea rdx, [0x1800d86d8]
mov rcx, rbx
call qword [rax]
mov esi, eax
test eax, eax
js 0x18000b660
cmp eax, 1
je 0x18000b660
mov rcx, qword [rsp + 0x98]
test rcx, rcx
jne 0x18000b4c9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov eax, 0x80004005
jmp 0x18000b686
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x88], r12d
mov rax, qword [rcx]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x40]
call qword [rax + 0x38]
test eax, eax
jne 0x18000b63c
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x18000b63c
movabs rcx, 0x20000000000
cmp rax, rcx
jae 0x18000b63c
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 1]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x18000b571
call fcn.1800030e0
mov edi, eax
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x18000b561
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
mov eax, edi
jmp 0x18000b686
mov dword [rdi + 0x24], r12d
mov dword [rdi + 0x78], 2
mov dword [rdi + 0x370], 0x80000
mov dword [rdi + 0x374], 0x400
mov dword [rdi + 0x378], 0x200
mov rax, qword [rsp + 0x40]
add rax, 0x1ff
and rax, 0xfffffffffffffe00
mov qword [rdi + 0x30], rax
mov rdx, rbx
mov rcx, rdi
call fcn.18000b6a0
mov esi, eax
test eax, eax
js 0x18000b5ff
cmp eax, 1
je 0x18000b5ff
mov r8, qword [rsp + 0x40]
mov edx, dword [rsp + 0x88]
mov rcx, rdi
call fcn.180003900
mov edi, eax
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x18000b5ef
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
mov eax, edi
jmp 0x18000b686
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x70], 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x18000b62f
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov eax, esi
jmp 0x18000b686
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x18000b650
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov eax, 0x80004005
jmp 0x18000b686
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x18000b674
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov eax, esi
jmp 0x18000b686
mov eax, 0x80070057
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret