Function at 0x10017e10
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.100312f0
push 0xffffffffffffffff
push 0x10042850
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x2104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0x2118]
mov edi, dword [ebp + 0x2110]
mov ebx, dword [ebp + 0x2114]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x104]
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], 0
call fcn.100184b0
test eax, eax
js 0x10018166
lea edx, [ebp - 0x14]
lea ecx, [ebp + 0x104]
call fcn.10017c40
test eax, eax
jne 0x10017eaa
mov eax, 0x80020009
jmp 0x10018166
mov ecx, esi
call fcn.10018cb0
lea eax, [ebp + 0x104]
mov ecx, esi
push eax
call fcn.100184b0
test eax, eax
js 0x10018166
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
jg 0x10018050
je 0x10017ff7
cmp eax, 8
je 0x10017fe0
cmp eax, 0x11
jne 0x10018153
lea ebx, [ebp + 0x104]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10017ef5
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x28], ebx
test bl, 1
jne 0x10017f5d
mov eax, ebx
mov dword [ebp], 0
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 3
lea ecx, [ebp]
push esi
mov byte [ebp - 4], 4
call fcn.10017d50
jmp 0x10017f47
mov eax, dword [ebp]
test eax, eax
jne 0x10017f67
lea eax, [ebp + 4]
test eax, eax
je 0x10017f5d
lea ecx, [ebp]
call fcn.100175f0
mov eax, 0x80004005
jmp 0x10018166
push esi
push 0
push eax
call fcn.1002d180
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x10017faf
lea esp, [esp]
mov cx, word [ebp + edi*2 + 0x104]
mov esi, edi
shr esi, 1
add esi, dword [ebp]
call fcn.10017d90
mov edx, edi
mov ecx, 4
and edx, 1
inc edi
shl edx, 2
sub ecx, edx
shl al, cl
or byte [esi], al
cmp edi, ebx
jl 0x10017f80
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
push esi
push dword [ebp]
push 3
push 0
push dword [ebp - 0x20]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x10018143
lea ecx, [ebp]
call fcn.100175f0
jmp 0x10018143
push ecx
lea eax, [ebp + 0x104]
mov ecx, edi
push eax
push ebx
call fcn.1000deb0
mov edi, eax
jmp 0x10018146
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x10018028
lea ecx, [ebp - 0x14]
call fcn.100021e0
mov eax, esi
jmp 0x10018166
mov eax, dword [ebp - 0x28]
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.100021e0
jmp 0x10018143
cmp eax, 0x4008
jne 0x10018153
lea ecx, [ebp + 0x104]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018064
sub ecx, edx
mov dword [ebp], 0
sar ecx, 1
add ecx, 2
xor eax, eax
mov dword [ebp - 4], 0
shld eax, ecx, 1
mov byte [ebp - 4], 1
add ecx, ecx
test eax, eax
jne 0x100180b4
cmp ecx, 0xffffffff
ja 0x100180b4
cmp ecx, 0x100
jbe 0x100180ac
push ecx
lea ecx, [ebp]
call fcn.10017720
jmp 0x100180ca
lea esi, [ebp + 4]
mov dword [ebp], esi
jmp 0x100180cd
push 0x80070216
call fcn.10002280
mov eax, 0x100180c4
ret
mov esi, dword [ebp]
test esi, esi
je 0x1001812f
cmp word [ebp + 0x104], 0
lea edi, [ebp + 0x104]
je 0x10018116
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x10018107
cmp word [eax], 0x30
jne 0x10018107
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x10018110
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x100180e7
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [esi], eax
push dword [ebp]
push dword [ebp - 0x20]
call fcn.10017cf0
mov esi, dword [ebp]
mov edi, eax
jmp 0x10018134
mov edi, 0xe
lea eax, [ebp + 4]
cmp esi, eax
je 0x10018143
lea ecx, [ebp]
call fcn.100175f0
mov esi, dword [ebp - 0x18]
test edi, edi
je 0x10018153
mov ecx, edi
call fcn.100184a0
jmp 0x10018166
push dword [ebp - 0x2c]
mov ecx, esi
call fcn.100184b0
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 + 0x2104]
xor ecx, ebp
call fcn.1002af5f
lea esp, [ebp + 0x2108]
pop ebp
ret 0xc