Function at 0x431510
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6add
mov eax, dword fs:[0]
push eax
sub esp, 0x52c
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x51c], ecx
call fcn.0046d4f0
xor esi, esi
test eax, eax
je 0x4315c8
push esi
push str.CFileUtils::DeleteAFile_n
push 0x6610b0
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x660fb0], eax
mov eax, 0x6610b0
mov dword [0x660fb4], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x431582
mov edi, 0x660fb0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x431593
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x660fb0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
xor esi, esi
call fcn.0046d4f0
test eax, eax
je 0x4315f9
mov edx, dword [ebp + 0xc]
push edx
push ebx
push str.pszFileToDelete___s__dwFlags___d_n
push 0x660eb0
call fcn.00599ee3
add esp, 0x10
push 0x660eb0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov dword [ebp - 0x524], esi
call fcn.004a8620
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x431619
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x528], eax
mov dword [ebp - 4], esi
call fcn.004a8620
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x431648
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x530], eax
mov byte [ebp - 4], 1
call fcn.004a8620
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x431678
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x534], eax
mov byte [ebp - 4], 2
call fcn.004a8620
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4316a8
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x52c], edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 3
mov dword [ebp - 0x520], esi
call fcn.0047aa50
push 0x104
lea ecx, [ebp - 0x31c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp ebx, esi
jne 0x4316f0
xor eax, eax
jmp 0x4316fe
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4316f5
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x534]
call fcn.004026b0
mov esi, dword [ebp - 0x534]
lea edx, [ebp - 0x31c]
push edx
push esi
call fcn.0059a822
add esp, 8
test eax, eax
jne 0x4317bf
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431749
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431769
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x530]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43178f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x528]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4317b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x431e98
mov ecx, dword [ebp - 0x51c]
push ebx
call fcn.0042cf90
test eax, eax
je 0x431ca8
test ebx, ebx
jne 0x4317db
xor eax, eax
jmp 0x4317e9
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4317e0
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x528]
call fcn.004026b0
lea ecx, [ebp - 0x528]
call fcn.004027d0
mov ecx, dword [ebp - 0x528]
cmp dword [ecx - 0xc], 0
jl 0x431866
mov edx, ecx
push 0x5cedcc
push edx
call fcn.0059a963
add esp, 8
test eax, eax
je 0x431866
sub eax, dword [ebp - 0x528]
cmp eax, 0xffffffff
je 0x431866
mov eax, dword [ebp - 0x528]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x538], esp
mov esi, esp
push eax
call fcn.004022e0
mov ecx, dword [ebp - 0x51c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0042f6b0
test eax, eax
je 0x431866
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x43187d
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x4318fb
mov ecx, dword [ebp - 0x51c]
push ebx
mov dword [ebp - 0x524], eax
call fcn.0042cf90
mov edi, dword [ebp - 0x520]
test eax, eax
je 0x4318e6
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4318b0
push 0x64
call esi
inc edi
cmp edi, 5
ja 0x4318cc
mov ecx, dword [ebp - 0x51c]
push ebx
call fcn.0042cf90
test eax, eax
jne 0x4318b0
jmp 0x4318e6
call fcn.0046d4f0
test eax, eax
je 0x4318e6
push str.ERROR_IsFileExist_TimeOut_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov ecx, 0x65cc94
call fcn.004a840b
jmp 0x431901
mov edi, dword [ebp - 0x520]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0046d4f0
test eax, eax
je 0x43193c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetLastError_____d_n
push 0x660db0
call fcn.00599ee3
add esp, 0xc
push 0x660db0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
cmp esi, 5
jne 0x431ca8
mov eax, dword [ebp - 0x524]
not eax
and eax, 1
je 0x431967
test byte [ebp + 0xc], 8
je 0x431967
mov dword [ebp - 0x524], 4
jmp 0x431ca8
test eax, eax
je 0x431a7b
call fcn.0046d4f0
test eax, eax
je 0x431989
push str.Doing_TakeOwn_method.._n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push ebx
lea eax, [ebp - 0x114]
push str._f__s
push eax
call fcn.00599ee3
add esp, 0xc
push 0
push 0
push 0x1d4c0
push 0
push 1
push 1
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp - 0x51c]
push str.takeown
call fcn.00430630
test eax, eax
je 0x431a7b
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
push ebx
lea edx, [ebp - 0x114]
push str._s__grant_administrators:F
push edx
call fcn.00599ee3
mov ecx, dword [ebp - 0x51c]
add esp, 0xc
push 0
push 0
push 0x1d4c0
push 0
push 1
push 1
lea eax, [ebp - 0x114]
push eax
push str.icacls
call fcn.00430630
test eax, eax
je 0x431a7b
push 0x1f4
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x431a7b
mov ecx, dword [ebp - 0x51c]
or dword [ebp - 0x524], eax
push ebx
call fcn.0042cf90
test eax, eax
je 0x431a77
push 0x64
call esi
inc edi
cmp edi, 5
ja 0x431a5d
mov ecx, dword [ebp - 0x51c]
push ebx
call fcn.0042cf90
test eax, eax
jne 0x431a41
jmp 0x431a77
call fcn.0046d4f0
test eax, eax
je 0x431a77
push str.ERROR_IsFileExist_TimeOut_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 0x64
call esi
mov ecx, dword [ebp - 0x524]
not ecx
test cl, 1
je 0x431ca8
call fcn.0046d4f0
test eax, eax
je 0x431aa6
push str.Doing_MoveFileEx_method.._n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push ebx
lea ecx, [ebp - 0x520]
call fcn.00403380
mov ecx, dword [ebp - 0x51c]
push eax
mov byte [ebp - 4], 4
call fcn.0042e120
lea ecx, [ebp - 0x520]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00402180
test esi, esi
je 0x431c74
push ebx
lea edx, [ebp - 0x114]
push str.From_DeleteAFile__s__:_DELETE_FILE_REBOOT_REQUIRED_n
push edx
call fcn.00599ee3
or dword [ebp - 0x524], 3
add esp, 0xc
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x518]
mov dword [ebp - 0x520], 0x104
call fcn.0047b3d0
test eax, eax
je 0x431ca8
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x528]
call fcn.00402ba0
lea ecx, [ebp - 0x528]
call fcn.004027d0
push ebx
lea ecx, [ebp - 0x52c]
call fcn.00402ba0
lea ecx, [ebp - 0x52c]
call fcn.004027d0
mov edi, dword [ebp - 0x528]
test edi, edi
je 0x431ca8
mov esi, dword [ebp - 0x52c]
cmp dword [esi - 0xc], 0
jl 0x431ca8
push edi
push esi
call fcn.0059a963
add esp, 8
test eax, eax
je 0x431ca8
sub eax, esi
cmp eax, 0xffffffff
je 0x431ca8
call fcn.0046d4f0
test eax, eax
je 0x431bb5
push str.Do_MoveFolder..._n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 0x5c
push esi
call fcn.0059aa24
add esp, 8
test eax, eax
je 0x431ca8
sub eax, esi
cmp eax, 0xffffffff
je 0x431ca8
push eax
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x52c]
call fcn.004024f0
push eax
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 5
call fcn.00402af0
mov eax, dword [ebp - 0x520]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431c1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x52c]
push edi
push esi
call fcn.0059a822
add esp, 8
test eax, eax
je 0x431ca8
call fcn.0046d4f0
test eax, eax
je 0x431c5d
push esi
push str.Do_MoveFolder___s_n
push 0x660cb0
call fcn.00599ee3
add esp, 0xc
push 0x660cb0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
lea ecx, [ebp - 0x52c]
push ecx
mov ecx, dword [ebp - 0x51c]
call fcn.0042e120
jmp 0x431bb5
call fcn.0046d4f0
test eax, eax
je 0x431ca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Fail:_MoveFileEx____s_:_GetLastError_____d_n
push 0x660bb0
call fcn.00599ee3
add esp, 0x10
push 0x660bb0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov eax, dword [ebp - 0x524]
test al, 1
je 0x431d70
not eax
test al, 2
je 0x431d70
test byte [ebp + 0xc], 4
mov edi, dword [ebp - 0x51c]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
je 0x431ce9
push 0x64
call esi
push ebx
mov ecx, edi
call fcn.0042cf90
test eax, eax
jne 0x431cd2
push 0xc8
call esi
test byte [ebp + 0xc], 1
je 0x431d5e
push ebx
lea ecx, [ebp - 0x530]
call fcn.00402ba0
mov edx, dword [ebp - 0x530]
push 0x5c
push edx
call fcn.0059aa24
add esp, 8
test eax, eax
je 0x431d5e
sub eax, dword [ebp - 0x530]
cmp eax, 0xffffffff
je 0x431d5e
push eax
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x530]
call fcn.004024f0
push eax
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 6
call fcn.00402af0
lea ecx, [ebp - 0x520]
mov byte [ebp - 4], 3
call fcn.00402180
push 0x64
call esi
mov ecx, dword [ebp - 0x530]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test byte [ebp + 0xc], 2
je 0x431d70
push 2
push 0
push ebx
mov ecx, edi
call fcn.0042fe20
call fcn.0046d4f0
test eax, eax
je 0x431df7
mov edx, dword [ebp - 0x524]
push edx
push str.CFileUtils::DeleteAFile_:_dwRetVal___d_n
push 0x660ab0
call fcn.00599ee3
mov eax, dword [str.EXIT:]
mov ecx, dword [0x5ccefc]
mov dword [0x6609b0], eax
mov eax, 0x660ab0
mov dword [0x6609b4], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x431db3
mov edi, 0x6609b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x431dc4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x6609b0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov eax, dword [ebp - 0x52c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x431e1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x534]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431e43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x530]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431e69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x528]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431e92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x524]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 8