Function at 0x402990
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ec18
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d5ff0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x5d6cc0], 0
je 0x402bae
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
nop dword [eax]
cmp dword [edi + 0x1ac], 0
jbe 0x402a69
mov esi, dword [edi + 0x1a8]
lea ecx, [edi + 0xa8]
mov esi, dword [esi]
push dword [esi + 8]
call fcn.004105ae
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ecx
mov ecx, edi
call fcn.004036a0
mov ecx, dword [esi + 8]
lea edx, [edi + 0x1c8]
push eax
call fcn.00404fb0
mov eax, dword [edi + 0x1a8]
add esp, 8
mov esi, dword [eax]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
or eax, 0xffffffff
dec dword [edi + 0x1ac]
mov edx, dword [esi + 8]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402a5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.00406058
add esp, 4
jmp 0x402b82
cmp dword [edi + 0x1b4], 0
jbe 0x402b82
mov eax, dword [edi + 0x1b0]
lea ecx, [edi + 0xa8]
mov esi, dword [eax + 4]
push dword [esi + 8]
call fcn.004105ae
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x402b2e
mov esi, dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.00404100
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
mov esi, dword [edi + 0x1c8]
push eax
mov ebx, dword [esi + 4]
push ebx
push esi
call fcn.00403600
mov edx, dword [edi + 0x1cc]
mov ecx, 0xffffffe
sub ecx, edx
cmp ecx, 1
jb 0x402bc0
lea ecx, [edx + 1]
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x1cc], ecx
mov dword [esi + 4], eax
mov dword [ebx], eax
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402b28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [edi + 0x1b0]
mov esi, dword [eax + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
or eax, 0xffffffff
dec dword [edi + 0x1b4]
mov edx, dword [esi + 8]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402b67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.00406058
add esp, 4
push dword [0x5e15c8]
push 0
push 0x8066
push dword [edi + 0x20]
call ebx
mov eax, dword [edi + 0x1b4]
add eax, dword [edi + 0x1ac]
jne 0x402ba1
push eax
push eax
push 0x8067
push dword [edi + 0x20]
mov byte [0x5d6cc0], al
call ebx
cmp byte [0x5d6cc0], 0
jne 0x4029d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.00549348
int3