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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x102a0ec]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x430], eax
xor esi, esi
lea eax, [ebp - 0x418]
push eax
push esi
lea eax, [ebp - 0x428]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x428], 4
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x420], 0x104
push esi
jmp 0x10179f7
cmp dword [ebp - 0x418], esi
je 0x10179cd
mov eax, dword [ebp - 0x428]
cmp eax, esi
jbe 0x10179bd
cmp eax, 2
jbe 0x101794a
cmp eax, 3
je 0x10178f0
jbe 0x10179bd
cmp eax, 5
jbe 0x10178a4
cmp eax, 7
jne 0x10179bd
push dword [ebp - 0x418]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0x424], eax
je 0x10179bd
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push ebx
call edi
test eax, eax
jne 0x1017881
push dword [ebp - 0x418]
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x428]
lea eax, [ebp - 0x20c]
push esi
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1017881
mov dword [ebp - 0x42c], esi
cmp dword [ebp - 0x424], esi
je 0x10179c3
push dword [ebp - 0x424]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x424], esi
jmp 0x10179c3
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
mov dword [ebp - 0x418], 4
push ebx
call edi
test eax, eax
jne 0x10179c3
push 4
lea eax, [ebp - 0x440]
jmp 0x101799e
push dword [ebp - 0x418]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0x424], eax
je 0x10179bd
lea ecx, [ebp - 0x418]
push ecx
push eax
lea eax, [ebp - 0x428]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push ebx
call edi
test eax, eax
jne 0x1017881
push dword [ebp - 0x418]
push dword [ebp - 0x424]
jmp 0x101785d
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
mov dword [ebp - 0x418], 0x208
push ebx
call edi
test eax, eax
jne 0x10179c3
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x428]
lea eax, [ebp - 0x20c]
push esi
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10179c3
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x420], 0x104
inc dword [ebp - 0x41c]
lea eax, [ebp - 0x418]
push eax
push esi
lea eax, [ebp - 0x428]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push ebx
mov dword [ebp - 0x418], 0x208
call edi
test eax, eax
mov dword [ebp - 0x420], 0x104
je 0x10177c1
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
mov dword [ebp - 0x41c], esi
call edi
test eax, eax
jne 0x1017b10
mov ebx, 0x2001f
lea eax, [ebp - 0x434]
push eax
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x43c]
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x438], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1017ad2
push esi
lea eax, [ebp - 0x438]
push eax
push esi
push ebx
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1017abe
push dword [ebp - 0x438]
push dword [ebp - 0x434]
call fcn.0101773d
test eax, eax
jne 0x1017ab0
mov dword [ebp - 0x42c], esi
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1017ac4
mov dword [ebp - 0x42c], esi
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1017ad8
mov dword [ebp - 0x42c], esi
inc dword [ebp - 0x41c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], 0x104
push dword [ebp - 0x43c]
call edi
test eax, eax
je 0x1017a45
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x42c]
pop edi
pop esi
pop ebx
call fcn.0101672d
leave
ret 8