Function at 0x106af2e
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x1075004]
mov edi, 0x1075004
mov esi, 0x10064f8
cmp eax, edi
je 0x106af6d
test byte [eax + 0x1c], 2
je 0x106af6d
cmp byte [eax + 0x19], 5
jb 0x106af6d
push esi
push 0x69
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea eax, [ebp - 8]
push eax
push 0x20006
push ebx
push 0x1006948
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
xor eax, eax
cmp ebx, eax
je 0x106afbf
mov eax, dword [0x1075004]
cmp eax, edi
je 0x106b237
test byte [eax + 0x1c], 2
je 0x106b237
cmp byte [eax + 0x19], 2
jb 0x106b237
push ebx
push esi
push 0x6a
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x106b232
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0x2000000
push eax
push eax
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
je 0x106b017
mov eax, dword [0x1075004]
cmp eax, edi
je 0x106b185
test byte [eax + 0x1c], 2
je 0x106b185
cmp byte [eax + 0x19], 2
jb 0x106b185
push ebx
push dword [ebp + 0xc]
push esi
push 0x6b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
jmp 0x106b185
push dword [ebp + 0xc]
push 0x1006594
push dword [ebp - 4]
call fcn.010603f5
test eax, eax
jne 0x106b05d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x106b185
test byte [eax + 0x1c], 2
je 0x106b185
cmp byte [eax + 0x19], 2
jb 0x106b185
push ebx
push esi
push 0x6c
jmp 0x106b152
push dword [ebp + 0x10]
push 0x10065cc
push dword [ebp - 4]
call fcn.01060415
test eax, eax
jne 0x106b0a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x106b185
test byte [eax + 0x1c], 2
je 0x106b185
cmp byte [eax + 0x19], 2
jb 0x106b185
push ebx
push esi
push 0x6d
jmp 0x106b152
push dword [ebp + 0x14]
push 0x10065b0
push dword [ebp - 4]
call fcn.010603f5
test eax, eax
jne 0x106b0e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x106b185
test byte [eax + 0x1c], 2
je 0x106b185
cmp byte [eax + 0x19], 2
jb 0x106b185
push ebx
push esi
push 0x6e
jmp 0x106b152
push dword [ebp + 8]
push 0x1006588
push dword [ebp - 4]
call fcn.010603f5
test eax, eax
jne 0x106b11d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x106b185
test byte [eax + 0x1c], 2
je 0x106b185
cmp byte [eax + 0x19], 2
jb 0x106b185
push ebx
push esi
push 0x6f
jmp 0x106b152
push dword [ebp + 0x18]
push 0x10065e0
push dword [ebp - 4]
call fcn.010602f7
test eax, eax
jne 0x106b15f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x106b185
test byte [eax + 0x1c], 2
je 0x106b185
cmp byte [eax + 0x19], 2
jb 0x106b185
push ebx
push esi
push 0x70
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x106b185
mov eax, dword [0x1075004]
cmp eax, edi
je 0x106b1c7
test byte [eax + 0x1c], 2
je 0x106b1c7
cmp byte [eax + 0x19], 5
jb 0x106b1c7
push dword [ebp + 0xc]
push esi
push 0x71
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091b8
xor eax, eax
cmp ebx, eax
je 0x106b1c7
cmp dword [ebp - 8], eax
je 0x106b1ff
push eax
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x106b1c7
mov ecx, dword [0x1075004]
cmp ecx, edi
je 0x106b1c7
test byte [ecx + 0x1c], 2
je 0x106b1c7
cmp byte [ecx + 0x19], 2
jb 0x106b1c7
push eax
push esi
push 0x72
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
cmp dword [ebp - 8], 0
je 0x106b1ff
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x106b1ff
mov ecx, dword [0x1075004]
cmp ecx, edi
je 0x106b1ff
test byte [ecx + 0x1c], 2
je 0x106b1ff
cmp byte [ecx + 0x19], 2
jb 0x106b1ff
push eax
push esi
push 0x73
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
cmp dword [ebp - 4], 0
je 0x106b237
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x106b237
mov ecx, dword [0x1075004]
cmp ecx, edi
je 0x106b237
test byte [ecx + 0x1c], 2
je 0x106b237
cmp byte [ecx + 0x19], 2
jb 0x106b237
push eax
push esi
push 0x74
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14