Function at 0x101ac14
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x10266c8
call fcn.0100a184
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x102b00c]
mov esi, 0x102b00c
cmp eax, esi
je 0x101ac73
mov edi, 0x200000
test dword [eax + 0x1c], edi
je 0x101ac55
push dword [ebp + 0xc]
push 0x1006724
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100aa26
mov eax, dword [0x102b00c]
cmp eax, esi
je 0x101ac73
test dword [eax + 0x1c], edi
je 0x101ac73
push dword [ebp - 0x1c]
push 0x1006724
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
mov esi, dword [ebp + 8]
xor eax, eax
cmp esi, eax
jne 0x101ac9d
push eax
push 0x54f
push 0x10069a4
push 0x4ec
push 0x1006740
call fcn.0100a8b1
xor eax, eax
jmp 0x101af20
cmp dword [ebp + 0xc], eax
jne 0x101acb4
push esi
push 0x54f
push 0x1006998
push 0x4ed
jmp 0x101ac8c
cmp dword [ebp + 0x14], eax
jne 0x101accb
push esi
push 0x54f
push 0x100698c
push 0x4ee
jmp 0x101ac8c
cmp dword [ebp + 0x10], eax
jne 0x101ace2
push esi
push 0x54f
push 0x1006980
push 0x4ef
jmp 0x101ac8c
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x14]
push ecx
push 0x104
push eax
push dword [ebp + 0x14]
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call edi
test eax, eax
je 0x101ad22
mov ecx, dword [esi]
push 0x4033c44a
push eax
push esi
call dword [ecx + 0x1c]
add esp, 0xc
jmp 0x101adb6
mov eax, dword [ebp + 0x14]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x101ad28
sub eax, ecx
mov ecx, dword [ebp + 0xc]
sar eax, 1
lea esi, [ecx + eax*2 + 2]
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101ad65
test dword [eax + 0x1c], 0x200000
je 0x101ad65
push esi
push 0x1006724
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100aa26
push dword [ebp + 0x1c]
lea eax, [ebp - 0x18]
push eax
xor eax, eax
push eax
push dword [ebp + 0x18]
push eax
push eax
push eax
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
je 0x101adba
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101adad
test dword [eax + 0x1c], 0x200000
je 0x101adad
push esi
push 0x1006724
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push esi
call dword [eax + 0x20]
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x101adcb
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], 0
je 0x101af12
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101ae07
test dword [eax + 0x1c], 0x200000
je 0x101ae07
push dword [ebp + 0xc]
push 0x1006724
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100aa26
and dword [ebp + 0x14], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x14]
push eax
push 0x2011b
push 0
push dword [ebp + 0xc]
push ebx
call edi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x101ae55
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101aef8
test dword [eax + 0x1c], 0x200000
je 0x101aef8
push esi
push 0x1006724
push 0x32
jmp 0x101aeed
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101ae81
cmp dx, bx
je 0x101ae7d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101ae81
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x101ae5b
xor eax, eax
jmp 0x101ae86
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x101af04
mov eax, dword [0x102b00c]
mov edi, 0x102b00c
mov esi, 0x10067b0
cmp eax, edi
je 0x101aeb9
test dword [eax + 0x1c], 0x200000
je 0x101aeb9
push esi
push 0x1006724
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100aa26
push 8
push 0x1006978
push 1
push ebx
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x101af04
mov eax, dword [0x102b00c]
cmp eax, edi
je 0x101aef8
test dword [eax + 0x1c], 0x200000
je 0x101aef8
push esi
push 0x1006724
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0100c453
jmp 0x101af1d
cmp dword [ebp - 0x18], 0
je 0x101af1d
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
call fcn.0100a270
ret 0x18