Function at 0x101ad4b
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x102681a
call fcn.0100a094
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x102b00c]
mov esi, 0x102b00c
cmp eax, esi
je 0x101adaa
mov edi, 0x200000
test dword [eax + 0x1c], edi
je 0x101ad8c
push dword [ebp + 0xc]
push 0x100667c
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a963
mov eax, dword [0x102b00c]
cmp eax, esi
je 0x101adaa
test dword [eax + 0x1c], edi
je 0x101adaa
push dword [ebp - 0x1c]
push 0x100667c
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
mov esi, dword [ebp + 8]
xor eax, eax
cmp esi, eax
jne 0x101add4
push eax
push 0x54f
push 0x10068fc
push 0x4ec
push 0x1006698
call fcn.0100a7c1
xor eax, eax
jmp 0x101b057
cmp dword [ebp + 0xc], eax
jne 0x101adeb
push esi
push 0x54f
push 0x10068f0
push 0x4ed
jmp 0x101adc3
cmp dword [ebp + 0x14], eax
jne 0x101ae02
push esi
push 0x54f
push 0x10068e4
push 0x4ee
jmp 0x101adc3
cmp dword [ebp + 0x10], eax
jne 0x101ae19
push esi
push 0x54f
push 0x10068d8
push 0x4ef
jmp 0x101adc3
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x14]
push ecx
push 0x104
push eax
push dword [ebp + 0x14]
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call edi
test eax, eax
je 0x101ae59
mov ecx, dword [esi]
push 0x4033c44a
push eax
push esi
call dword [ecx + 0x1c]
add esp, 0xc
jmp 0x101aeed
mov eax, dword [ebp + 0x14]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x101ae5f
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 0x101ae9c
test dword [eax + 0x1c], 0x200000
je 0x101ae9c
push esi
push 0x100667c
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a963
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 0x101aef1
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101aee4
test dword [eax + 0x1c], 0x200000
je 0x101aee4
push esi
push 0x100667c
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
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 0x101af02
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], 0
je 0x101b049
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101af3e
test dword [eax + 0x1c], 0x200000
je 0x101af3e
push dword [ebp + 0xc]
push 0x100667c
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a963
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 0x101af8c
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101b02f
test dword [eax + 0x1c], 0x200000
je 0x101b02f
push esi
push 0x100667c
push 0x32
jmp 0x101b024
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101afb8
cmp dx, bx
je 0x101afb4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101afb8
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x101af92
xor eax, eax
jmp 0x101afbd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x101b03b
mov eax, dword [0x102b00c]
mov edi, 0x102b00c
mov esi, 0x10066fc
cmp eax, edi
je 0x101aff0
test dword [eax + 0x1c], 0x200000
je 0x101aff0
push esi
push 0x100667c
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a963
push 8
push 0x10068d0
push 1
push ebx
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x101b03b
mov eax, dword [0x102b00c]
cmp eax, edi
je 0x101b02f
test dword [eax + 0x1c], 0x200000
je 0x101b02f
push esi
push 0x100667c
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
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.0100c418
jmp 0x101b054
cmp dword [ebp - 0x18], 0
je 0x101b054
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
call fcn.0100a180
ret 0x18