Function at 0x1071e93
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 [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x41c], 1
je 0x1071f3e
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push esi
push 0x10119d8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1071f3e
push 0x1082630
push dword [ebp - 0x418]
call edi
push 0x1082428
push dword [ebp - 0x418]
call edi
push 0x1082220
push dword [ebp - 0x418]
call edi
push 0x1082838
push dword [ebp - 0x418]
call edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x420]
push eax
push 0x2001f
push esi
push 0x1011978
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1072130
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push ebx
push dword [ebp - 0x420]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x428], 0x208
call ebx
test eax, eax
jne 0x1071fca
cmp dword [ebp - 0x41c], 1
je 0x1071fa8
cmp dword [ebp - 0x41c], 2
jne 0x1071fca
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.01068e7c
test eax, eax
je 0x1072124
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push esi
push 0x1011910
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10720db
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 ebx
test eax, eax
jne 0x10720c7
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x41c], ebx
je 0x107203d
cmp dword [ebp - 0x41c], 2
jne 0x10720c7
lea eax, [ebp - 0x20c]
push eax
push 0x103
lea eax, [ebp - 0x414]
push eax
call fcn.01034c79
test eax, eax
jl 0x10720c7
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x414]
push eax
call fcn.01068e7c
test eax, eax
jne 0x10720c7
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1072080
sub eax, edx
sar eax, 1
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 edi
mov dword [ebp - 0x42c], ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x42c], esi
jne 0x1072124
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push esi
push 0x10118b0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1072116
push dword [ebp - 0x424]
push dword [ebp - 0x418]
call edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x424]
push dword [ebp - 0x420]
call edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.01047417
leave
ret 8