Function at 0x4061a0
Capabilities:
Check if file exists
Delete directory
Delete registry key
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530e57
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x434]
call fcn.00416071
mov dword [ebp - 4], 0
call fcn.00411397
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4061fc
push 0x80004005
call fcn.00402a60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
call fcn.00416d7f
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [ebp - 0x414]
call fcn.005226eb
push str.Global418CB57F_4D6E_4777_B82C_939EE9F77B14
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 2
call fcn.00522729
test eax, eax
je 0x406259
lea ecx, [ebp - 0x414]
call fcn.005226f1
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 1
call fcn.00522724
lea ecx, [ebp - 0x414]
call fcn.005226eb
push str.Global81337D25_2EF5_4549_8BD9_971DC0693E29
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 3
call fcn.00522729
test eax, eax
je 0x406296
lea ecx, [ebp - 0x414]
call fcn.005226f1
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 1
call fcn.00522724
lea ecx, [ebp - 0x414]
call fcn.005226eb
push str.Global091FF15A_3D97_40D4_B085_284E3ABB8EBC
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 4
call fcn.00522729
test eax, eax
je 0x4062d3
lea ecx, [ebp - 0x414]
call fcn.005226f1
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 1
call fcn.00522724
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.SoftwareRzxEnterprise
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, edi
call fcn.00405960
mov ecx, edi
call fcn.00405c00
lea ecx, [ebp - 0x410]
push ecx
call fcn.00520038
add esp, 4
call fcn.004055b0
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406328
sub eax, edx
cmp byte [ebp + eax - 0x411], 0x5c
lea eax, [ebp + eax - 0x411]
jne 0x406344
mov byte [eax], cl
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.004057d0
mov edx, dword [ebp - 0x42c]
lea ecx, [ebp - 0x410]
push ecx
push edx
lea ecx, [ebp - 0x434]
call fcn.0041645a
movzx eax, word [ebp - 0x42c]
mov ecx, dword [edi + 0xbc]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
shl eax, 0x10
or eax, 1
push eax
push 0
push 0x401
push ecx
call esi
mov edx, dword [edi + 0xbc]
push 0
push 1
push 0x404
push edx
call esi
mov ecx, dword [ebp - 0x42c]
xor eax, eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x438], ecx
test ecx, ecx
jg 0x40649c
lea edx, [ebp - 0x410]
push edx
call fcn.0051ef7a
add esp, 4
cmp byte [edi + 0x98], 0
je 0x4063f9
push 0
push 0x540b7c
push 0x5411b0
mov ecx, edi
call fcn.0040a641
push 0
call fcn.0052249c
add esp, 4
mov eax, dword [ebp - 0x42c]
mov ecx, dword [edi + 0xbc]
push 0
push eax
push 0x402
push ecx
call esi
mov edx, dword [edi + 0x20]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
call fcn.00416d7f
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406459
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
call fcn.004162af
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00506042
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x41c]
test eax, eax
js 0x40659c
cmp eax, ecx
jge 0x40659c
mov ecx, dword [ebp - 0x430]
mov ecx, dword [ecx + eax*4]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x40651a
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x406504
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x406504
push eax
call fcn.00405e10
mov dword [ebp - 0x420], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4064f3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ebx, dword [ebp - 0x420]
add ebx, 0x10
mov dword [ebp - 0x418], ebx
jmp 0x40651a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x418]
call fcn.004032d0
mov ebx, dword [ebp - 0x418]
cmp byte [edi + 0x99], 0
jne 0x406541
mov ecx, dword [edi + 0xbc]
push 0
push 0
push 0x405
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406578
push ebx
test al, 0x10
je 0x40655a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x406562
call fcn.0051eef6
add esp, 4
test eax, eax
jne 0x406578
push eax
push eax
push ebx
call fcn.0051f224
add esp, 0xc
mov byte [edi + 0x98], 1
mov eax, dword [ebp - 0x41c]
inc eax
mov dword [ebp - 0x41c], eax
cmp eax, dword [ebp - 0x438]
jl 0x406490
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4063c4
call fcn.00410d70
int3