Function at 0x14002161d
Capabilities:
Delete file

Disassembly:
jmp 0x140057780
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x30]
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x1e0]
mov qword [rbp + 0x68], rax
call fcn.14002188e
mov rax, qword [rax + 0x20]
add rax, 0x38
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x1f0]
mov rcx, qword [rax + 0x28]
call fcn.140021357
mov qword [rbp + 0x1b8], rax
mov rcx, qword [rbp + 0x1f0]
mov rcx, qword [rcx + 0x30]
call fcn.140021357
mov rcx, qword [rbp + 0x1b8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x88]
movzx ecx, word [rcx]
lea rax, [rcx + rax*2 + 0x40]
mov qword [rbp + 0xa8], rax
mov dword [rbp + 0xe4], 0
movzx eax, byte [rbp + 0x1e8]
test eax, eax
je 0x1400579a3
mov rcx, qword [rbp + 0x68]
call fcn.140021f14
test eax, eax
jne 0x140057852
mov ecx, 0x54f
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
xor eax, eax
jmp 0x140057a7c
mov rcx, qword [rbp + 0xa8]
call fcn.1400212f3
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x14005799e
mov rax, qword [rbp + 0x88]
movzx eax, word [rax]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 0xc4]
mov ecx, dword [rbp + 0xc4]
mov r9d, eax
mov rax, qword [rbp + 0x88]
mov r8, qword [rax + 8]
mov edx, ecx
mov rcx, qword [rbp + 0x48]
call fcn.1400217d0
nop
lea rdx, [0x140071de8]
mov rcx, qword [rbp + 0x48]
call fcn.140021fbe
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x1f0]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rbp + 0x48]
call fcn.140021fbe
nop
mov rax, qword [rbp + 0x1f0]
mov r8d, dword [rax + 0x38]
mov rdx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x10]
call fcn.14002152d
test eax, eax
je 0x140057994
xor eax, eax
mov rcx, qword [rbp + 0x28]
mov word [rcx], ax
mov rax, qword [rbp + 0x1f0]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rbp + 0x48]
call fcn.140021fbe
nop
mov rax, qword [rbp + 0x1f0]
mov r8d, dword [rax + 0x3c]
mov rdx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x10]
call fcn.14002152d
test eax, eax
je 0x140057994
mov rax, qword [rbp + 0x1f0]
add rax, 8
mov rcx, qword [rbp + 0x1f0]
mov rdx, qword [rbp + 0x1f0]
mov edx, dword [rdx + 0x4c]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov rax, qword [rbp + 0x1f0]
mov r8d, dword [rax + 0x48]
mov rax, qword [rbp + 0x1f0]
mov rdx, qword [rax + 0x40]
mov rcx, qword [rbp + 0x48]
call fcn.140021933
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140057994
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xe4], eax
mov rcx, qword [rbp + 0x48]
call fcn.140021ac8
nop
jmp 0x140057a6c
mov rcx, qword [rbp + 0xa8]
call fcn.1400212f3
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140057a6c
mov rax, qword [rbp + 0x88]
movzx eax, word [rax]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 0xc4]
mov ecx, dword [rbp + 0xc4]
mov r9d, eax
mov rax, qword [rbp + 0x88]
mov r8, qword [rax + 8]
mov edx, ecx
mov rcx, qword [rbp + 0x48]
call fcn.1400217d0
nop
lea rdx, [0x140071de8]
mov rcx, qword [rbp + 0x48]
call fcn.140021fbe
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x1f0]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rbp + 0x48]
call fcn.140021fbe
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
xor eax, eax
mov rcx, qword [rbp + 0x28]
mov word [rcx], ax
mov rax, qword [rbp + 0x1f0]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rbp + 0x48]
call fcn.140021fbe
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rcx, qword [rbp + 0x48]
call fcn.140021ac8
nop
mov dword [rbp + 4], 1
mov ecx, dword [rbp + 0xe4]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret