Function at 0x42a167
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push 0x3b4
mov eax, 0x5b8291
call fcn.0056cecb
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x314], ebx
lea ecx, [edi + 8]
mov dword [ebp - 0x31c], edi
mov dword [edi], vtable.updtDaemonManager.0
call fcn.00429a92
lea esi, [edi + 0x198]
mov dword [ebp - 4], ebx
call fcn.0047ba48
mov dword [edi + 0x19c], ebx
mov dword [edi + 0x1c0], 7
mov dword [edi + 0x1bc], ebx
xor eax, eax
mov word [edi + 0x1ac], ax
mov dword [edi + 0x1c8], ebx
mov dword [edi + 0x1cc], ebx
lea esi, [edi + 0x1d0]
mov dword [ebp - 0x318], esi
mov dword [esi], ebx
lea eax, [edi + 0x1d4]
mov dword [ebp - 0x310], eax
mov dword [eax], ebx
mov dword [edi + 0x1d8], ebx
mov dword [edi + 0x1dc], ebx
mov dword [edi + 0x1e0], ebx
lea eax, [edi + 0x1e4]
push eax
mov byte [ebp - 4], 7
call fcn.0042fd0e
mov dword [edi + 0x304], ebx
mov dword [edi + 0x308], ebx
mov dword [edi + 0x30c], ebx
mov dword [edi + 0x310], ebx
mov dword [edi + 0x314], ebx
mov dword [edi + 0x318], ebx
mov dword [edi + 0x31c], ebx
mov dword [edi + 0x320], ebx
mov dword [edi + 0x324], ebx
mov dword [edi + 0x328], ebx
mov dword [edi + 0x32c], ebx
mov dword [edi + 0x330], ebx
mov dword [edi + 0x334], ebx
mov dword [edi + 0x338], ebx
mov byte [ebp - 4], 0x17
push 0x5c959c
lea eax, [edi + 0x1ac]
push eax
mov dword [edi + 0x1a0], 0x11
mov dword [edi + 0x1a4], 0xc
mov dword [edi + 0x1a8], 8
call fcn.0040ad38
lea ebx, [ebp - 0x324]
call fcn.00476b4c
mov edx, dword [eax]
mov dword [edi + 0x1c8], edx
mov eax, dword [eax + 4]
mov dword [edi + 0x1cc], eax
call fcn.0042ac46
push 1
call fcn.0055e7f7
pop ecx
mov dword [ebp - 0x320], eax
mov byte [ebp - 4], 0x18
test eax, eax
je 0x42a2d3
push eax
call fcn.00429b72
mov edi, eax
jmp 0x42a2d5
xor edi, edi
mov byte [ebp - 4], 0x17
cmp edi, dword [esi]
je 0x42a2e6
mov eax, esi
call fcn.0042cb78
mov dword [esi], edi
push 4
call fcn.0055e7f7
mov esi, eax
pop ecx
mov dword [ebp - 0x320], esi
mov byte [ebp - 4], 0x19
test esi, esi
je 0x42a31d
lea ebx, [ebp - 0x30]
call fcn.00470719
push eax
mov byte [ebp - 4], 0x1a
push esi
mov dword [ebp - 0x314], 1
call fcn.0043857f
jmp 0x42a31f
xor eax, eax
mov edi, dword [ebp - 0x310]
mov ebx, eax
mov dword [ebp - 4], 0x1b
call fcn.0042cac8
mov dword [ebp - 4], 0x17
test byte [ebp - 0x314], 1
je 0x42a356
and dword [ebp - 0x314], 0xfffffffe
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.0040b028
mov eax, dword [ebp - 0x310]
mov eax, dword [eax]
lea ecx, [ebp - 0xa0]
push ecx
call fcn.00438673
push 0x5c95bc
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 0x1c
call fcn.00409096
mov byte [ebp - 4], 0x1d
cmp dword [ebp - 0x70], 8
mov eax, dword [ebp - 0x84]
jae 0x42a390
mov eax, esi
mov edi, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0xa0]
call fcn.0040d6eb
test eax, eax
setne al
test al, al
je 0x42a8d1
cmp dword [ebp - 0x90], 0
je 0x42a8c3
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0042a08c
pop ecx
test al, al
pop ecx
lea eax, [ebp - 0x3c0]
push eax
je 0x42a449
call fcn.00409ac6
mov esi, eax
push str.Detected_upgrade_from
push esi
mov byte [ebp - 4], 0x1e
call fcn.0040fa1f
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0xa0]
call fcn.0040fbd3
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 0x1f
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x42a41f
lea eax, [ebp - 0x30]
push eax
push 3
pop ecx
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.0040b028
lea eax, [ebp - 0x3c0]
mov byte [ebp - 4], 0x1d
call fcn.004021a3
jmp 0x42a8d1
call fcn.00409ac6
mov esi, eax
push str.Detected_downgrade_from
push esi
mov byte [ebp - 4], 0x20
call fcn.0040fa1f
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0xa0]
call fcn.0040fbd3
pop ecx
push str.__trying_to_start_over.
push esi
call fcn.0040fa1f
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 0x21
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x42a496
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.0040b028
lea eax, [ebp - 0x3c0]
mov byte [ebp - 4], 0x1d
call fcn.004021a3
mov edi, dword [ebp - 0x310]
xor ebx, ebx
call fcn.0042cac8
mov esi, dword [ebp - 0x318]
cmp dword [esi], ebx
je 0x42a4da
mov eax, esi
call fcn.0042cb78
mov dword [esi], ebx
lea eax, [ebp - 0xbc]
push eax
call fcn.00470420
pop ecx
push 8
pop edi
cmp dword [eax + 0x14], edi
jb 0x42a4f1
mov eax, dword [eax]
xor ecx, ecx
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 0x23
call fcn.0040ad38
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
je 0x42a6c6
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x42a52b
lea eax, [ebp - 0x4c]
lea eax, [eax + ecx*2]
cmp word [eax - 2], 0x5c
je 0x42a543
push 0x5c2724
lea eax, [ebp - 0x4c]
push eax
call fcn.004090e2
xor ecx, ecx
cmp ecx, dword [ebp - 0x3c]
jae 0x42a571
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x42a555
lea eax, [ebp - 0x4c]
cmp word [eax + ecx*2], 0x2f
jne 0x42a56e
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x42a567
lea eax, [ebp - 0x4c]
push 0x5c
pop edx
mov word [eax + ecx*2], dx
inc ecx
jmp 0x42a545
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0x30]
call fcn.0040905d
push 0x5da400
mov eax, esi
push eax
mov byte [ebp - 4], 0x24
call fcn.004090e2
push 0x250
lea eax, [ebp - 0x30c]
push ebx
push eax
call fcn.00560d40
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp - 0x1c], edi
jae 0x42a5ad
mov eax, esi
lea ecx, [ebp - 0x30c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x310], eax
cmp eax, 0xffffffff
jne 0x42a5e3
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.0040b028
push 1
lea esi, [ebp - 0x4c]
call fcn.0040b028
xor al, al
jmp 0x42a6d4
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x42a5ee
push 8
pop edi
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0x68]
call fcn.0040905d
lea eax, [ebp - 0x2e0]
push eax
mov eax, esi
push eax
mov byte [ebp - 4], 0x25
call fcn.004090e2
test byte [ebp - 0x30c], 0x10
je 0x42a719
lea eax, [ebp - 0x2e0]
push 0x5c3b10
push eax
call fcn.00561046
pop ecx
pop ecx
test eax, eax
je 0x42a64f
lea eax, [ebp - 0x2e0]
push 0x5c3b14
push eax
call fcn.00561046
pop ecx
pop ecx
test eax, eax
je 0x42a64f
mov eax, esi
call fcn.00476884
push 1
xor edi, edi
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 0x24
call fcn.0040b028
lea eax, [ebp - 0x30c]
push eax
push dword [ebp - 0x310]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42a5eb
push dword [ebp - 0x310]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x318]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call esi
test eax, eax
jne 0x42a6ba
push edi
call ebx
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x42a5c6
push edi
call esi
test eax, eax
je 0x42a5c6
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.0040b028
push 1
xor edi, edi
lea esi, [ebp - 0x4c]
call fcn.0040b028
mov al, 1
test al, al
sete bl
push 1
xor edi, edi
lea esi, [ebp - 0xbc]
mov byte [ebp - 4], 0x1d
call fcn.0040b028
test bl, bl
je 0x42a793
push str.Cannot_delete_working_directory_during_downgrade_recovery
lea esi, [ebp - 0xbc]
call fcn.00409096
push 0xf7
mov ecx, str.srcDaemonManager.cpp
mov eax, esi
mov byte [ebp - 4], 0x26
call fcn.00401f44
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x54], edi
jae 0x42a724
lea eax, [ebp - 0x68]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
jne 0x42a64f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42a64f
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x54], edi
jae 0x42a74f
lea eax, [ebp - 0x68]
push eax
call ebx
mov ecx, dword [ebp - 0x68]
cmp dword [ebp - 0x54], edi
jae 0x42a75d
lea ecx, [ebp - 0x68]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x42a782
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x54], edi
jae 0x42a777
lea eax, [ebp - 0x68]
push eax
call esi
test eax, eax
jne 0x42a64f
push 1
xor edi, edi
lea esi, [ebp - 0x68]
call fcn.0040b028
jmp 0x42a5c6
call fcn.0042ac46
push 1
call fcn.0055e7f7
pop ecx
mov dword [ebp - 0x320], eax
mov byte [ebp - 4], 0x27
test eax, eax
je 0x42a7b8
push eax
call fcn.00429b72
mov edi, eax
jmp 0x42a7ba
xor edi, edi
mov byte [ebp - 4], 0x1d
mov esi, dword [ebp - 0x31c]
cmp edi, dword [esi + 0x1d0]
je 0x42a7dd
lea eax, [esi + 0x1d0]
call fcn.0042cb78
mov dword [esi + 0x1d0], edi
lea eax, [ebp - 0x3c0]
push eax
call fcn.00409ac6
mov esi, eax
push str.Recovering_from_downgrade_from_version
push esi
mov byte [ebp - 4], 0x28
call fcn.0040fa1f
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0xa0]
call fcn.0040fbd3
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 0x29
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x42a824
lea eax, [ebp - 0x30]
push eax
push 3
pop ecx
call fcn.0047c666
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.0040b028
lea eax, [ebp - 0x3c0]
mov byte [ebp - 4], 0x1d
call fcn.004021a3
push 4
call fcn.0055e7f7
mov esi, eax
pop ecx
mov dword [ebp - 0x320], esi
mov byte [ebp - 4], 0x2a
test esi, esi
je 0x42a882
lea ebx, [ebp - 0xbc]
call fcn.00470719
push eax
mov byte [ebp - 4], 0x2b
or dword [ebp - 0x314], 2
push esi
call fcn.0043857f
mov ebx, eax
jmp 0x42a884
xor ebx, ebx
mov dword [ebp - 4], 0x2c
mov edi, dword [ebp - 0x31c]
add edi, 0x1d4
mov dword [ebp - 0x310], edi
call fcn.0042cac8
mov dword [ebp - 4], 0x1d
test byte [ebp - 0x314], 2
je 0x42a8d1
push 1
xor edi, edi
lea esi, [ebp - 0xbc]
call fcn.0040b028
jmp 0x42a8d1
push str.Detected_upgrade_from_unknown_version_or_first_run.
push 3
pop ecx
call fcn.0047c666
pop ecx
lea eax, [ebp - 0x84]
push eax
lea esi, [ebp - 0x30]
call fcn.0040905d
mov eax, dword [ebp - 0x310]
mov eax, dword [eax]
mov byte [ebp - 4], 0x2d
mov ecx, dword [eax]
mov eax, esi
push eax
lea edx, [ecx + 0x64]
call fcn.00438a04
push 1
xor edi, edi
mov byte [ebp - 4], 0x1d
call fcn.0040b028
mov ebx, dword [ebp - 0x31c]
push ebx
call fcn.0042ad57
mov ecx, ebx
call fcn.0042b01f
mov ecx, ebx
call fcn.0042b6b2
push 1
lea esi, [ebp - 0x84]
call fcn.0040b028
push 1
lea esi, [ebp - 0xa0]
call fcn.0040b028
mov eax, ebx
call fcn.0056cf27
ret