Function at 0x18019e17
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x209c]
mov eax, 0x211c
call fcn.180a6c10
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp + 0x2098], eax
mov eax, dword [ebp + 0x20a8]
and dword [ebp - 0x70], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x20a4]
mov ebx, edx
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x98]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], edi
call fcn.18019ce3
mov esi, eax
push esi
call fcn.18019615
pop ecx
test al, al
je 0x18019e76
mov eax, esi
jmp 0x1801a115
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x98]
push eax
call fcn.18019b87
pop ecx
pop ecx
test eax, eax
jne 0x18019e9c
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 8]
or eax, 0x820f0000
jmp 0x1801a115
mov esi, dword [ebp - 0x7c]
call fcn.18019cbe
lea eax, [ebp + 0x98]
mov ecx, esi
call fcn.18019ce3
mov esi, eax
push esi
call fcn.18019615
pop ecx
test al, al
jne 0x18019e6f
movzx eax, word [ebp - 0x70]
sub eax, 8
je 0x1801a0c3
sub eax, 9
je 0x18019fc8
dec eax
dec eax
je 0x18019f9f
sub eax, 0x3ff5
jne 0x1801a0f8
lea eax, [ebp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0x6c], 0
inc eax
inc eax
push 2
push eax
call fcn.180071f6
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x18019f17
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.18022965
jmp 0x18019f1d
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov edi, dword [ebp - 0x6c]
test edi, edi
je 0x18019f83
cmp word [ebp + 0x98], 0
lea esi, [ebp + 0x98]
je 0x18019f6a
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x18019f5a
cmp word [eax], 0x30
jne 0x18019f5a
xor ecx, ecx
mov word [edi], cx
inc edi
push eax
inc edi
call ebx
mov esi, eax
jmp 0x18019f61
mov word [edi], cx
inc edi
inc edi
inc esi
inc esi
cmp word [esi], 0
jne 0x18019f3a
mov ebx, dword [ebp - 0x78]
xor eax, eax
mov word [edi], ax
mov word [edi + 2], ax
push dword [ebp - 0x6c]
push dword [ebp - 0x74]
push ebx
call fcn.18022986
mov esi, eax
jmp 0x18019f86
push 0xe
pop esi
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
je 0x1801a0eb
lea eax, [ebp - 0x6c]
call fcn.180229cb
jmp 0x1801a0eb
lea eax, [ebp - 0x74]
push eax
xor esi, esi
push esi
push esi
lea eax, [ebp + 0x98]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x74]
push 4
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
push 4
push esi
jmp 0x1801a0e0
lea eax, [ebp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x70], eax
test al, 1
je 0x18019fe6
mov eax, 0x80004005
jmp 0x1801a115
cdq
sub eax, edx
mov edi, eax
sar edi, 1
push 1
xor esi, esi
push edi
mov dword [ebp - 0x6c], esi
call fcn.180071f6
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x1801a00f
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.18022965
jmp 0x1801a015
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], esi
jne 0x1801a02b
lea eax, [ebp - 0x68]
test eax, eax
je 0x18019fdc
lea eax, [ebp - 0x6c]
call fcn.180229cb
jmp 0x18019fdc
push edi
push esi
push dword [ebp - 0x6c]
call fcn.1809d820
add esp, 0xc
cmp dword [ebp - 0x70], esi
jle 0x1801a09b
movzx ecx, word [ebp + esi*2 + 0x98]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x6c]
movzx edx, cx
cmp edx, 0x30
jl 0x1801a07f
cmp edx, 0x39
jle 0x1801a078
cmp edx, 0x40
jle 0x1801a07f
cmp edx, 0x46
jle 0x1801a073
add edx, 0xffffff9f
cmp edx, 5
ja 0x1801a07f
sub cl, 0x57
jmp 0x1801a07b
sub cl, 0x37
jmp 0x1801a07b
sub cl, 0x30
mov dl, cl
jmp 0x1801a081
xor dl, dl
mov ebx, esi
and ebx, 1
shl ebx, 2
push 4
pop ecx
sub ecx, ebx
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x70]
jl 0x1801a03d
mov ebx, dword [ebp - 0x78]
mov eax, dword [ebx]
push edi
push dword [ebp - 0x6c]
push 3
push 0
push dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
je 0x1801a0eb
lea eax, [ebp - 0x6c]
call fcn.180229cb
jmp 0x1801a0eb
lea eax, [ebp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp + 0x98]
push eax
push 1
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x1801a0f8
mov eax, esi
call fcn.18022956
jmp 0x1801a115
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
call fcn.18019ce3
mov esi, eax
push esi
call fcn.18019615
movzx eax, al
neg eax
sbb eax, eax
pop ecx
and eax, esi
mov ecx, dword [ebp + 0x2098]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1809ccb5
add ebp, 0x209c
leave
ret 8