Function at 0x40a670
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x454]
sub esp, 0x454
push 0xffffffffffffffff
push 0x637698
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6eed24]
xor eax, ebp
mov dword [ebp + 0x450], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0x45c]
mov edx, dword [eax + 4]
test edx, edx
jne 0x40a6c0
xor eax, eax
jmp 0x40aa1a
mov eax, dword [eax]
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
test eax, eax
jne 0x40a6d9
mov eax, 0x649aa0
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403940
mov esi, dword [ebp - 0x28]
mov eax, 0x649aa0
mov dword [ebp - 4], 0
test esi, esi
je 0x40a6f8
mov eax, esi
mov ecx, dword [ebp - 0x24]
dec ecx
cmp word [eax + ecx*2], 0x5c
je 0x40a715
mov eax, 0x649aa0
test esi, esi
je 0x40a70e
mov eax, esi
cmp word [eax + ecx*2], 0x2f
jne 0x40a721
push ecx
lea ecx, [ebp - 0x28]
call fcn.00409ed0
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov eax, 0x649aa0
cmp ecx, 4
jae 0x40a758
test esi, esi
je 0x40a734
mov eax, esi
push eax
push str.Avoided_clearing__r_near_root_folder__s.___
push 4
push 0x26e
push str.e:workprgpdf5_builds_rc.328_trackerupdateinstallmanager.cpp
call fcn.00431810
add esp, 0x14
mov edi, 0x82000001
jmp 0x40aa04
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
test esi, esi
je 0x40a773
mov eax, esi
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00403940
push 0xffffffffffffffff
push str..
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004031a0
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.004b40a0
mov eax, dword [ebp - 0x38]
add esp, 0xc
test eax, eax
jne 0x40a7af
mov eax, 0x649aa0
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor edi, edi
mov dword [ebp - 0x2c], eax
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40aa3f
lea ebx, [ebx]
mov ecx, 0x64d9e4
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a7fe
test dx, dx
je 0x40a7fa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a7fe
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a7d8
xor eax, eax
jmp 0x40a803
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a8fa
mov eax, 0x64d9e8
lea ecx, [ebp + 0x2c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40a839
test dx, dx
je 0x40a835
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40a839
add ecx, 4
add eax, 4
test dx, dx
jne 0x40a813
xor eax, eax
jmp 0x40a83e
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a8fa
mov dword [ebp - 0x18], 0
mov eax, 0x649aa0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
test esi, esi
je 0x40a866
mov eax, esi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
push eax
call fcn.00403940
push 1
push 0x5c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040a5a0
push 0xffffffffffffffff
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004031a0
mov eax, dword [ebp]
test al, 0x10
je 0x40a8b1
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.0040a670
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
js 0x40a914
inc edi
jmp 0x40a8cd
test al, 0xa0
je 0x40a8cd
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40a8c1
mov eax, 0x649aa0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40a93a
inc ebx
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test eax, eax
je 0x40a8e1
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a7d0
jmp 0x40a99a
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40a920
mov eax, 0x649aa0
push eax
push str._Error__Cant_remove_directory__s.
push ecx
push 1
push 0x285
push str.e:workprgpdf5_builds_rc.328_trackerupdateinstallmanager.cpp
call fcn.00431620
jmp 0x40a98b
push 0
push 0x100
lea eax, [ebp + 0x250]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40a96d
mov eax, 0x649aa0
lea ecx, [ebp + 0x250]
push ecx
push eax
push str._Error__Cant_delete_file__s__error:__s.
push 1
push 0x28e
push str.e:workprgpdf5_builds_rc.328_trackerupdateinstallmanager.cpp
call fcn.00431810
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00403130
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x40a9ab
test edi, edi
je 0x40a9d2
mov eax, 0x649aa0
test esi, esi
je 0x40a9b6
mov eax, esi
push edi
push ebx
push eax
push str.Clearing_folder__s:__d_files_and__d_folders_was_removed.
push 4
push 0x29d
push str.e:workprgpdf5_builds_rc.328_trackerupdateinstallmanager.cpp
call fcn.00431810
add esp, 0x1c
mov edi, dword [ebp - 0x1c]
cmp byte [ebp + 0x460], 0
je 0x40a9f0
mov eax, 0x649aa0
test esi, esi
je 0x40a9e9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 4
test eax, eax
je 0x40aa04
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 4], 5
test esi, esi
je 0x40aa18
push esi
call fcn.00446420
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x450]
xor ecx, ebp
call fcn.004b2558
lea esp, [ebp + 0x454]
pop ebp
ret 8
mov edi, 0x8200000e
jmp 0x40a9d5