Function at 0x401a20
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x41c470]
xor eax, ebp
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
je 0x401a4c
mov edx, dword [ebp + 8]
movsx eax, word [edx]
cmp eax, 0x5c5c
jne 0x401a5b
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x401c91
mov dword [ebp - 0xc], 0
push 0
push 0x3f000
push 0
lea edx, [ebp - 0xc]
push edx
call sub.USER32.dll_DdeInitializeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401a84
xor eax, eax
jmp 0x401c91
push 0x3ec
push 0x416290
mov eax, dword [ebp - 0xc]
push eax
call sub.USER32.dll_DdeCreateStringHandleA
mov dword [ebp - 4], eax
push 0x3ec
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.USER32.dll_DdeCreateStringHandleA
mov dword [ebp - 0x10], eax
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.USER32.dll_DdeConnect
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 0x18], 0
je 0x401c62
push 0
push 0x2710
push 0x20b0
push 1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0
call sub.USER32.dll_DdeClientTransaction
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401c62
push 0
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call sub.USER32.dll_DdeGetData
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.0040a953
add esp, 4
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x401c62
mov edx, dword [ebp - 0x24]
mov byte [edx], 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.USER32.dll_DdeGetData
push 0x416298
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040a847
add esp, 8
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x138]
push ecx
push str._________
mov edx, dword [ebp - 0x28]
push edx
call fcn.0040a825
add esp, 0xc
push 0x4162ac
push 0
call fcn.0040a847
add esp, 8
test eax, eax
jne 0x401c4a
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0xffffffff
je 0x401bd6
mov ecx, dword [ebp - 0x13c]
and ecx, 0x10
je 0x401bd6
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x401bd4
mov dword [ebp - 8], 1
jmp 0x401c4a
mov eax, dword [ebp + 8]
push eax
push str._DeleteGroup___s___
lea ecx, [ebp - 0x248]
push ecx
call fcn.0040a733
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.USER32.dll_DdeCreateDataHandle
mov dword [ebp - 0x24c], eax
push 0
push 0x2710
push 0x4050
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24c]
push eax
call sub.USER32.dll_DdeClientTransaction
test eax, eax
je 0x401c4a
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x254], ecx
mov edx, dword [ebp - 0x254]
push edx
call fcn.0040a728
add esp, 4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.USER32.dll_DdeFreeStringHandle
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.USER32.dll_DdeFreeStringHandle
mov ecx, dword [ebp - 0x18]
push ecx
call sub.USER32.dll_DdeDisconnect
mov edx, dword [ebp - 0xc]
push edx
call sub.USER32.dll_DdeUninitialize
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00409fb6
mov esp, ebp
pop ebp
ret