Function at 0x102c077
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea eax, [ebp - 0x518]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002670
mov edi, 0x80000001
push edi
mov dword [ebp - 0x518], esi
call ebx
test eax, eax
jne 0x102c0e9
push 0x10052e8
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x10052c0
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1005258
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x518]
push eax
push 0x20019
push esi
push 0x10024d8
push edi
mov dword [ebp - 0x518], esi
call ebx
test eax, eax
jne 0x102c131
push 0x1005238
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x518]
push eax
push 0x2001f
push esi
push 0x10051e8
push edi
call ebx
test eax, eax
jne 0x102c1a2
mov dword [ebp - 0x520], 0x80
jmp 0x102c173
lea eax, [ebp - 0x30c]
push eax
push dword [ebp - 0x518]
mov dword [ebp - 0x520], 0x80
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x30c]
push eax
push esi
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x102c156
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x518]
push eax
push 2
push esi
push 0x1002db8
push edi
call ebx
test eax, eax
jne 0x102c1e3
xor ebx, ebx
push dword [ebx + 0x10022c0]
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add ebx, 4
cmp ebx, 0xa0
jb 0x102c1ba
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x518]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x1002db8
push edi
mov dword [ebp - 0x51c], esi
mov dword [ebp - 0x518], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x102c25f
push 4
lea eax, [ebp - 0x51c]
push eax
push 4
push esi
push 0x10051b0
push dword [ebp - 0x518]
call ebx
push 4
lea eax, [ebp - 0x51c]
push eax
push 4
push esi
push 0x1005184
push dword [ebp - 0x518]
mov dword [ebp - 0x51c], 1
push esi
call fcn.0103376e
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x518]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x1005118
push edi
mov dword [ebp - 0x518], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102c34b
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x26fd
push dword [0x1047500]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x102c2db
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x102c2b1
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push 0x1005108
push dword [ebp - 0x518]
call ebx
push 0x104
push 1
lea eax, [ebp - 0x514]
push eax
call fcn.01034382
test eax, eax
je 0x102c33f
push 0x100219c
push 0x104
lea eax, [ebp - 0x514]
push eax
call fcn.01028adc
test eax, eax
jl 0x102c33f
lea eax, [ebp - 0x514]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x102c315
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x514]
push eax
push 1
push esi
push 0x10050f8
push dword [ebp - 0x518]
call ebx
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x518]
push eax
push 2
push esi
push 0x1005040
push edi
mov dword [ebp - 0x518], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102c3cb
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xa4
push dword [0x1047500]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x102c3bf
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x102c395
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push 0x1004e94
push dword [ebp - 0x518]
call ebx
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret