Function at 0x402a10
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x427e61
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 0x402a4f
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x402c61
lea ecx, [esp + 0x30]
call fcn.0040623d
push 0x429a68
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x5c], 1
call fcn.00402830
add esp, 0xc
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 2
call fcn.004062d0
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 0x402aab
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 0x402c47
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop
lea ecx, [esp + 0x30]
call fcn.0040601e
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
call fcn.004064f8
mov eax, dword [eax]
push 0x429a64
or ebx, 1
push eax
mov byte [esp + 0x58], 3
mov dword [esp + 0x1c], ebx
call fcn.0040ebb5
add esp, 8
test eax, eax
je 0x402b23
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x34]
call fcn.004064f8
mov eax, dword [eax]
push 0x429a60
push eax
or ebx, 2
call fcn.0040ebb5
add esp, 8
test eax, eax
mov byte [esp + 0x13], 0
jne 0x402b28
mov byte [esp + 0x13], 1
test bl, 2
je 0x402b52
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 0x402b52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 1
mov dword [esp + 0x50], 1
je 0x402b80
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 0x402b80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
jne 0x402c3b
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
call fcn.00406459
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 0x402bc2
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 0x402c06
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ecx
lea ecx, [esp + 0x38]
call fcn.00406459
mov ecx, dword [esp + 0x28]
call fcn.00402a10
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x34]
call fcn.00406459
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esp + 0x28]
jmp 0x402c21
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
call fcn.00406459
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 0x402c3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jne 0x402ac0
mov ebp, dword [esp + 0x58]
lea ecx, [esp + 0x30]
call fcn.00405f4e
push ebp
call edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 0
call fcn.00406261
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 0x402c83
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