Function at 0x180050470
Capabilities:
Delete file
Move file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov dword [rsp + 0x218], 0
mov qword [rsp + 0x210], 0
mov dword [rsp + 0x21c], 0
lea rdx, [rsp + 0x210]
mov rcx, qword [rsp + 0x250]
call fcn.180046460
mov dword [rsp + 0x218], eax
cmp dword [rsp + 0x218], 0
je 0x1800505d6
mov rax, qword [rsp + 0x250]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x1800505d6
mov rax, qword [rsp + 0x250]
add rax, 0x418
mov rcx, rax
call fcn.18000ea80
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x68], rax
lea rdx, str.EppOpenAndAcquireInstallMutex_Failed:_:x
mov rcx, qword [rsp + 0x68]
call fcn.180055220
lea rcx, [rsp + 0xc0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xd0]
lea rcx, [rsp + 0xc0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x218]
call fcn.1800035a0
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0xd0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xf0]
lea rcx, [rsp + 0xe0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0x70]
lea r8, [rsp + 0xf0]
mov edx, 4
mov rcx, qword [rsp + 0x60]
call fcn.180058330
cmp dword [rsp + 0x218], 0
je 0x1800505ec
mov eax, dword [rsp + 0x218]
jmp 0x180050bd8
lea rdx, [rsp + 0x21c]
mov rcx, qword [rsp + 0x250]
call fcn.180052030
mov dword [rsp + 0x218], eax
cmp dword [rsp + 0x218], 0
je 0x180050617
jmp 0x180050a5e
mov eax, dword [rsp + 0x258]
and eax, 0x20
cmp eax, 0x20
jne 0x18005075f
call fcn.180067190
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x48]
call qword [rax + 8]
mov rax, qword [rsp + 0x250]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x18005075f
mov rax, qword [rsp + 0x250]
add rax, 0x418
mov rcx, rax
call fcn.18000ea80
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
lea rdx, str.Uninstall_eppwfp_result:_:x
mov rcx, qword [rsp + 0x80]
call fcn.18000a5f0
lea rax, [rsp + 0x100]
mov rdi, rax
mov rsi, qword [rsp + 0x40]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x110]
lea rcx, [rsp + 0x100]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x38]
call fcn.180056f20
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x120]
lea rcx, [rsp + 0x110]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x130]
lea rcx, [rsp + 0x120]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0x88]
lea r8, [rsp + 0x130]
mov edx, 2
mov rcx, qword [rsp + 0x90]
call fcn.180058110
mov eax, dword [rsp + 0x258]
and eax, 0x40
cmp eax, 0x40
jne 0x1800507e9
lea rdx, [0x1800d7f98]
mov rcx, qword [rsp + 0x250]
call fcn.18004a1d0
mov dword [rsp + 0x218], eax
cmp dword [rsp + 0x218], 0
jne 0x1800507e9
mov rcx, qword [rsp + 0x250]
call fcn.180046db0
mov qword [rsp + 0x30], rax
mov r8d, 2
lea rdx, str.eppdisk
mov rcx, qword [rsp + 0x250]
call fcn.180047790
cmp qword [rsp + 0x30], 0
je 0x1800507e9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800507e9
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [rsp + 0x258]
and eax, 0x80
cmp eax, 0x80
jne 0x1800509ca
lea rdx, [0x1800d7fb8]
mov rcx, qword [rsp + 0x250]
call fcn.18004ea90
mov dword [rsp + 0x218], eax
cmp dword [rsp + 0x218], 0
jne 0x1800509ca
mov rax, qword [rsp + 0x250]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x18005087f
mov rax, qword [rsp + 0x250]
add rax, 0x418
mov rcx, rax
call fcn.18000ea80
mov qword [rsp + 0x98], rax
lea r8, str.Try_Delete
mov edx, 2
mov rcx, qword [rsp + 0x98]
call fcn.1800571e0
mov rcx, qword [rsp + 0x250]
call fcn.18004ec90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800509ca
mov rax, qword [rsp + 0x250]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x1800509ac
mov rax, qword [rsp + 0x250]
add rax, 0x418
mov rcx, rax
call fcn.18000ea80
mov qword [rsp + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0xa0], rax
lea rdx, str.DeleteFile_failed._:x
mov rcx, qword [rsp + 0xa0]
call fcn.180055220
lea rcx, [rsp + 0x140]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x150]
lea rcx, [rsp + 0x140]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x3c]
call fcn.180056f20
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x160]
lea rcx, [rsp + 0x150]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x170]
lea rcx, [rsp + 0x160]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0xa8]
lea r8, [rsp + 0x170]
mov edx, 4
mov rcx, qword [rsp + 0xb0]
call fcn.180058330
mov rcx, qword [rsp + 0x250]
call fcn.18004ec90
mov r8d, 4
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
xor r8d, r8d
mov edx, dword [rsp + 0x258]
mov rcx, qword [rsp + 0x250]
call fcn.1800525a0
mov dword [rsp + 0x218], eax
cmp dword [rsp + 0x218], 0
je 0x1800509f4
jmp 0x180050a5e
lea rdx, [rsp + 0x21c]
mov rcx, qword [rsp + 0x250]
call fcn.180052030
mov dword [rsp + 0x218], eax
cmp dword [rsp + 0x218], 0
je 0x180050a1c
jmp 0x180050a5e
cmp dword [rsp + 0x21c], 0
je 0x180050a28
jmp 0x180050a5e
mov rcx, qword [rsp + 0x250]
call fcn.180051680
lea rdx, [0x1800d8010]
mov rcx, qword [rsp + 0x250]
call fcn.18004a1d0
mov dword [rsp + 0x218], eax
mov rcx, qword [rsp + 0x250]
call fcn.180049530
nop
mov rdx, qword [rsp + 0x210]
mov rcx, qword [rsp + 0x250]
call fcn.180046ad0
cmp dword [rsp + 0x21c], 0
je 0x180050a9d
cmp qword [rsp + 0x210], 0
je 0x180050a9d
mov rdx, qword [rsp + 0x210]
mov rcx, qword [rsp + 0x250]
call fcn.180046ad0
mov rax, qword [rsp + 0x250]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x180050bd1
mov rax, qword [rsp + 0x250]
add rax, 0x418
mov rcx, rax
call fcn.18000ea80
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x200]
mov qword [rsp + 0xb8], rax
lea rdx, [0x1800d8060]
mov rcx, qword [rsp + 0xb8]
call fcn.180055220
lea rcx, [rsp + 0x180]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x190]
lea rcx, [rsp + 0x180]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x218]
call fcn.1800035a0
mov qword [rsp + 0x50], rax
lea rcx, str.EppLibClass::EppUninstallDriver
call fcn.180056f20
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x1a0]
lea rcx, [rsp + 0x190]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1b0]
lea rcx, [rsp + 0x1a0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1c0]
lea rcx, [rsp + 0x1b0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x58]
lea r8, [rsp + 0x1c0]
mov edx, 2
mov rcx, qword [rsp + 0x78]
call fcn.180058bb0
mov eax, dword [rsp + 0x218]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.180099a00
add rsp, 0x238
pop rdi
pop rsi
ret