Function at 0x102b953
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], 1
mov dword [ebp - 0x210], 3
call fcn.010363d6
test eax, eax
je 0x102b998
mov dword [ebp - 0x210], 0x103
call fcn.010309f6
test eax, eax
jne 0x102bccb
cmp dword [ebp + 8], esi
push ebx
setne al
push edi
push dword [ebp + 8]
mov dword [ebp - 0x20c], eax
call fcn.0102b6e6
push esi
lea eax, [ebp - 0x208]
push eax
push esi
push dword [ebp - 0x210]
mov ebx, 0x80000002
push esi
push esi
push esi
push 0x1002c08
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x102ba0d
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push esi
push 0x1002bec
push dword [ebp - 0x208]
call edi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x208]
push eax
push esi
push dword [ebp - 0x210]
push esi
push esi
push esi
push 0x1004ec8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102ba54
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push esi
push 0x1004eb8
push dword [ebp - 0x208]
call edi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x208]
push eax
push esi
push dword [ebp - 0x210]
push esi
push esi
push esi
push 0x1004310
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102bcc9
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push esi
push 0x1004ea8
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 2
call edi
push 0xff
lea eax, [ebp - 0x204]
push eax
call fcn.01034891
test eax, eax
je 0x102bc21
mov ebx, dword [sym.imp.msvcrt.dll_wcsstr]
mov dword [ebp - 0x214], esi
jmp 0x102bac9
mov word [eax], 0x2c
lea eax, [ebp - 0x204]
push 0x1003544
push eax
call ebx
cmp eax, esi
pop ecx
pop ecx
jne 0x102bac4
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x102bae6
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push 1
push esi
mov ebx, 0x10043cc
push ebx
push dword [ebp - 0x208]
call edi
cmp dword [ebp + 8], esi
jne 0x102bc11
push esi
lea eax, [ebp - 0x214]
push eax
push esi
push dword [ebp - 0x210]
push esi
push esi
push esi
push 0x1004310
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102bbc8
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x102bb4d
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push 1
push esi
push ebx
push dword [ebp - 0x214]
call edi
push 0x1004ea4
push 0x100
lea eax, [ebp - 0x204]
push eax
call fcn.01028a67
lea eax, [ebp - 0x204]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x102bb92
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push 1
push esi
push 0x1004e94
push dword [ebp - 0x214]
call edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x20c], ebx
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push esi
push 0x10023e0
push dword [ebp - 0x208]
call edi
push 0xff
lea eax, [ebp - 0x204]
push eax
call fcn.01033bb5
test eax, eax
je 0x102bc73
cmp dword [ebp + 8], esi
lea eax, [ebp - 0x204]
je 0x102bc31
push 0x1004e80
jmp 0x102bc36
push 0x1004310
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp + 8], esi
je 0x102bbc8
xor ebx, ebx
mov dword [ebp - 0x20c], esi
inc ebx
jmp 0x102bbd1
push 0x1004e6c
push 0x100
push eax
call fcn.01028adc
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x102bc4a
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
push esi
push 0x1004e58
push dword [ebp - 0x208]
call edi
push 4
push 0x1004ea4
push ebx
push esi
push 0x1004e94
push dword [ebp - 0x208]
push esi
call fcn.0103376e
push 0x14
push 0x1004e44
push ebx
push esi
push 0x1004e2c
push dword [ebp - 0x208]
push esi
call fcn.0103376e
push 0x2a
push 0x1004e00
push ebx
push esi
push esi
push dword [ebp - 0x208]
push esi
call fcn.0103376e
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01031a01
leave
ret 4