Function at 0x100d496
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor eax, eax
mov esi, ecx
xor ecx, ecx
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], ecx
jne 0x100d4e5
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100d4db
test byte [eax + 0x1c], 1
je 0x100d4db
push 0x1002450
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
mov eax, 0x80070057
jmp 0x100d711
cmp dword [esi + 0x18], eax
je 0x100d70f
cmp dword [esi + 0x1c], eax
je 0x100d70f
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 2
push 0x1002070
push 0x1001ff8
mov edi, 0x80000001
push edi
call fcn.01011c79
mov ebx, eax
test ebx, ebx
jge 0x100d540
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100d6fa
test byte [eax + 0x1c], 1
je 0x100d6fa
push 0x1002450
push 0x1c
jmp 0x100d6eb
cmp dword [ebp - 8], 0
je 0x100d6f8
push dword [ebp + 8]
lea eax, [esi + 0x28]
push 2
push 0x101d5d8
push 2
push eax
mov dword [ebp - 0xc], eax
call fcn.01011fc6
mov ebx, eax
test ebx, ebx
jge 0x100d58f
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100d6fa
test byte [eax + 0x1c], 1
je 0x100d6fa
push ebx
push 0x1002450
push 0x1d
jmp 0x100d674
and dword [ebp + 8], 0
lea ebx, [esi + 0x240]
lea eax, [ebx - 0x214]
push 0x1001b78
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x100d5bf
mov eax, dword [ebx]
test eax, eax
je 0x100d5bf
cmp eax, 1
ja 0x100d6f8
inc dword [ebp + 8]
add ebx, 0x220
cmp dword [ebp + 8], 2
jb 0x100d599
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0100c984
test eax, eax
jne 0x100d608
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100d600
test byte [eax + 0x1c], 4
je 0x100d600
push 0x1002450
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
xor ebx, ebx
inc ebx
jmp 0x100d6fa
mov ecx, esi
call fcn.0100cbae
mov ebx, eax
test ebx, ebx
jge 0x100d639
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100d6fa
test byte [eax + 0x1c], 1
je 0x100d6fa
push ebx
push 0x1002450
push 0x1f
jmp 0x100d674
mov esi, 0x1002460
push esi
push edi
push 2
push dword [ebp - 0xc]
call fcn.01011d7e
mov ebx, eax
xor eax, eax
cmp ebx, eax
jge 0x100d681
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100d6fa
test byte [eax + 0x1c], 1
je 0x100d6fa
push ebx
push 0x1002450
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x100d6fa
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push 2
push eax
push eax
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100d6b6
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100d6fa
test byte [eax + 0x1c], 1
je 0x100d6fa
push 0x1002450
push 0x21
jmp 0x100d6eb
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push 0x10024f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100d6f8
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x100d6fa
test byte [eax + 0x1c], 1
je 0x100d6fa
push 0x1002450
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
jmp 0x100d6fa
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x100d709
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
jmp 0x100d711
xor eax, eax
pop esi
leave
ret 8