Function at 0x140020609
Capabilities:
Delete file

Disassembly:
jmp 0x140055500
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, [0x140097c3a]
call fcn.140021040
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x1e0]
mov qword [rbp + 0x68], rax
call fcn.140020870
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.140020352
mov qword [rbp + 0x1b8], rax
mov rcx, qword [rbp + 0x1f0]
mov rcx, qword [rcx + 0x30]
call fcn.140020352
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 0x14005571d
mov rcx, qword [rbp + 0x68]
call fcn.140020eec
test eax, eax
jne 0x1400555d0
mov ecx, 0x54f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400557ef
mov rcx, qword [rbp + 0xa8]
call fcn.1400202ee
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140055718
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.1400207b7
lea rdx, [0x14006ede8]
mov rcx, qword [rbp + 0x48]
call fcn.140020f96
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x1f0]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rbp + 0x48]
call fcn.140020f96
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.14002051e
test eax, eax
je 0x14005570f
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.140020f96
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.14002051e
test eax, eax
je 0x14005570f
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.140020915
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x14005570f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xe4], eax
mov rcx, qword [rbp + 0x48]
call fcn.140020aaa
jmp 0x1400557e0
mov rcx, qword [rbp + 0xa8]
call fcn.1400202ee
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x1400557e0
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.1400207b7
lea rdx, [0x14006ede8]
mov rcx, qword [rbp + 0x48]
call fcn.140020f96
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x1f0]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rbp + 0x48]
call fcn.140020f96
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
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.140020f96
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbp + 0x48]
call fcn.140020aaa
mov dword [rbp + 4], 1
mov ecx, dword [rbp + 0xe4]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret