Function at 0x454990
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4714e6
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x491bb8]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491bb8]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28c]
xor ebp, ebp
mov byte [esp + 0x17], 1
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x274], ebp
mov eax, dword [edi]
push 0x479484
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov esi, esp
push eax
mov dword [esp + 0x290], ebp
call fcn.004118cb
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x24]
add esp, 4
push eax
call fcn.00415842
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
call fcn.004543d0
mov bl, al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454a49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov ebx, dword [esp + 0x290]
je 0x454b85
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.004118cb
lea edx, [esp + 0x24]
add esp, 4
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.00415842
add esp, 0xc
mov eax, dword [esp + 0x24]
test al, 0x10
mov byte [esp + 0x284], 1
je 0x454ad4
mov cx, word [esp + 0x50]
cmp cx, bp
je 0x454ab4
cmp cx, 0x2e
jne 0x454ab4
mov cx, word [esp + 0x52]
cmp cx, bp
je 0x454ad4
cmp cx, 0x2e
je 0x454ad4
test bl, 2
je 0x454b30
mov eax, dword [esp + 0x294]
add eax, 1
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00454990
add esp, 0xc
jmp 0x454b1e
mov edx, eax
shr edx, 4
not dl
test dl, 1
je 0x454b30
test al, 1
je 0x454b0e
test bl, 4
je 0x454b22
mov eax, dword [esp + 0x18]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x454b22
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x454b22
jmp 0x454b30
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
jne 0x454b30
test bl, 8
jne 0x454bd0
mov byte [esp + 0x17], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x284], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454b58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x454b78
mov dword [esp + 0x274], ebp
jmp 0x454a58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x274], eax
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x454b9e
push eax
call esi
or eax, 0xffffffff
mov dword [esp + 0x20], eax
cmp dword [esp + 0x294], ebp
mov dword [esp + 0x274], ebp
jne 0x454bb3
test bl, 1
je 0x454c0c
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [esp + 0x20]
jne 0x454c0c
cmp eax, 0xffffffff
je 0x454c08
push eax
call esi
xor al, al
jmp 0x454c18
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x284], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454bf8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x454c08
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x454c18
cmp eax, 0xffffffff
je 0x454c14
push eax
call esi
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.0043b70c
add esp, 0x274
ret