Function at 0x140052ed0
Capabilities:
Delete file

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x20], 0
lea rcx, [0x1400d0bf0]
call fcn.1400496e0
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x40], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_DefWindowProcW]
xor r9d, r9d
mov r8, qword [rsp + 0xb0]
xor edx, edx
lea rcx, [0x1400d0cd0]
call fcn.140029fb0
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xb0]
mov qword [0x1400d10b0], rax
call fcn.14005a708
mov edx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call fcn.140052a40
mov dword [rsp + 0x60], eax
cmp qword [0x1400d0bc8], 0
je 0x140052f86
mov rcx, qword [0x1400d0bc8]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [0x1400d0bc8], 0
cmp dword [0x1400d0bd0], 0
je 0x140052f94
call fcn.14007f9ac
call fcn.14005b220
lea rcx, [0x1400d0cd0]
call fcn.14002ce00
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [0x1400d0be0], 0
jne 0x140052fc0
lea rcx, [0x1400d0bf0]
call fcn.140046470
lea rax, [0x1400d0bf0]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14001f7c0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
cmp dword [rax - 8], 0
jne 0x140052ff4
mov dword [rsp + 0x30], 1
jmp 0x140052ffc
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0
jne 0x140053018
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, [0x1400d0bf0]
add rax, 8
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14001f7c0
mov eax, dword [rsp + 0x20]
or eax, 2
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x48]
cmp dword [rax - 8], 0
jne 0x140053050
mov dword [rsp + 0x34], 1
jmp 0x140053058
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x34], 0
jne 0x140053074
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, [0x1400d0bf0]
add rax, 0x10
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14001f7c0
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x28]
call fcn.1400203e0
nop
lea rcx, [rsp + 0x50]
call fcn.1400202f0
mov rax, qword [rsp + 0x28]
cmp dword [rax - 8], 0
jne 0x1400530d0
mov dword [rsp + 0x38], 1
jmp 0x1400530d8
mov dword [rsp + 0x38], 0
cmp dword [rsp + 0x38], 0
jne 0x1400530fa
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, [0x1400d0bf0]
add rax, 0x18
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14001f7c0
mov eax, dword [rsp + 0x20]
or eax, 8
mov dword [rsp + 0x20], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x28]
call fcn.1400203e0
nop
lea rcx, [rsp + 0x58]
call fcn.1400202f0
mov rax, qword [rsp + 0x28]
cmp dword [rax - 8], 0
jne 0x14005315c
mov dword [rsp + 0x3c], 1
jmp 0x140053164
mov dword [rsp + 0x3c], 0
cmp dword [rsp + 0x3c], 0
jne 0x140053187
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x48]
call fcn.1400202f0
nop
lea rcx, [rsp + 0x28]
call fcn.1400202f0
add rsp, 0xa8
ret