Function at 0x4ffa70
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0xd
rep stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x4ffaa1
mov edx, dword [ebp - 0x10]
inc dword [edx]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
call fcn.004ff700
cmp al, 0
jne 0x4ffad5
mov bl, 0
cmp dword [ebp - 0x10], 0
je 0x4ffacb
mov ecx, dword [ebp - 0x10]
call fcn.00589d70
mov al, bl
lea esp, [ebp - 4]
pop ebx
pop ebp
ret 8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0058a690
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, 0
je 0x4ffb47
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20019
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0058a690
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, 0
je 0x4ffb47
mov bl, 0
cmp dword [ebp - 0x10], 0
je 0x4ffb3d
mov ecx, dword [ebp - 0x10]
call fcn.00589d70
mov al, bl
lea esp, [ebp - 4]
pop ebx
pop ebp
ret 8
cmp dword [ebp - 0x14], 1
jne 0x4ffb88
cmp byte [ebp + 0xc], 0
jne 0x4ffb88
mov ecx, dword [ebp + 8]
call fcn.0058a690
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 0
cmp dword [ebp - 0x10], 0
je 0x4ffb7e
mov ecx, dword [ebp - 0x10]
call fcn.00589d70
mov al, bl
lea esp, [ebp - 4]
pop ebx
pop ebp
ret 8
mov dword [ebp - 0x28], 0
push 0x5fb074
call fcn.0040d340
pop ecx
push eax
push 0x5fb074
lea ecx, [ebp - 0x28]
call fcn.00589f70
cmp dword [ebp - 0x28], 0
je 0x4ffbba
mov ebx, dword [ebp - 0x28]
mov edx, dword [0x63df30]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.0058a7b0
cmp dword [ebp - 0x28], 0
je 0x4ffbd7
mov ecx, dword [ebp - 0x28]
call fcn.00589d70
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
je 0x4ffc04
mov edx, dword [ebp - 0x2c]
inc dword [edx]
lea eax, [ebp - 0x24]
push eax
push 0x5c
lea eax, [ebp - 0x2c]
push eax
call fcn.0056b0f0
add esp, 0xc
cmp dword [ebp - 0x2c], 0
je 0x4ffc24
mov ecx, dword [ebp - 0x2c]
call fcn.00589d70
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 1
jle 0x4ffc8c
dec dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
jmp 0x4ffc84
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x34], eax
jb 0x4ffc4d
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x34]
lea edx, [edx*4]
add edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.0058a9b0
mov edx, dword [ebp - 0x30]
add edx, 0xffffffff
cmp dword [ebp - 0x34], edx
jge 0x4ffc81
push 0x5fb075
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.0058a840
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x34], eax
jl 0x4ffc3c
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 8
call fcn.0058a7b0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
mov bl, 1
cmp dword [ebp - 0x20], 0
je 0x4ffcba
push 0x402120
push dword [ebp - 0x20]
call fcn.0058bbd0
pop ecx
pop ecx
cmp dword [ebp - 0x10], 0
je 0x4ffcc8
mov ecx, dword [ebp - 0x10]
call fcn.00589d70
mov al, bl
lea esp, [ebp - 4]
pop ebx
pop ebp
ret 8