Function at 0x60d2d86
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
test edi, edi
jne 0x60d2dd1
push 0x57
pop ecx
mov dword [ebx + 8], ecx
mov eax, dword [0x613af2c]
cmp eax, 0x613af2c
je 0x60d2dca
test byte [eax + 0x1c], 1
je 0x60d2dca
cmp byte [eax + 0x19], 2
jb 0x60d2dca
push ecx
push edi
push 0x612af50
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.060d3d61
add esp, 0x18
xor eax, eax
jmp 0x60d3050
push esi
call fcn.060d3159
test byte [ebp + 0x18], 1
je 0x60d2ff3
push 1
call fcn.060d43ff
pop ecx
test al, al
je 0x60d2ff3
push dword [ebp + 0x18]
xor esi, esi
push esi
push 4
push edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.060d3070
push esi
test eax, eax
jne 0x60d2e61
lea eax, [ebx + 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebx + 8], eax
test eax, eax
je 0x60d3047
mov ecx, dword [0x613af2c]
cmp ecx, 0x613af2c
je 0x60d3047
test byte [ecx + 0x1c], 1
je 0x60d3047
cmp byte [ecx + 0x19], 2
jb 0x60d3047
push eax
push edi
push 0x612af50
push 0xd
jmp 0x60d3039
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x14]
mov dword [ebp + 0xc], esi
push esi
push esi
push esi
push esi
push str.__volatile_test
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, ebx
mov dword [ebp - 4], eax
call fcn.060d3159
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x60d2f2e
cmp ecx, 0x3fd
je 0x60d2ed5
mov dword [ebx + 8], ecx
mov eax, dword [0x613af2c]
cmp eax, 0x613af2c
je 0x60d2fa6
test byte [eax + 0x1c], 1
je 0x60d2fa6
cmp byte [eax + 0x19], 3
jb 0x60d2fa6
push ecx
push edi
push 0x612af50
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x60d2f9e
push esi
lea eax, [ebx + 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebx + 8], eax
test eax, eax
je 0x60d3047
mov ecx, dword [0x613af2c]
cmp ecx, 0x613af2c
je 0x60d3047
test byte [ecx + 0x1c], 1
je 0x60d3047
cmp byte [ecx + 0x19], 2
jb 0x60d3047
push eax
push edi
push 0x612af50
push 0xe
jmp 0x60d3039
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x613af2c]
cmp eax, 0x613af2c
je 0x60d2f64
test byte [eax + 0x1c], 1
je 0x60d2f64
cmp byte [eax + 0x19], 3
jb 0x60d2f64
push 0x612af50
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.060c1d8a
add esp, 0x10
push edi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [ebx + 8], eax
test eax, eax
je 0x60d2fad
mov ecx, dword [0x613af2c]
cmp ecx, 0x613af2c
je 0x60d2fa6
test byte [ecx + 0x1c], 1
je 0x60d2fa6
cmp byte [ecx + 0x19], 2
jb 0x60d2fa6
push eax
push edi
push 0x612af50
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.060d3d61
add esp, 0x18
xor eax, eax
jmp 0x60d304f
push esi
lea eax, [ebx + 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebx + 8], eax
test eax, eax
je 0x60d3047
mov ecx, dword [0x613af2c]
cmp ecx, 0x613af2c
je 0x60d3047
test byte [ecx + 0x1c], 1
je 0x60d3047
cmp byte [ecx + 0x19], 2
jb 0x60d3047
push eax
push edi
push 0x612af50
push 0x12
jmp 0x60d3039
xor esi, esi
push esi
lea eax, [ebx + 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebx + 8], eax
test eax, eax
je 0x60d3047
mov ecx, dword [0x613af2c]
cmp ecx, 0x613af2c
je 0x60d3047
test byte [ecx + 0x1c], 1
je 0x60d3047
cmp byte [ecx + 0x19], 2
jb 0x60d3047
push eax
push edi
push 0x612af50
push 0xc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.060d3d61
add esp, 0x18
xor eax, eax
cmp dword [ebx + 4], esi
setne al
pop esi
pop edi
pop ebx
leave
ret 0x14