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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x102a0ec]
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x41c], 1
mov ebx, 0x80000001
je 0x102703e
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push esi
push 0x100c030
push ebx
call edi
test eax, eax
jne 0x102703e
push 0x102c268
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x102c060
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x102be58
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x102c470
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x420]
push eax
push 0x2001f
push esi
push 0x100bfd0
push ebx
call edi
test eax, eax
jne 0x1027224
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x424]
mov dword [ebp - 0x428], 0x208
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10270c5
cmp dword [ebp - 0x41c], 1
je 0x10270a3
cmp dword [ebp - 0x41c], 2
jne 0x10270c5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.0101b4c4
test eax, eax
je 0x1027218
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push esi
push 0x100bf68
push ebx
call edi
test eax, eax
jne 0x10271cf
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x424]
mov dword [ebp - 0x428], 0x208
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10271bb
cmp dword [ebp - 0x41c], 1
je 0x1027132
cmp dword [ebp - 0x41c], 2
jne 0x10271bb
lea eax, [ebp - 0x20c]
push eax
push 0x103
lea eax, [ebp - 0x414]
push eax
call fcn.0100c535
test eax, eax
jl 0x10271bb
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x414]
push eax
call fcn.0101b4c4
test eax, eax
jne 0x10271bb
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push esi
push dword [ebp - 0x424]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x424]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x42c], 1
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x42c], esi
jne 0x1027218
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push esi
push 0x100bf08
push ebx
call edi
test eax, eax
jne 0x1027206
push dword [ebp - 0x424]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x424]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.0101672d
leave
ret 8