Function at 0x4916dd
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4c3140
call fcn.004c2540
push ecx
mov eax, 0x2110
call fcn.004c2440
mov eax, dword [0x4e7384]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push edi
xor ebx, ebx
lea eax, [ebp - 0x2118]
mov ecx, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x211c], ebx
call fcn.004915e2
cmp eax, ebx
jl 0x4919bf
lea eax, [ebp - 0x211c]
push eax
lea eax, [ebp - 0x2118]
push eax
call fcn.00491495
test eax, eax
pop ecx
pop ecx
jne 0x491743
mov eax, 0x80020009
jmp 0x4919bf
call fcn.004915c7
lea eax, [ebp - 0x2118]
mov ecx, esi
call fcn.004915e2
cmp eax, ebx
jl 0x4919bf
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x491989
sub eax, 9
je 0x491887
dec eax
dec eax
je 0x491842
sub eax, 0x3ff5
jne 0x4919ae
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x118], ebx
add eax, eax
mov dword [ebp - 4], ebx
push eax
lea esi, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0049afca
mov esi, dword [ebp - 0x118]
test esi, esi
je 0x49181d
cmp word [ebp - 0x2118], 0
lea ebx, [ebp - 0x2118]
je 0x491804
mov edi, dword [sym.imp.USER32.dll_CharNextW]
push ebx
call edi
mov cx, word [ebx]
cmp cx, 0x5c
jne 0x4917f7
cmp word [eax], 0x30
jne 0x4917f7
and word [esi], 0
inc esi
push eax
inc esi
call edi
mov ebx, eax
jmp 0x4917fe
mov word [esi], cx
inc esi
inc esi
inc ebx
inc ebx
cmp word [ebx], 0
jne 0x4917d2
and word [esi], 0
push dword [ebp - 0x118]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00490e52
mov edi, eax
jmp 0x491820
push 0xe
pop edi
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x49199f
lea eax, [ebp - 0x118]
call fcn.004883fc
jmp 0x49199f
call dword [0x4e91a8]
lea eax, [ebp - 0x211c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2118]
push eax
mov dword [ebp - 0x2120], ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x211c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00490e34
lea esi, [ebp - 0x2120]
mov edi, eax
call fcn.004308a4
jmp 0x49199f
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x211c], eax
jne 0x4918f6
and dword [ebp - 0x118], 0
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x2120], ebx
mov dword [ebp - 4], 3
push ebx
lea esi, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0049afca
jmp 0x4918d7
xor edi, edi
cmp dword [ebp - 0x118], edi
jne 0x491900
lea eax, [ebp - 0x114]
test eax, eax
je 0x4918f6
lea eax, [ebp - 0x118]
call fcn.004883fc
mov eax, 0x80004005
jmp 0x4919bf
push ebx
push edi
push dword [ebp - 0x118]
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 0x211c], 0
jle 0x491952
mov ecx, dword [ebp - 0x118]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov ax, word [ebp + edi*2 - 0x2118]
call fcn.00491527
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x211c]
jl 0x491919
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x118]
push 3
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x49199f
lea eax, [ebp - 0x118]
call fcn.004883fc
jmp 0x49199f
push 1
lea eax, [ebp - 0x2118]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0046d7b3
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x4919ae
mov eax, edi
call fcn.00490cb7
jmp 0x4919bf
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.004915e2
cmp eax, ebx
jl 0x4919bf
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004c2215
pop edi
pop esi
pop ebx
leave
ret 0x10