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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x102a0ec]
mov ecx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp edi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x430], esi
je 0x1027b41
cmp eax, esi
jne 0x1027826
cmp ecx, esi
je 0x1027b41
push ebx
push edi
push 0x10079dc
mov ebx, 0x103
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0100d4d1
add esp, 0x10
test eax, eax
jl 0x1027b40
push edi
push dword [0x102a0f4]
lea eax, [ebp - 0x414]
push 0x100c158
push ebx
push eax
call fcn.0100d4d1
add esp, 0x14
test eax, eax
jl 0x1027907
lea eax, [ebp - 0x420]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x414]
push eax
push 0x80000002
mov dword [ebp - 0x420], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1027907
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
push 0x1007350
push dword [ebp - 0x420]
xor edi, edi
inc edi
mov dword [ebp - 0x41c], 0x208
mov dword [ebp - 0x428], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10278fb
cmp dword [ebp - 0x428], edi
jne 0x10278fb
lea eax, [ebp - 0x414]
push 0x1001780
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10278fb
mov dword [ebp - 0x430], edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x424]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1027b40
mov eax, dword [ebp - 0x418]
cmp eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x420], 1
je 0x1027b04
cmp word [eax], 0x7b
jne 0x1027b04
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
mov ebx, 0x100158c
push ebx
push dword [ebp - 0x424]
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10279f2
cmp dword [ebp - 0x420], 1
jne 0x10279f2
cmp dword [ebp - 0x430], esi
jne 0x10279b7
lea eax, [ebp - 0x20c]
push eax
call fcn.01026f3d
test eax, eax
je 0x1027a16
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01026e82
test eax, eax
jne 0x10279f2
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 1
push esi
push 0x100c110
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x418]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x418]
push 1
push esi
push ebx
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push 0x100c138
push 0x103
push eax
mov dword [ebp - 0x428], esi
call fcn.0100d4d1
add esp, 0x10
lea eax, [ebp - 0x428]
push eax
push 1
push esi
lea eax, [ebp - 0x20c]
push eax
mov ebx, 0x80000000
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1027b04
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
push esi
push dword [ebp - 0x428]
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1027af8
cmp dword [ebp - 0x420], 1
jne 0x1027af8
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
mov dword [ebp - 0x418], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1027af8
push 4
lea eax, [ebp - 0x41c]
push eax
push 4
push esi
push 0x10080cc
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], 1
call edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x42c], esi
je 0x1027b34
push dword [ebp - 0x42c]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x42c]
push 1
push esi
push 0x10079c8
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0101672d
leave
ret 0xc