Function at 0x661bc
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x35
push 0
push 0
dec ecx
jne 0x661c4
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00013e88
lea eax, [ebp - 0x160]
mov edx, dword [0x25430]
call fcn.000146a4
xor eax, eax
push ebp
push GetMenuState
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
inc dword [eax - 4]
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0001902c
lea eax, [ebp - 0x164]
mov ecx, CheckMenuItem
mov edx, dword [ebp - 8]
call fcn.00013d20
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
mov edx, 0x66
call fcn.00026414
test eax, eax
jne GetMenu
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x66276
lea edx, [ebp - 0x16c]
mov eax, dword [ebp - 0x154]
call fcn.00019e78
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x168]
call fcn.00018ebc
mov eax, dword [ebp - 0x168]
mov edx, 0x66550
call fcn.00013de4
je 0x662bc
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00013d20
mov eax, dword [ebp - 0x170]
xor edx, edx
call fcn.00019004
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00013d20
mov eax, dword [ebp - 0x174]
call fcn.00013e98
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x160]
call fcn.00026464
test eax, eax
je 0x66239
lea eax, [ebp - 0x160]
call fcn.00026488
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0x3e8
jae GetDesktopWindow
lea eax, [ebp - 0x178]
mov ecx, CheckMenuItem
mov edx, dword [ebp - 8]
call fcn.00013d20
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x160]
mov edx, 0x37
call fcn.00026414
test eax, eax
jne reloc.user32.dll_EnableWindow
mov eax, dword [ebp - 0x154]
mov edx, 0x66560
call fcn.00013de4
je 0x663c7
mov eax, dword [ebp - 0x154]
mov edx, 0x6656c
call fcn.00013de4
je 0x663c7
test byte [ebp - 0x158], 0x10
je 0x663c7
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00013d20
mov eax, dword [ebp - 0x17c]
mov edx, 0x10
call fcn.00019004
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x154]
push FillRect
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.00013d94
mov eax, dword [ebp - 0x180]
call fcn.000661bc
pop ecx
lea eax, [ebp - 0x184]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00013d20
mov eax, dword [ebp - 0x184]
call fcn.00013e98
push eax
call sub.kernel32.dll_RemoveDirectoryA
lea eax, [ebp - 0x160]
call fcn.00026464
test eax, eax
je GetCursor
lea eax, [ebp - 0x160]
call fcn.00026488
lea edx, [ebp - 0x18c]
mov eax, dword [ebp - 8]
call fcn.0001902c
mov eax, dword [ebp - 0x18c]
lea edx, [ebp - 0x188]
call fcn.00018ebc
mov eax, dword [ebp - 0x188]
push eax
lea edx, [ebp - 0x194]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0001902c
mov eax, dword [ebp - 0x194]
lea edx, [ebp - 0x190]
call fcn.00018ebc
mov edx, dword [ebp - 0x190]
pop eax
call fcn.00013de4
jne 0x66448
mov eax, dword [ebp + 8]
cmp byte [eax - 9], 0
je DrawFrameControl
mov eax, dword [ebp - 8]
call fcn.00013e98
push eax
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
je DestroyIcon
mov eax, dword [ebp + 8]
cmp dword [eax - 0x10], 0
je DispatchMessageA
lea eax, [ebp - 0x19c]
mov ecx, dword [ebp - 8]
mov edx, 0x66584
call fcn.00013d20
mov edx, dword [ebp - 0x19c]
lea ecx, [ebp - 0x198]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00037ef4
jmp 0x664f1
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x10], 0
je DestroyCursor
lea eax, [ebp - 0x1a4]
mov ecx, dword [ebp - 8]
mov edx, 0x66584
call fcn.00013d20
mov edx, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x1a0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00038234
lea edx, [ebp - 0x1ac]
mov eax, ebx
call fcn.00018f2c
mov edx, dword [ebp - 0x1ac]
lea ecx, [ebp - 0x1a8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00037ef4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push ClientToScreen
lea eax, [ebp - 0x1ac]
mov edx, 0x13
call fcn.00013a78
lea eax, [ebp - 0x160]
mov edx, dword [0x25430]
call fcn.00014770
lea eax, [ebp - 8]
mov edx, 2
call fcn.00013a78
ret