Function at 0x402b31
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf50
push ebx
push esi
mov esi, 0x208
xor ebx, ebx
push esi
lea eax, [ebp - 0xb40]
push ebx
push eax
call fcn.00406340
push esi
lea eax, [ebp - 0xd48]
push ebx
push eax
call fcn.00406340
add esp, 0x18
cmp dword [0x4765b4], ebx
jne 0x402bbc
lea eax, [ebp - 0xb40]
push eax
push ebx
call fcn.00402ae3
lea eax, [ebp - 0xb40]
push 3
push eax
lea eax, [ebp - 0xd48]
push eax
call fcn.00406980
lea eax, [ebp - 0xd48]
push eax
call fcn.00402af9
push dword [ebp + 8]
inc dword [0x4765b4]
call fcn.00402b31
lea eax, [ebp - 0xb40]
push eax
call fcn.00402af9
add esp, 0x20
xor eax, eax
jmp 0x402ecf
push edi
push esi
lea eax, [ebp - 0x730]
push ebx
push eax
call fcn.00406340
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x730]
push edi
push eax
call fcn.00406600
lea eax, [ebp - 0x730]
push eax
call fcn.00405ed0
add esp, 0x18
cmp byte [ebp + eax - 0x731], 0x5c
je 0x402c0f
cmp byte [ebp - 0x730], bl
je 0x402c0f
lea eax, [ebp - 0x730]
push 0x410960
push eax
call fcn.00406610
pop ecx
pop ecx
lea eax, [ebp - 0x730]
push 0x410598
push eax
call fcn.00406610
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0xf50]
push eax
call fcn.00406600
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xf50]
push eax
call fcn.0040738f
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x402ec3
test byte [ebp - 0x118], 7
je 0x402c71
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.00407684
pop ecx
pop ecx
test byte [ebp - 0x118], 0x10
je 0x402cc3
lea eax, [ebp - 0x104]
push 0x410964
push eax
call fcn.00407600
pop ecx
test eax, eax
pop ecx
je 0x402cd0
lea eax, [ebp - 0x104]
push 0x41095c
push eax
call fcn.00407600
pop ecx
test eax, eax
pop ecx
je 0x402cd0
lea eax, [ebp - 0x104]
push eax
call fcn.00402b31
lea eax, [ebp - 0x104]
push eax
call fcn.004075d6
pop ecx
jmp 0x402ccf
lea eax, [ebp - 0x104]
push eax
call fcn.004075a1
pop ecx
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call fcn.00407459
pop ecx
test eax, eax
pop ecx
jne 0x402ec3
test byte [ebp - 0x118], 7
je 0x402d79
push esi
lea eax, [ebp - 0x320]
push ebx
push eax
call fcn.00406340
lea eax, [ebp - 0x320]
push edi
push eax
call fcn.00406600
lea eax, [ebp - 0x320]
push edi
push eax
call fcn.00406600
lea eax, [ebp - 0x320]
push eax
call fcn.00405ed0
add esp, 0x20
cmp byte [ebp + eax - 0x321], 0x5c
je 0x402d52
cmp byte [ebp - 0x320], bl
je 0x402d52
lea eax, [ebp - 0x320]
push 0x410960
push eax
call fcn.00406610
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.00406610
pop ecx
lea eax, [ebp - 0x320]
pop ecx
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [ebp - 0x118], 0x10
je 0x402e4d
lea eax, [ebp - 0x104]
push 0x410964
push eax
call fcn.00407600
pop ecx
test eax, eax
pop ecx
je 0x402cd0
lea eax, [ebp - 0x104]
push 0x41095c
push eax
call fcn.00407600
pop ecx
test eax, eax
pop ecx
je 0x402cd0
push esi
lea eax, [ebp - 0x528]
push ebx
push eax
call fcn.00406340
lea eax, [ebp - 0x528]
push edi
push eax
call fcn.00406600
lea eax, [ebp - 0x528]
push eax
call fcn.00405ed0
add esp, 0x18
cmp byte [ebp + eax - 0x529], 0x5c
je 0x402e0b
cmp byte [ebp - 0x528], bl
je 0x402e0b
lea eax, [ebp - 0x528]
push 0x410960
push eax
call fcn.00406610
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.00406610
lea eax, [ebp - 0x528]
push eax
call fcn.00402b31
add esp, 0xc
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x402cd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402cd0
push esi
lea eax, [ebp - 0x938]
push ebx
push eax
call fcn.00406340
lea eax, [ebp - 0x938]
push edi
push eax
call fcn.00406600
lea eax, [ebp - 0x938]
push eax
call fcn.00405ed0
add esp, 0x18
cmp byte [ebp + eax - 0x939], 0x5c
je 0x402e9c
cmp byte [ebp - 0x938], bl
je 0x402e9c
lea eax, [ebp - 0x938]
push 0x410960
push eax
call fcn.00406610
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x938]
push eax
call fcn.00406610
lea eax, [ebp - 0x938]
push eax
call fcn.004075a1
add esp, 0xc
jmp 0x402cd0
push dword [ebp + 8]
call fcn.0040751e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret