Function at 0x100faf50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1014ee70
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x101ba518]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [esi]
mov eax, dword [eax + 0x38]
call eax
test al, al
je 0x100fafa7
mov eax, 0xc0000022
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edi, edi
mov dword [esp + 0x24], 0
xor bl, bl
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x48], edi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x3c]
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
cmp eax, 4
jne 0x100fb043
mov eax, dword [ecx + 0x10]
mov ebx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x100fb041
cmp edx, 2
jb 0x100fb041
mov eax, dword [esi + 0xc]
movzx eax, ax
test eax, eax
je 0x100fb041
cmp eax, 2
jbe 0x100fb016
cmp eax, 7
jne 0x100fb041
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push edx
mov edx, ebx
call fcn.10107630
jmp 0x100fb027
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push edx
mov edx, ebx
call fcn.101074c0
mov edi, dword [esp + 0x34]
mov bl, al
mov ecx, dword [esp + 0x1c]
add esp, 8
test bl, bl
je 0x100fb043
or dword [esi + 0xc], 0x400000
jmp 0x100fb043
xor bl, bl
mov eax, dword [esi + 4]
cmp dword [eax + 4], 0
je 0x100fb052
cmp word [eax], 0
jne 0x100fb0cb
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x48], 1
lea eax, [esp + 0x30]
push eax
push 0
push dword [esi + 4]
call fcn.100fbb90
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
test eax, eax
jns 0x100fb0ae
cmp eax, 0xc0000034
je 0x100fb0b9
mov byte [esp + 0x48], 0
mov eax, ecx
test eax, eax
je 0x100fb0a5
push eax
call fcn.101160e1
add esp, 4
mov esi, dword [esp + 0x18]
jmp 0x100fb131
mov eax, dword [ecx + 4]
and eax, 0x50000
or dword [esi + 0xc], eax
mov byte [esp + 0x48], 0
test ecx, ecx
je 0x100fb0cb
push ecx
call fcn.101160e1
add esp, 4
test bl, bl
je 0x100fb0d7
mov ecx, dword [esp + 0x24]
mov edx, edi
jmp 0x100fb0dd
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push ebx
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [0x101c9bfc]
mov dword [esp + 0x20], eax
test eax, eax
je 0x100fb11b
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
push dword [esp + 0x2c]
call dword [esp + 0x2c]
jmp 0x100fb12f
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
test edi, edi
je 0x100fb146
push edi
call fcn.101160e1
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4