Function at 0x10012444
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.1008c215
mov eax, dword [0x100ec274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x211c], eax
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x210c], eax
mov edi, ecx
mov dword [ebp - 0x2110], eax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2120], edi
mov dword [ebp - 0x2114], ebx
mov dword [ebp - 0x2118], esi
call fcn.10012d20
test eax, eax
js 0x100127a1
lea edx, [ebp - 0x2110]
lea ecx, [ebp - 0x2004]
call fcn.10012308
test eax, eax
jne 0x100124c2
mov eax, 0x80020009
jmp 0x100127a1
mov ecx, edi
call fcn.100133e7
lea eax, [ebp - 0x2004]
mov ecx, edi
push eax
call fcn.10012d20
test eax, eax
js 0x100127a1
movzx eax, word [ebp - 0x2110]
push 2
pop edi
sub eax, 8
je 0x10012740
sub eax, 9
je 0x10012635
sub eax, edi
je 0x100125f8
sub eax, 0x3ff5
jne 0x10012787
lea ecx, [ebp - 0x2004]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x10012519
sub ecx, edx
mov dword [ebp - 0x2108], ebx
sar ecx, 1
lea eax, [ecx + 2]
mul edi
cmp edx, ebx
ja 0x100127b2
cmp eax, 0xffffffff
ja 0x100127b2
cmp eax, 0x100
jbe 0x1001255e
push eax
lea ecx, [ebp - 0x2108]
call fcn.10012d20
mov esi, dword [ebp - 0x2108]
jmp 0x1001256a
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x100125d7
cmp word [ebp - 0x2004], 0
lea ebx, [ebp - 0x2004]
je 0x100125b2
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [ebx]
cmp ecx, 0x5c
jne 0x100125a3
cmp word [eax], 0x30
jne 0x100125a3
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
jmp 0x100125a8
mov word [esi], cx
add ebx, edi
xor eax, eax
add esi, 2
cmp word [ebx], ax
jne 0x1001257e
mov ecx, dword [ebp - 0x2114]
xor eax, eax
mov dword [esi], eax
push dword [ebp - 0x2108]
push dword [ebp - 0x2118]
call fcn.10012d20
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x100125da
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x1001277a
lea ecx, [ebp - 0x2108]
call fcn.10011e61
jmp 0x1001277a
lea eax, [ebp - 0x2114]
xor edi, edi
push eax
push edi
push edi
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x100127a1
mov eax, dword [ebp - 0x2114]
push 4
mov dword [ebp - 0x210c], eax
lea eax, [ebp - 0x210c]
push eax
push 4
push edi
jmp 0x1001276f
lea ebx, [ebp - 0x2004]
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, edi
cmp ax, dx
jne 0x10012640
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x100126a4
mov eax, ebx
xor edi, edi
cdq
sub eax, edx
mov dword [ebp - 0x2108], edi
sar eax, 1
mov dword [ebp - 0x210c], eax
cmp eax, 0x100
jbe 0x10012689
push eax
lea ecx, [ebp - 0x2108]
call fcn.10012d20
mov ecx, dword [ebp - 0x2108]
mov eax, dword [ebp - 0x210c]
jmp 0x10012695
lea ecx, [ebp - 0x2104]
mov dword [ebp - 0x2108], ecx
test ecx, ecx
jne 0x100126ae
lea ecx, [ebp - 0x2108]
call fcn.10011e61
mov eax, 0x80004005
jmp 0x100127a1
push eax
push edi
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, edi
mov dword [ebp - 0x2110], edx
test ebx, ebx
jle 0x10012705
mov cx, word [ebp + edx*2 - 0x2004]
mov edi, edx
mov esi, dword [ebp - 0x2108]
shr edi, 1
call fcn.100123c4
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
mov edx, dword [ebp - 0x2110]
shl al, cl
or byte [edi + esi], al
inc edx
mov dword [ebp - 0x2110], edx
cmp edx, ebx
jl 0x100126c5
mov esi, dword [ebp - 0x2118]
xor edi, edi
push dword [ebp - 0x210c]
mov eax, dword [ebp - 0x2114]
push dword [ebp - 0x2108]
push 3
push edi
push esi
push dword [eax]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x1001277a
lea ecx, [ebp - 0x2108]
call fcn.10011e61
jmp 0x1001277a
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, word [ebp - 0x210c]
jne 0x10012749
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
xor eax, eax
push eax
push esi
push dword [ebx]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x10012787
mov ecx, edi
call fcn.10012b9d
jmp 0x100127a1
push dword [ebp - 0x211c]
mov ecx, dword [ebp - 0x2120]
call fcn.10012d20
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a5be
leave
ret 0xc
push 0x80070216
call fcn.10012d20
int3