Function at 0x4a5c10
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645316
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x6d3438]
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 0x4a5ee7
xor eax, eax
cmp ax, word [esi]
je 0x4a5ee7
test edi, edi
je 0x4a5ee7
cmp ax, word [edi]
je 0x4a5ee7
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5c70
sub ecx, edx
sar ecx, 1
push ecx
push edi
push esi
call fcn.0061f9fc
add esp, 0xc
test eax, eax
jne 0x4a5ee7
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5c97
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 - 0x294], ecx
call fcn.00608193
mov ebx, eax
mov dword [ebp - 0x28c], eax
add esp, 4
test ebx, ebx
je 0x4a5ced
push dword [ebp - 0x294]
push 0
push ebx
call fcn.0060a8e0
add esp, 0xc
jmp 0x4a5cf5
xor ebx, ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x29c], ebx
push edi
push dword [ebp - 0x290]
mov dword [ebp - 4], 0
push ebx
call fcn.0060e2d8
add esp, 0xc
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a5d15
sub esi, ecx
xor eax, eax
sar esi, 1
lea edi, [ebx + esi*2]
movzx ebx, word [edi]
mov dword [ebp - 0x290], ebx
cmp ax, bx
je 0x4a5d45
mov eax, 0x5c
cmp ax, bx
jne 0x4a5ece
mov esi, dword [ebp - 0x28c]
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x288]
mov dword [ebp - 0x294], 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x298], eax
cmp eax, 0xffffffff
jne 0x4a5d90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x4a5e8e
cmp eax, 2
jne 0x4a5ed4
jmp 0x4a5e8e
lea eax, [ebp - 0x298]
mov dword [ebp - fcn.004a8df0], vtable.std::_Func_impl_no_alloc_class__int___cdecl_ETWUtil::DeleteReparsePoint_wchar_t_const___bool_::_2::_lambda_1___void___.0
mov dword [ebp - 0x2c4], eax
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2a4], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2a0], eax
push eax
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 2
call fcn.004a8df0
mov ecx, dword [ebp - 0x2a4]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ecx, ecx
je 0x4a5e0b
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x2c8]
cmp ecx, eax
mov ecx, esi
setne al
push eax
call dword [0x659730]
mov ecx, dword [ebp - 0x2a4]
call esi
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28c]
test dword [ebp - 0x288], 0x400
je 0x4a5e3b
mov eax, dword [ebp - 0x264]
cmp eax, 0xa0000003
je 0x4a5e2b
cmp eax, 0xa000000c
jne 0x4a5e3b
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x294], eax
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4a5e75
mov ecx, dword [ebx]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x659730]
mov ecx, ebx
call esi
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4a5e75
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ebx, eax
mov ecx, esi
setne al
push eax
call dword [0x659730]
mov ecx, ebx
call esi
cmp dword [ebp - 0x294], 0
mov esi, dword [ebp - 0x28c]
mov byte [ebp - 4], 0
je 0x4a5ed4
mov ebx, dword [ebp - 0x290]
xor eax, eax
cmp ax, bx
je 0x4a5ec7
lea eax, [edi + 2]
mov word [edi], bx
push 0x5c
push eax
call fcn.0060ad0b
mov edi, eax
add esp, 8
test edi, edi
je 0x4a5eba
movzx ebx, word [edi]
mov dword [ebp - 0x290], ebx
jmp 0x4a5d4b
xor ebx, ebx
mov dword [ebp - 0x290], ebx
jmp 0x4a5d50
mov edi, 1
jmp 0x4a5ed6
mov esi, dword [ebp - 0x28c]
xor edi, edi
test esi, esi
je 0x4a5ee3
push esi
call fcn.0060819c
add esp, 4
mov eax, edi
jmp 0x4a5ee9
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.00608185
mov esp, ebp
pop ebp
ret