Function at 0x10279c7
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10723e4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x25
push dword [esi + 4]
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], ebx
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x110], eax
je 0x1027ab1
push 0x208
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x110], eax
je 0x1027d59
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, 0x104
push ebx
push eax
push dword [esi + 4]
call edi
test eax, eax
mov dword [ebp - 0x10c], eax
je 0x1027a43
cmp eax, ebx
jbe 0x1027a9d
push dword [ebp - 0x110]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
call ebx
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x1027d59
lea eax, [eax + eax + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x110], eax
je 0x1027d59
push dword [ebp - 0x10c]
push eax
push dword [esi + 4]
call edi
test eax, eax
mov dword [ebp - 0x10c], eax
jne 0x1027a9d
push dword [ebp - 0x110]
call ebx
jmp 0x1027d59
mov eax, dword [esi + 4]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x110]
mov dword [esi + 4], eax
xor ebx, ebx
lea eax, [ebp - 0x114]
push eax
push 0x2001f
push ebx
push 0x1011048
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1027d59
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push dword [esi]
mov dword [ebp - 0x10c], 0x100
push dword [ebp - 0x114]
call edi
cmp eax, ebx
je 0x1027b5d
cmp eax, 3
je 0x1027b68
cmp eax, 2
je 0x1027b68
push dword [ebp - 0x10c]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x108], eax
je 0x1027d4d
lea ecx, [ebp - 0x10c]
push ecx
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push dword [esi]
push dword [ebp - 0x114]
call edi
test eax, eax
jne 0x1027d16
mov edi, dword [ebp - 0x108]
jmp 0x1027c32
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1027b78
cmp eax, 1
jne 0x1027d4d
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esi + 4]
push 1
push ebx
push dword [esi]
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1027d4d
cmp word [edi], bx
je 0x1027c40
push 0x2c
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x1027bbd
mov word [edi], bx
push dword [esi + 4]
push dword [ebp - 0x118]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1027c27
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1027d16
cmp eax, 1
je 0x1027d16
cmp eax, 2
jne 0x1027c27
cmp edi, ebx
je 0x1027c12
lea ebx, [edi + 2]
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
push ebx
push dword [ebp - 0x118]
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0x10
xor ebx, ebx
jmp 0x1027c1b
mov eax, dword [ebp - 0x118]
mov word [eax], bx
mov dword [ebp - 0x11c], 1
jmp 0x1027c38
cmp edi, ebx
je 0x1027c40
mov word [edi], 0x2c
inc edi
inc edi
mov dword [ebp - 0x118], edi
cmp edi, ebx
jne 0x1027ba0
mov eax, dword [esi + 8]
cmp eax, 1
je 0x1027c50
cmp eax, ebx
jne 0x1027ce5
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x10c]
lea eax, [ecx + eax*2 + 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1027ce3
and word [ebx], 0
cmp dword [esi + 8], 1
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
jne 0x1027c97
push dword [esi + 4]
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x101248c
push ebx
call edi
add esp, 0x10
push dword [ebp - 0x108]
push ebx
call edi
cmp dword [esi + 8], 0
pop ecx
pop ecx
jne 0x1027cb9
push 0x101248c
push ebx
call edi
push dword [esi + 4]
push ebx
call edi
add esp, 0x10
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x1027cd3
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x11c], 1
xor ebx, ebx
cmp dword [ebp - 0x11c], ebx
je 0x1027d16
push dword [ebp - 0x108]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x108]
push 1
push ebx
push dword [esi]
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x1027d30
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x110], ebx
je 0x1027d4d
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x120]
mov dword [esi + 4], eax
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103d24a
leave
ret 4