Function at 0x100279a6
Capabilities:
Delete file
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
xor ebx, ebx
cmp dword [ebp + 8], ebx
push 4
pop eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
je 0x10027b4f
cmp dword [ebp + 0xc], eax
jge 0x10027b4f
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push ebx
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x10027a14
lea eax, [edi + edi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.10001a44
mov dword [ebp - 0xc], esp
push edi
push dword [ebp - 0xc]
push dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x10027c05
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10027bf2
call esi
mov edi, 0x80070000
cmp eax, ebx
jne 0x10027b41
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x10004dc0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jle 0x10027a5e
and eax, 0xffff
or eax, edi
cmp eax, ebx
jne 0x10027b41
xor esi, esi
inc esi
cmp dword [ebp - 8], ebx
jne 0x10027aa7
mov eax, 0x10027bd4
push eax
push 0x8c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push 0x10027b60
push eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x34], 0x62
mov dword [ebp - 0x30], 0xc00212d6
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
call fcn.1002a981
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10027adb
cmp eax, 2
je 0x10027adb
cmp eax, ebx
mov ecx, eax
jle 0x10027ad7
and ecx, 0xffff
or ecx, edi
cmp ecx, ebx
jne 0x10027b41
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x10027c28
jle 0x10027b41
cmp ecx, 2
jle 0x10027c0f
cmp ecx, 3
jne 0x10027b41
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 4], eax
jae 0x10027b04
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x10], ebx
push 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
je 0x10027b2d
cmp dword [ebp - 4], ebx
jne 0x10027c30
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
cmp eax, ebx
jne 0x10027b41
cmp dword [ebp - 4], ebx
jne 0x10027b41
cmp dword [ebp + 0xc], 2
jne 0x10027b41
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 8], ebx
je 0x10027b4f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
leave
ret 0xc
call esi
and eax, 0xffff
mov edi, 0x80070000
or eax, edi
jmp 0x10027a2b
mov edi, 0x80070000
jmp 0x10027a33
cmp eax, ebx
jne 0x10027c18
cmp dword [ebp - 4], ebx
jne 0x10027c20
mov dword [ebp - 0x10], ebx
jmp 0x10027b04
dec dword [ebp - 4]
jmp 0x10027b04
inc dword [ebp - 4]
jmp 0x10027b04
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jle 0x10027b2b
and eax, 0xffff
or eax, edi
jmp 0x10027b29