Function at 0x101ab14
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x10265d8
call fcn.0100a086
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x102b00c]
mov esi, 0x102b00c
cmp eax, esi
je 0x101ab73
mov edi, 0x200000
test dword [eax + 0x1c], edi
je 0x101ab55
push dword [ebp + 0xc]
push 0x1006694
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a926
mov eax, dword [0x102b00c]
cmp eax, esi
je 0x101ab73
test dword [eax + 0x1c], edi
je 0x101ab73
push dword [ebp - 0x1c]
push 0x1006694
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
mov esi, dword [ebp + 8]
xor eax, eax
cmp esi, eax
jne 0x101ab9d
push eax
push 0x54f
push 0x100690c
push 0x4ec
push 0x10066b0
call fcn.0100a7b1
xor eax, eax
jmp 0x101ae20
cmp dword [ebp + 0xc], eax
jne 0x101abb4
push esi
push 0x54f
push 0x1006900
push 0x4ed
jmp 0x101ab8c
cmp dword [ebp + 0x14], eax
jne 0x101abcb
push esi
push 0x54f
push 0x10068f4
push 0x4ee
jmp 0x101ab8c
cmp dword [ebp + 0x10], eax
jne 0x101abe2
push esi
push 0x54f
push 0x10068e8
push 0x4ef
jmp 0x101ab8c
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 0x101ac22
mov ecx, dword [esi]
push 0x4033c44a
push eax
push esi
call dword [ecx + 0x1c]
add esp, 0xc
jmp 0x101acb6
mov eax, dword [ebp + 0x14]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x101ac28
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 0x101ac65
test dword [eax + 0x1c], 0x200000
je 0x101ac65
push esi
push 0x1006694
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a926
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 0x101acba
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101acad
test dword [eax + 0x1c], 0x200000
je 0x101acad
push esi
push 0x1006694
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
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 0x101accb
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], 0
je 0x101ae12
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101ad07
test dword [eax + 0x1c], 0x200000
je 0x101ad07
push dword [ebp + 0xc]
push 0x1006694
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a926
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 0x101ad55
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101adf8
test dword [eax + 0x1c], 0x200000
je 0x101adf8
push esi
push 0x1006694
push 0x32
jmp 0x101aded
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101ad81
cmp dx, bx
je 0x101ad7d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101ad81
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x101ad5b
xor eax, eax
jmp 0x101ad86
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x101ae04
mov eax, dword [0x102b00c]
mov edi, 0x102b00c
mov esi, 0x1006714
cmp eax, edi
je 0x101adb9
test dword [eax + 0x1c], 0x200000
je 0x101adb9
push esi
push 0x1006694
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a926
push 8
push 0x10068e0
push 1
push ebx
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x101ae04
mov eax, dword [0x102b00c]
cmp eax, edi
je 0x101adf8
test dword [eax + 0x1c], 0x200000
je 0x101adf8
push esi
push 0x1006694
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
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.0100c353
jmp 0x101ae1d
cmp dword [ebp - 0x18], 0
je 0x101ae1d
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
call fcn.0100a172
ret 0x18