Function at 0x1026bb20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x211c
call fcn.10297a50
mov eax, dword [0x103e1e90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x211c], eax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2110], esi
mov dword [ebp - 0x2118], ebx
mov dword [ebp - 0x2114], edi
mov dword [ebp - 0x210c], 0
call fcn.1026dd00
test eax, eax
js 0x1026be8c
lea eax, [ebp - 0x210c]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.1026f900
add esp, 8
test eax, eax
jne 0x1026bbad
pop edi
pop esi
mov eax, 0x80020009
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10295946
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.1026f430
lea eax, [ebp - 0x2004]
mov ecx, esi
push eax
call fcn.1026dd00
test eax, eax
js 0x1026be8c
movzx eax, word [ebp - 0x210c]
cmp eax, 0x13
jg 0x1026bd7e
je 0x1026bd16
cmp eax, 8
je 0x1026bcfe
cmp eax, 0x11
jne 0x1026be76
lea ebx, [ebp - 0x2004]
lea ecx, [ebx + 2]
jmp 0x1026bc00
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1026bc00
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x1026bc58
mov eax, ebx
mov dword [ebp - 0x2108], 0
cdq
lea ecx, [ebp - 0x2108]
sub eax, edx
mov esi, eax
sar esi, 1
push esi
mov dword [ebp - 0x210c], esi
call fcn.1026bea0
mov eax, dword [ebp - 0x2108]
test eax, eax
jne 0x1026bc70
lea eax, [ebp - 0x2104]
test eax, eax
je 0x1026bc58
lea ecx, [ebp - 0x2108]
call fcn.1026d820
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10295946
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push eax
call fcn.10295960
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x1026bcbb
movzx eax, word [ebp + edi*2 - 0x2004]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x2108]
push eax
call fcn.1026cea0
mov edx, edi
mov ecx, 4
and edx, 1
inc edi
shl edx, 2
add esp, 4
sub ecx, edx
shl al, cl
or byte [esi], al
cmp edi, ebx
jl 0x1026bc82
mov esi, dword [ebp - 0x210c]
mov eax, dword [ebp - 0x2118]
push esi
push dword [ebp - 0x2108]
push 3
push 0
push dword [ebp - 0x2114]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x1026be50
lea ecx, [ebp - 0x2108]
call fcn.1026d820
jmp 0x1026be50
push 1
lea eax, [ebp - 0x2004]
mov ecx, ebx
push eax
push edi
call fcn.1026f350
mov edi, eax
jmp 0x1026be56
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x210c], 0
push eax
push 0
push 0
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x1026bd5e
lea ecx, [ebp - 0x210c]
call fcn.1026b170
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10295946
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x2114]
mov ecx, ebx
push edi
call fcn.1026f2d0
lea ecx, [ebp - 0x210c]
mov edi, eax
call fcn.1026b170
jmp 0x1026be50
cmp eax, 0x4008
jne 0x1026be76
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1026bd92
sub ecx, edx
mov dword [ebp - 0x2108], 0
sar ecx, 1
lea eax, [ecx + 2]
push eax
lea ecx, [ebp - 0x2108]
call fcn.1026bee0
mov esi, dword [ebp - 0x2108]
test esi, esi
je 0x1026be36
cmp word [ebp - 0x2004], 0
lea edi, [ebp - 0x2004]
je 0x1026be15
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
lea ebx, [ebx]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x1026be00
cmp word [eax], 0x30
jne 0x1026be00
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x1026be09
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x1026bde0
mov ebx, dword [ebp - 0x2118]
xor eax, eax
mov ecx, ebx
mov dword [esi], eax
push dword [ebp - 0x2108]
push dword [ebp - 0x2114]
call fcn.1026f2f0
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x1026be3b
mov edi, 0xe
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x1026be50
lea ecx, [ebp - 0x2108]
call fcn.1026d830
mov esi, dword [ebp - 0x2110]
test edi, edi
je 0x1026be76
push edi
call fcn.1026c600
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10295946
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x211c]
mov ecx, esi
call fcn.1026dd00
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.10295946
mov esp, ebp
pop ebp
ret 0xc