Function at 0x1001a946
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.1003b1e0
push 0xffffffffffffffff
push 0x10068df5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100be114]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0x221c]
xor edi, edi
mov ebx, dword [ebp + 0x2214]
mov esi, dword [ebp + 0x2218]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x208]
push eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edi
call fcn.1001b1ad
test eax, eax
js 0x1001ac80
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.1001c495
pop ecx
pop ecx
test eax, eax
jne 0x1001a9e0
mov eax, 0x80020009
jmp 0x1001ac80
mov ecx, dword [ebp - 0x18]
call fcn.1001c26c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x208]
push eax
call fcn.1001b1ad
test eax, eax
js 0x1001ac80
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x1001ac4c
sub eax, 9
je 0x1001ab2a
dec eax
sub eax, 1
je 0x1001aaff
sub eax, 0x3ff5
jne 0x1001ac6c
lea ecx, [ebp + 0x208]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1001aa33
sub ecx, edx
mov dword [ebp], edi
sar ecx, 1
add ecx, 2
push 2
mov dword [ebp - 4], edi
push ecx
mov byte [ebp - 4], 1
call fcn.1001a64b
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x1001aa6b
push eax
lea ecx, [ebp]
call fcn.1001aca5
jmp 0x1001aa81
lea esi, [ebp + 4]
mov dword [ebp], esi
jmp 0x1001aa84
mov esi, dword [ebp]
test esi, esi
je 0x1001aae4
cmp word [ebp + 0x208], 0
lea ebx, [ebp + 0x208]
je 0x1001aacb
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [ebx]
cmp ecx, 0x5c
jne 0x1001aabd
cmp word [eax], 0x30
jne 0x1001aabd
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
jmp 0x1001aac3
mov word [esi], cx
add ebx, 2
add esi, 2
cmp word [ebx], di
jne 0x1001aa98
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [esi], eax
push dword [ebp]
push dword [ebp - 0x1c]
call fcn.1001c15f
mov esi, dword [ebp]
mov edi, eax
jmp 0x1001aae7
push 0xe
pop edi
lea eax, [ebp + 4]
cmp esi, eax
je 0x1001ac5f
lea ecx, [ebp]
call fcn.1001b05b
jmp 0x1001ac5f
lea eax, [ebp - 0x24]
push eax
push edi
push edi
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x1001ac80
push dword [ebp - 0x24]
mov ecx, ebx
push esi
call fcn.1001c145
jmp 0x1001ac5d
lea ebx, [ebp + 0x208]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x1001ab33
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x14], ebx
test bl, 1
jne 0x1001abbd
mov eax, ebx
mov dword [ebp + 0x104], edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x24], esi
push 1
mov dword [ebp - 4], 3
push esi
mov byte [ebp - 4], 4
call fcn.1001a64b
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x1001ab86
push eax
lea ecx, [ebp + 0x104]
call fcn.1001aca5
jmp 0x1001aba8
lea eax, [ebp + 0x108]
mov dword [ebp + 0x104], eax
jmp 0x1001abae
mov eax, dword [ebp + 0x104]
test eax, eax
jne 0x1001abc7
lea ecx, [ebp + 0x104]
call fcn.1001b05b
mov eax, 0x80004005
jmp 0x1001ac80
push esi
push edi
push eax
call fcn.1003d660
add esp, 0xc
mov eax, edi
mov dword [ebp - 0x14], eax
test ebx, ebx
jle 0x1001ac17
mov esi, dword [ebp + 0x104]
mov edi, eax
movzx eax, word [ebp + eax*2 + 0x208]
push eax
shr edi, 1
call fcn.1001ae57
mov edx, dword [ebp - 0x14]
pop ecx
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [edi + esi], al
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x1001abdb
mov esi, dword [ebp - 0x24]
xor edi, edi
mov eax, dword [ebp - 0x20]
push esi
push dword [ebp + 0x104]
push 3
push edi
push dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp + 0x108]
cmp dword [ebp + 0x104], eax
je 0x1001ac5f
lea ecx, [ebp + 0x104]
call fcn.1001b05b
jmp 0x1001ac5f
push 1
lea eax, [ebp + 0x208]
mov ecx, ebx
push eax
push esi
call fcn.1001c1b8
mov edi, eax
test edi, edi
je 0x1001ac6c
push edi
call fcn.1001ae19
pop ecx
jmp 0x1001ac80
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
call fcn.1001b1ad
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2208]
xor ecx, ebp
call fcn.1003b105
add ebp, 0x220c
leave
ret 0xc