Function at 0xd9654
Capabilities:
Delete file
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0xd965c
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xd9a8d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0xd9695
lea edx, [ebp - 0x2c]
mov eax, 0xd9a9c
call fcn.0007a2b0
mov eax, dword [ebp - 0x2c]
call fcn.000d90ec
jmp 0xd9a6a
lea edx, [ebp - 0x34]
mov eax, 0xd9aac
call fcn.0007a2b0
push dword [ebp - 0x34]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0007b240
push dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
mov eax, 0xd9ac8
call fcn.0007a2b0
push dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00013fb8
mov eax, dword [ebp - 0x30]
call fcn.000d90c4
mov dword [ebp - 0x10], 0xffffffff
push 0
call sub.kernel32.dll_SetLastError
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0007b240
mov eax, dword [ebp - 0x18]
call fcn.00013ef8
cmp eax, 2
jl 0xd976b
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0x22
jne 0xd9718
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, 1
call fcn.00014140
mov eax, dword [ebp - 0x18]
call fcn.00013ef8
mov edx, dword [ebp - 0x18]
cmp byte [edx + eax - 1], 0x22
jne 0xd9741
mov eax, dword [ebp - 0x18]
call fcn.00013ef8
mov edx, eax
lea eax, [ebp - 0x18]
mov ecx, 1
call fcn.00014140
mov eax, dword [ebp - 0x18]
call fcn.000140bc
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0xd975d
call fcn.000d905c
mov dword [ebp - 0x10], eax
jmp 0xd9762
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, 0x400
call fcn.0007b534
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0xd9961
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0xd9acc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0xd9902
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0xd9b10
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.0007aaa4
test eax, eax
jne 0xd9872
cmp dword [ebp - 0x14], 2
je 0xd9802
cmp dword [ebp - 0x14], 1
jne 0xd9872
cmp dword [ebp - 0x1c], 3
jb 0xd9872
mov eax, dword [ebp - 0xc]
call fcn.0007aa30
cmp eax, dword [ebp - 0x1c]
jbe 0xd9872
mov eax, dword [ebp - 0xc]
call fcn.0007aa88
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0xd9872
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x44]
mov eax, 0xd9b24
call fcn.0007a2b0
push dword [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0xc]
call fcn.0007aa68
push dword [ebp - 0x48]
lea edx, [ebp - 0x4c]
mov eax, 0xd9ac8
call fcn.0007a2b0
push dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00013fb8
mov eax, dword [ebp - 0x40]
call fcn.000d90c4
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x10]
call fcn.000766dc
mov eax, dword [ebp - 0x50]
call fcn.000d90c4
push 0xd9b10
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
je 0xd98b9
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x54]
mov eax, 0xd9b4c
call fcn.0007a2b0
lea eax, [ebp - 0x54]
push eax
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x10]
call fcn.000766dc
mov edx, dword [ebp - 0x58]
pop eax
call fcn.00013f00
mov eax, dword [ebp - 0x54]
call fcn.000d90c4
push 0xd9b7c
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
je 0xd9937
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x5c]
mov eax, 0xd9b8c
call fcn.0007a2b0
lea eax, [ebp - 0x5c]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x10]
call fcn.000766dc
mov edx, dword [ebp - 0x60]
pop eax
call fcn.00013f00
mov eax, dword [ebp - 0x5c]
call fcn.000d90c4
jmp 0xd9937
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x64]
mov eax, 0xd9bbc
call fcn.0007a2b0
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x10]
call fcn.000766dc
mov edx, dword [ebp - 0x68]
pop eax
call fcn.00013f00
mov eax, dword [ebp - 0x64]
call fcn.000d90c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd9968
cmp dword [ebp - 0x20], 0
je 0xd9953
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
call fcn.0007b558
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd9a94
lea eax, [ebp - 0x7c]
mov edx, 0x16
call fcn.00013c9c
lea eax, [ebp - 0x18]
call fcn.00013c78
ret