Function at 0x102f291
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, 0x43c
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
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 - 0x438], ebx
mov dword [ebp - 0x428], 4
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x424], 1
mov dword [ebp - 0x420], 0x104
push esi
jmp 0x102f54c
cmp dword [ebp - 0x418], esi
je 0x102f522
mov eax, dword [ebp - 0x428]
cmp eax, esi
jbe 0x102f512
cmp eax, 2
jbe 0x102f496
cmp eax, 3
je 0x102f3fe
jbe 0x102f512
cmp eax, 5
jbe 0x102f3b2
cmp eax, 7
jne 0x102f512
push dword [ebp - 0x418]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x42c], eax
cmp eax, esi
je 0x102f512
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 0x102f473
push dword [ebp - 0x418]
lea eax, [ebp - 0x42c]
push eax
jmp 0x102f44f
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x43c]
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 0x102f518
push 4
lea eax, [ebp - 0x43c]
jmp 0x102f4f3
push dword [ebp - 0x418]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x42c], eax
cmp eax, esi
je 0x102f512
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 0x102f473
push dword [ebp - 0x418]
push dword [ebp - 0x42c]
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 0x102f473
mov dword [ebp - 0x424], esi
cmp dword [ebp - 0x42c], esi
je 0x102f518
push dword [ebp - 0x42c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [ebp - 0x42c], esi
jmp 0x102f518
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 0x102f518
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x102f4da
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
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 0x102f518
mov dword [ebp - 0x424], 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
mov dword [ebp - 0x420], 0x104
test eax, eax
je 0x102f317
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
xor ebx, ebx
push esi
jmp 0x102f644
lea eax, [ebp - 0x434]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x438]
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x41c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102f620
push esi
lea eax, [ebp - 0x41c]
push eax
push esi
push 0x2001f
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 0x102f60c
push dword [ebp - 0x41c]
push dword [ebp - 0x434]
call fcn.0102f291
test eax, eax
jne 0x102f5fe
mov dword [ebp - 0x424], esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x102f612
mov dword [ebp - 0x424], esi
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x102f626
mov dword [ebp - 0x424], esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
inc ebx
push eax
mov dword [ebp - 0x420], 0x104
push ebx
push dword [ebp - 0x438]
call edi
test eax, eax
je 0x102f58b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x424]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret 8