Function at 0x40c460
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473046
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x498068]
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 edi, ecx
xor ebx, ebx
mov dword [ebp - 0x220], ebx
cmp dword [edi + 0x10], 0x104
jae 0x40c781
xorps xmm0, xmm0
mov word [ebp - 0x264], bx
lea edx, [ebp - 0x26c]
movlpd qword [ebp - 0x26c], xmm0
movlpd qword [ebp - 0x25c], xmm0
movlpd qword [ebp - 0x254], xmm0
movlpd qword [ebp - 0x24c], xmm0
call fcn.00428520
test al, al
je 0x40c4ff
cmp byte [ebp - 0x264], bl
je 0x40c4ff
cmp dword [edi + 0x14], 8
jb 0x40c4ee
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40c798
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40c509
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c796
cmp dword [0x49ad28], 1
jg 0x40c581
push 1
push 0x57
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetupuninstalldelete_files.cpp
lea ecx, [ebp - 0x31c]
call fcn.00425970
mov dword [ebp - 4], 0
lea ecx, [eax + 8]
mov ebx, 1
mov edx, str.DeleteFile_
mov dword [ebp - 0x220], ebx
call fcn.00407b40
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x40c55e
mov edx, dword [edi]
mov ecx, eax
call fcn.004263f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.___failed_with_error_:
mov ecx, esi
call fcn.00407b40
mov ecx, eax
call fcn.00405ad0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40c5a1
and ebx, 0xfffffffe
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x220], ebx
call fcn.00425b00
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00452a30
add esp, 0xc
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x40c5c1
mov ecx, dword [edi]
lea edx, [ebp - 0x21c]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40c5d0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x23c], eax
xorps xmm0, xmm0
mov eax, 0x1494
mov dword [ebp - 0x238], 0
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x244]
push eax
movlpd qword [ebp - 0x232], xmm0
mov dword [ebp - 0x22a], 0
mov dword [ebp - 0x240], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
mov dword [ebp - 0x224], esi
test esi, esi
je 0x40c6ea
cmp esi, 2
je 0x40c6ea
cmp esi, 0x402
je 0x40c6ea
cmp dword [0x49ad28], 1
jg 0x40c6ca
push 1
push 0x73
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetupuninstalldelete_files.cpp
lea ecx, [ebp - 0x31c]
call fcn.00425970
mov dword [ebp - 4], 1
lea ecx, [eax + 8]
or ebx, 2
mov edx, str.SHFileOperation_
mov dword [ebp - 0x220], ebx
call fcn.00407b40
cmp dword [edi + 0x14], 8
jb 0x40c69f
mov edi, dword [edi]
mov edx, edi
mov ecx, eax
call fcn.004263f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.___failed_with_error_:
mov ecx, esi
call fcn.00407b40
mov ecx, eax
call fcn.00405ad0
mov esi, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x40c6ea
and ebx, 0xfffffffd
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x220], ebx
call fcn.00425b00
cmp dword [ebp - 0x232], 0
je 0x40c785
cmp dword [0x49ad28], 1
jg 0x40c76a
sub esp, 8
mov dword [ebp - 0x31c], 1
lea ecx, [ebp - 0x314]
call fcn.004235a0
mov dword [ebp - 0x278], str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetupuninstalldelete_files.cpp
mov dword [ebp - 0x274], 0x7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x7b
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetupuninstalldelete_files.cpp
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x270], eax
call fcn.00426000
or ebx, 4
mov dword [ebp - 4], 2
mov edx, str.fAnyOperationsAborted__true
mov dword [ebp - 0x220], ebx
lea ecx, [ebp - 0x314]
call fcn.00407b40
mov dword [ebp - 4], 0xffffffff
test bl, 4
je 0x40c781
lea ecx, [ebp - 0x31c]
call fcn.00425b00
xor al, al
jmp 0x40c798
test esi, esi
je 0x40c796
cmp esi, 2
je 0x40c796
cmp esi, 0x402
jne 0x40c781
mov al, 1
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.00450164
mov esp, ebp
pop ebp
ret