Function at 0x454c70
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d206
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x492110]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x454ef6
xor eax, eax
cmp ax, word [esi]
je 0x454ef6
test edi, edi
je 0x454ef6
cmp ax, word [edi]
je 0x454ef6
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x454cd0
sub ecx, edx
sar ecx, 1
push ecx
push edi
push esi
call fcn.004516a6
add esp, 0xc
test eax, eax
jne 0x454ef6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x454cf7
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
mov dword [ebp - 0x290], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x28c], ecx
call fcn.00425070
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x454d47
push dword [ebp - 0x28c]
push 0
push ebx
call fcn.0042f1f0
add esp, 0xc
jmp 0x454d49
xor ebx, ebx
mov dword [ebp - 0x298], ebx
push edi
push dword [ebp - 0x290]
mov dword [ebp - 4], 0
push ebx
call fcn.00436682
add esp, 0xc
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x454d70
sub esi, ecx
xor eax, eax
sar esi, 1
movzx edi, word [ebx + esi*2]
lea esi, [ebx + esi*2]
cmp ax, di
je 0x454d97
mov eax, 0x5c
cmp ax, di
jne 0x454ddb
xor eax, eax
mov word [esi], ax
nop dword [eax]
lea eax, [ebp - 0x288]
mov dword [ebp - 0x28c], 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x294], eax
cmp eax, 0xffffffff
jne 0x454df1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x454ebf
cmp eax, 2
je 0x454ebf
xor esi, esi
test ebx, ebx
je 0x454dea
push ebx
call fcn.00425080
add esp, 4
mov eax, esi
jmp 0x454ef8
lea eax, [ebp - 0x294]
mov dword [ebp - fcn.00458040], vtable.std::_Func_impl_no_alloc_class__int___cdecl_ETWUtil::DeleteReparsePoint_wchar_t_const___bool_::_2::_lambda_1___void___.0
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x290], eax
push eax
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 2
call fcn.00458040
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x454e56
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x2c0]
cmp ecx, eax
setne al
push eax
call edx
mov eax, dword [ebp - 0x14]
test dword [ebp - 0x288], 0x400
je 0x454e88
mov ecx, dword [ebp - 0x264]
cmp ecx, 0xa0000003
je 0x454e78
cmp ecx, 0xa000000c
jne 0x454e88
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
test eax, eax
je 0x454eae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x454eae
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
cmp dword [ebp - 0x28c], 0
mov byte [ebp - 4], 0
je 0x454ddb
xor eax, eax
cmp ax, di
je 0x454eec
lea eax, [esi + 2]
mov word [esi], di
push 0x5c
push eax
call fcn.004311d3
mov esi, eax
add esp, 8
test esi, esi
je 0x454ee5
movzx edi, word [esi]
jmp 0x454d97
xor edi, edi
jmp 0x454da0
mov esi, 1
jmp 0x454ddd
xor eax, eax
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.0042db8f
mov esp, ebp
pop ebp
ret