Function at 0x14005e880
Capabilities:
Delete file
Get file attributes
Get file version info
Set file attributes

Disassembly:
push rbx
push rbp
sub rsp, 0x5a8
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0x580], rax
mov rbx, rcx
mov rcx, qword [rcx]
lea rdx, [rsp + 0x330]
mov ebp, 1
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14005eda0
mov qword [rsp + 0x5c8], rsi
mov qword [rsp + 0x5d0], rdi
mov rcx, rax
mov qword [rsp + 0x5a0], r12
mov qword [rsp + 0x598], r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r12, qword [rbx]
lea rdx, [rsp + 0xe0]
lea esi, [rbp + 1]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor edi, edi
cmp rax, 0xffffffffffffffff
je 0x14005e9c5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r11, qword [rsp + 0x40]
lea rax, [rsp + 0x40]
test rax, rax
lea rdx, [rsp + 0x34]
mov rcx, r12
cmovne r11, qword [rsp + 0xf4]
mov r13d, edi
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x40], r11
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [rsp + 0x30], eax
je 0x14005e9c0
mov ecx, eax
call fcn.1400913a4
test rax, rax
mov rsi, rax
je 0x14005e9c0
mov r8d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x34]
mov r9, rax
mov rcx, r12
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14005e9af
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, [0x1400fc394]
mov rcx, rsi
mov dword [rsp + 0x30], edi
call sub.VERSION.dll_VerQueryValueW
mov r13d, eax
lea rax, [rsp + 0x68]
test rax, rax
je 0x14005e9af
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x68]
lea r8d, [rbp + 0x33]
call fcn.1400cfba0
mov rcx, rsi
call fcn.1400913ac
test r13d, r13d
je 0x14005e9c0
mov esi, edi
jmp 0x14005e9c5
mov esi, 0x714
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x5c]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x590], r14
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x5c], edi
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.SETUPAPI.dll_SetupGetFileCompressionInfoW]
cmp dword [rsp + 0x48], edi
je 0x14005ec45
mov rcx, qword [rbx]
call fcn.14005edc0
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x48]
mov rdx, rax
mov r12, rax
call qword [sym.imp.SETUPAPI.dll_SetupDecompressOrCopyFileW]
test eax, eax
jne 0x14005ec38
lea rdx, [rsp + 0xe0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14005ec2f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r11, qword [rsp + 0x38]
lea rax, [rsp + 0x38]
test rax, rax
lea rdx, [rsp + 0x34]
mov rcx, r12
cmovne r11, qword [rsp + 0xf4]
mov r14d, edi
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x38], r11
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [rsp + 0x30], eax
je 0x14005ebc5
mov ecx, eax
call fcn.1400913a4
test rax, rax
mov r13, rax
je 0x14005ebc5
mov r8d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x34]
mov r9, rax
mov rcx, r12
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14005eaff
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, [0x1400fc394]
mov rcx, r13
mov dword [rsp + 0x30], edi
call sub.VERSION.dll_VerQueryValueW
mov r14d, eax
lea rax, [rsp + 0xa0]
test rax, rax
je 0x14005eaff
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xa0]
mov r8d, 0x34
call fcn.1400cfba0
mov rcx, r13
call fcn.1400913ac
test r14d, r14d
je 0x14005ebc5
test esi, esi
jne 0x14005ebca
lea rax, [rsp + 0xa0]
test rax, rax
je 0x14005eb5e
lea rax, [rsp + 0x68]
test rax, rax
je 0x14005eb5e
mov ecx, dword [rsp + 0xa8]
mov edx, dword [rsp + 0x70]
cmp ecx, edx
jne 0x14005eb4b
mov eax, dword [rsp + 0x74]
cmp dword [rsp + 0xac], eax
je 0x14005eb8e
shr ecx, 0x10
shr edx, 0x10
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x34], edx
jmp 0x14005ec2f
lea rax, [rsp + 0x38]
test rax, rax
je 0x14005ec2f
lea rax, [rsp + 0x40]
test rax, rax
je 0x14005eb8e
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jne 0x14005ec2f
lea rax, [rsp + 0x38]
test rax, rax
je 0x14005ec2f
lea rax, [rsp + 0x40]
test rax, rax
je 0x14005ec2f
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x14005ec2f
mov ebp, 2
jmp 0x14005ec2f
mov edi, 0x714
cmp esi, 2
je 0x14005ec2f
lea rax, [rsp + 0x38]
test rax, rax
je 0x14005ebfe
lea rax, [rsp + 0x40]
test rax, rax
je 0x14005ebfe
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x14005ebfe
mov ebp, 2
jmp 0x14005ec2f
cmp edi, 0x714
jne 0x14005ec2f
test esi, esi
jne 0x14005ec2f
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test bpl, al
je 0x14005ec26
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, r12
call fcn.1400913ac
jmp 0x14005ed68
mov r13, qword [rbx + 8]
lea rdx, [rsp + 0xe0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14005ed68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r11, qword [rsp + 0x38]
lea rax, [rsp + 0x38]
test rax, rax
lea rdx, [rsp + 0x34]
mov rcx, r13
cmovne r11, qword [rsp + 0xf4]
mov r14d, edi
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x38], r11
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [rsp + 0x30], eax
je 0x14005ecfe
mov ecx, eax
call fcn.1400913a4
test rax, rax
mov r12, rax
je 0x14005ecfe
mov r8d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x34]
mov r9, rax
mov rcx, r13
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14005eceb
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, [0x1400fc394]
mov rcx, r12
mov dword [rsp + 0x30], edi
call sub.VERSION.dll_VerQueryValueW
mov r14d, eax
mov rcx, r12
call fcn.1400913ac
test r14d, r14d
je 0x14005ecfe
test esi, esi
je 0x14005ed68
jmp 0x14005ed03
mov edi, 0x714
cmp esi, 2
je 0x14005ed68
lea rax, [rsp + 0x38]
test rax, rax
je 0x14005ed37
lea rax, [rsp + 0x40]
test rax, rax
je 0x14005ed37
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x14005ed37
mov ebp, 2
jmp 0x14005ed68
cmp edi, 0x714
jne 0x14005ed68
test esi, esi
jne 0x14005ed68
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test bpl, al
je 0x14005ed5f
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x590]
mov r13, qword [rsp + 0x598]
test rcx, rcx
mov r12, qword [rsp + 0x5a0]
mov rdi, qword [rsp + 0x5d0]
mov rsi, qword [rsp + 0x5c8]
je 0x14005eda0
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebp
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.1400cd6e0
add rsp, 0x5a8
pop rbp
pop rbx
ret