Function at 0x100dcfb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10150926
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0x202
push 0
push ebx
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x100dd12a
push str.SetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0xc8]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
mov al, byte [esi + 0x48]
test al, al
je 0x100dd07a
mov edx, str.RegOpenKeyEx
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x100dd07a
mov edx, ebx
mov ecx, esi
call fcn.100205a0
mov al, byte [esi + 0x48]
test al, al
je 0x100dd07a
mov edx, 0x1016dc00
mov ecx, esi
call fcn.10020800
cmp byte [esi + 0x48], 0
je 0x100dd07a
push edi
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ad70
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
je 0x100dd127
push str.SetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0xc8]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 1
mov al, byte [esi + 0x48]
test al, al
je 0x100dd115
mov edx, str.RegCreateKeyEx
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x100dd115
mov edx, ebx
mov ecx, esi
call fcn.100205a0
mov al, byte [esi + 0x48]
test al, al
je 0x100dd115
mov edx, 0x1016dc00
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x100dd115
push edi
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0xc8]
call fcn.1000ad70
xor al, al
jmp 0x100dd1dd
mov esi, dword [ebp - 0x1c]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100dd130
mov ebx, dword [ebp - 0x20]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x100dd1cf
push str.SetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0x170]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 2
mov al, byte [esi + 0x48]
test al, al
je 0x100dd1c4
mov edx, str.RegSetValueEx
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x100dd1c4
mov edx, ebx
mov ecx, esi
call fcn.100205a0
mov al, byte [esi + 0x48]
test al, al
je 0x100dd1c4
mov edx, 0x1016dc00
mov ecx, esi
call fcn.10020800
cmp byte [esi + 0x48], 0
je 0x100dd1c4
push edi
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x170]
call fcn.1000ad70
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret