Function at 0x108898b
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10a6184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x101253c
push eax
push 0x1011cd8
xor edi, edi
push 0x10124d8
mov esi, ecx
lea eax, [ebp - 0x20c]
xor ecx, ecx
push 0x104
push eax
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
mov word [ebp - 0x20c], cx
call fcn.0103e1ed
add esp, 0x18
cmp eax, edi
jge 0x1088a38
mov ecx, dword [0x10a60d8]
cmp ecx, 0x10a60d8
je 0x1088cf7
test byte [ecx + 0x1c], 1
je 0x1088cf7
push eax
push 0x1012400
push 0x50
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010160ad
jmp 0x1088cf7
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push edi
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
cmp dword [esi + 0x280], edi
setne al
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1088a8d
mov ecx, dword [0x10a60d8]
cmp ecx, 0x10a60d8
je 0x1088cf7
test byte [ecx + 0x1c], 4
je 0x1088cf7
push eax
push 0x1012400
push 0x51
jmp 0x1088a28
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1088cf7
mov eax, dword [ebp - 0x210]
cmp eax, edi
jne 0x1088aed
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x1088cf7
test byte [eax + 0x1c], 4
je 0x1088cf7
push 0x1012400
push 0x52
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
jmp 0x1088cf7
push ebx
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x218], eax
mov ebx, 0x1012400
cmp eax, edi
jne 0x1088b49
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x1088c7f
test byte [eax + 0x1c], 1
je 0x1088c7f
mov ecx, dword [ebp - 0x210]
shl ecx, 2
push ecx
push ebx
push 0x53
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
jmp 0x1088c7f
cmp dword [ebp - 0x210], edi
jbe 0x1088c7f
push 0x20
pop esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x224], esi
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov ecx, dword [ebp - 0x218]
lea esi, [ecx + edi*4]
mov dword [esi], eax
test eax, eax
je 0x1088c2f
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
push ecx
lea eax, [ebp - 0x224]
push eax
mov dword [ebp - 0x21c], 8
push dword [esi]
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1088c5a
cmp dword [ebp - 0x220], 0xb
je 0x1088c07
cmp dword [ebp - 0x21c], 8
jne 0x1088c07
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x1088c20
test byte [eax + 0x1c], 2
je 0x1088c20
push dword [esi]
push dword [ebp - 0x220]
push ebx
push 0x56
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160d9
jmp 0x1088c20
mov eax, dword [ebp - 0x22c]
or eax, dword [ebp - 0x228]
je 0x1088c20
push dword [esi]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
and dword [esi], 0
pop ecx
inc edi
cmp edi, dword [ebp - 0x210]
jb 0x1088b55
jmp 0x1088c7d
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x1088c7d
test byte [eax + 0x1c], 1
je 0x1088c7d
mov ecx, dword [ebp - 0x224]
add ecx, ecx
push ecx
push ebx
push 0x54
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
jmp 0x1088c7d
mov ecx, dword [0x10a60d8]
cmp ecx, 0x10a60d8
je 0x1088c7d
test byte [ecx + 0x1c], 1
je 0x1088c7d
push eax
push ebx
push 0x55
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010160ad
xor edi, edi
cmp dword [ebp - 0x218], edi
je 0x1088cf6
cmp dword [ebp - 0x210], edi
jbe 0x1088cea
mov eax, dword [ebp - 0x218]
lea esi, [eax + edi*4]
mov eax, dword [esi]
test eax, eax
je 0x1088cdf
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1088cd4
mov ecx, dword [0x10a60d8]
cmp ecx, 0x10a60d8
je 0x1088cd4
test byte [ecx + 0x1c], 2
je 0x1088cd4
push eax
push dword [esi]
push ebx
push 0x57
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0103a48a
push dword [esi]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
and dword [esi], 0
pop ecx
inc edi
cmp edi, dword [ebp - 0x210]
jb 0x1088c8f
xor edi, edi
push dword [ebp - 0x218]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
pop ebx
cmp dword [ebp - 0x214], edi
pop edi
pop esi
je 0x1088d0d
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01039921
leave
ret 4