Function at 0x409a40
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x432641
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x58]
cmp dword [ebp - 0xc], ebx
mov dword [esp + 0x50], ebx
jne 0x409a7f
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x409c91
lea ecx, [esp + 0x30]
call fcn.0040efd4
push 0x435740
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x5c], 1
call fcn.00404c70
add esp, 0xc
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 2
call fcn.0040f067
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x50], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409adb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
je 0x409c77
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop
lea ecx, [esp + 0x30]
call fcn.0040edb5
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
call fcn.0040f28f
mov eax, dword [eax]
push 0x43573c
or ebx, 1
push eax
mov byte [esp + 0x58], 3
mov dword [esp + 0x1c], ebx
call fcn.004181e3
add esp, 8
test eax, eax
je 0x409b53
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040f28f
mov eax, dword [eax]
push 0x435738
push eax
or ebx, 2
call fcn.004181e3
add esp, 8
test eax, eax
mov byte [esp + 0x13], 0
jne 0x409b58
mov byte [esp + 0x13], 1
test bl, 2
je 0x409b82
mov eax, dword [esp + 0x18]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409b82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 1
mov dword [esp + 0x50], 1
je 0x409bb0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
jne 0x409c6b
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
call fcn.0040f1f0
mov eax, dword [eax]
push 0x80
push eax
call ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
call dword [eax + 0x38]
test eax, eax
je 0x409c36
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ecx
lea ecx, [esp + 0x38]
call fcn.0040f1f0
mov ecx, dword [esp + 0x28]
call fcn.00409a40
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x34]
call fcn.0040f1f0
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esp + 0x28]
jmp 0x409c51
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
call fcn.0040f1f0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jne 0x409af0
mov ebp, dword [esp + 0x58]
lea ecx, [esp + 0x30]
call fcn.0040ece5
push ebp
call edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 0
call fcn.0040eff8
lea eax, [ebp - 0x10]
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409cb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 4