Function at 0x102723b
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x102a0ec]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x424]
push eax
push ebx
mov edi, 0x2001f
push edi
push ebx
push ebx
push ebx
push 0x10057a8
push 0x80000001
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x430], 1
call esi
test eax, eax
jne 0x102760b
push ebx
lea eax, [ebp - 0x420]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push 0x100c100
push dword [ebp - 0x424]
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x420], ebx
call esi
test eax, eax
je 0x10272e5
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1027447
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x430]
push eax
push ebx
push dword [ebp - 0x42c]
mov dword [ebp - 8], 0x208
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
jne 0x102744e
cmp dword [ebp - 0x430], 1
je 0x102733b
cmp dword [ebp - 0x430], 2
jne 0x102744e
lea eax, [ebp - 0x41c]
push eax
push 0x103
lea eax, [ebp - 0x214]
push eax
call fcn.0100c535
test eax, eax
jl 0x102740b
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x214]
push eax
call fcn.0101b4c4
test eax, eax
jne 0x102740b
lea eax, [ebp - 0x214]
push eax
call fcn.0101b542
test eax, eax
jne 0x102740b
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x42c]
push ebx
call fcn.0101de76
test eax, eax
je 0x1027462
push ebx
lea eax, [ebp - 0x428]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x100c0e8
push dword [ebp - 0x424]
mov dword [ebp - 0x428], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102740b
lea eax, [ebp - 0x41c]
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x430]
push ebx
push dword [ebp - 0x42c]
push dword [ebp - 0x428]
call esi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 0x434]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x100c0d4
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x102747d
push dword [ebp - 0x420]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x424]
call esi
xor eax, eax
jmp 0x102760e
cmp dword [ebp + 0x14], ebx
jne 0x102740b
push dword [ebp - 0x428]
call fcn.0101e485
test eax, eax
jne 0x102740b
push dword [ebp - 0x424]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x420]
call esi
jmp 0x102760b
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x42c]
mov dword [ebp - 0x424], ebx
push 0x100c0c8
push dword [ebp - 0x420]
call fcn.01017b2a
cmp eax, ebx
mov dword [ebp - 0x428], eax
je 0x10275f3
push dword [ebp - 0x438]
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x438]
push 1
push ebx
push dword [ebp - 0x42c]
push dword [ebp - 0x434]
call esi
push dword [ebp - 0x42c]
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x42c]
push 1
push ebx
push dword [ebp - 0x428]
push dword [ebp - 0x420]
call esi
push dword [ebp - 0x428]
call dword [sym.imp.msvcrt.dll_free]
mov dword [esp], 0x102c268
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x102c268
push 1
push ebx
push dword [ebp - 0x42c]
push dword [ebp - 0x420]
call esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x100c030
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10275ff
mov eax, dword [0x100c0c0]
mov dword [ebp - 0xc], eax
mov eax, dword [0x100c0c4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
push 0x102c268
push dword [ebp - 0x420]
call esi
lea eax, [ebp - 0xc]
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
push 0x102c060
push dword [ebp - 0x420]
call esi
lea eax, [ebp - 0xc]
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
push 0x102be58
push dword [ebp - 0x420]
call esi
lea eax, [ebp - 0xc]
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
push 0x102c470
push dword [ebp - 0x420]
call esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101672d
leave
ret 0x10