Function at 0x40ba30
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472526
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 0x40bd51
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.00427b40
test al, al
je 0x40bacf
cmp byte [ebp - 0x264], bl
je 0x40bacf
cmp dword [edi + 0x14], 8
jb 0x40babe
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40bd68
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40bad9
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40bd66
cmp dword [0x49ad2c], 1
jg 0x40bb51
push 1
push 0x57
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetupuninstalldelete_files.cpp
lea ecx, [ebp - 0x31c]
call fcn.00424f80
mov dword [ebp - 4], 0
lea ecx, [eax + 8]
mov ebx, 1
mov edx, str.DeleteFile_
mov dword [ebp - 0x220], ebx
call fcn.00407130
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x40bb2e
mov edx, dword [edi]
mov ecx, eax
call fcn.00425a00
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.___failed_with_error_:
mov ecx, esi
call fcn.00407130
mov ecx, eax
call fcn.004050f0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40bb71
and ebx, 0xfffffffe
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x220], ebx
call fcn.00425110
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00452050
add esp, 0xc
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x40bb91
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 0x40bba0
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 0x40bcba
cmp esi, 2
je 0x40bcba
cmp esi, 0x402
je 0x40bcba
cmp dword [0x49ad2c], 1
jg 0x40bc9a
push 1
push 0x73
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetupuninstalldelete_files.cpp
lea ecx, [ebp - 0x31c]
call fcn.00424f80
mov dword [ebp - 4], 1
lea ecx, [eax + 8]
or ebx, 2
mov edx, str.SHFileOperation_
mov dword [ebp - 0x220], ebx
call fcn.00407130
cmp dword [edi + 0x14], 8
jb 0x40bc6f
mov edi, dword [edi]
mov edx, edi
mov ecx, eax
call fcn.00425a00
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.___failed_with_error_:
mov ecx, esi
call fcn.00407130
mov ecx, eax
call fcn.004050f0
mov esi, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x40bcba
and ebx, 0xfffffffd
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x220], ebx
call fcn.00425110
cmp dword [ebp - 0x232], 0
je 0x40bd55
cmp dword [0x49ad2c], 1
jg 0x40bd3a
sub esp, 8
mov dword [ebp - 0x31c], 1
lea ecx, [ebp - 0x314]
call fcn.00422bb0
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.00425610
or ebx, 4
mov dword [ebp - 4], 2
mov edx, str.fAnyOperationsAborted__true
mov dword [ebp - 0x220], ebx
lea ecx, [ebp - 0x314]
call fcn.00407130
mov dword [ebp - 4], 0xffffffff
test bl, 4
je 0x40bd51
lea ecx, [ebp - 0x31c]
call fcn.00425110
xor al, al
jmp 0x40bd68
test esi, esi
je 0x40bd66
cmp esi, 2
je 0x40bd66
cmp esi, 0x402
jne 0x40bd51
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.0044f786
mov esp, ebp
pop ebp
ret