Function at 0x4d7889
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2124
call fcn.004e4950
mov eax, dword [0x55e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2124], eax
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x210c], eax
mov edi, ecx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2120], edi
push eax
mov dword [ebp - 0x2114], ebx
mov dword [ebp - 0x2110], esi
call fcn.004d842f
test eax, eax
js 0x4d7b9d
lea eax, [ebp - 0x210c]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.004d99dd
pop ecx
pop ecx
test eax, eax
jne 0x4d7905
mov eax, 0x80020009
jmp 0x4d7b9d
mov ecx, edi
call fcn.004d9442
lea eax, [ebp - 0x2004]
mov ecx, edi
push eax
call fcn.004d842f
test eax, eax
js 0x4d7b9d
movzx eax, word [ebp - 0x210c]
sub eax, 8
je 0x4d7b61
sub eax, 9
je 0x4d7a51
dec eax
dec eax
je 0x4d7a0b
sub eax, 0x3ff5
jne 0x4d7b87
lea eax, [ebp - 0x2004]
push eax
call fcn.004db28a
and dword [ebp - 0x2108], 0
add eax, 2
pop ecx
push eax
lea ecx, [ebp - 0x2108]
call fcn.004d7bdf
mov esi, dword [ebp - 0x2108]
test esi, esi
je 0x4d79ea
cmp word [ebp - 0x2004], 0
lea edi, [ebp - 0x2004]
je 0x4d79c9
xor ebx, ebx
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x4d79b5
cmp word [eax], 0x30
jne 0x4d79b5
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x4d79be
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], bx
jne 0x4d798d
mov ebx, dword [ebp - 0x2114]
xor eax, eax
mov ecx, ebx
mov dword [esi], eax
push dword [ebp - 0x2108]
push dword [ebp - 0x2110]
call fcn.004d9357
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x4d79ed
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x4d7b74
lea ecx, [ebp - 0x2108]
call fcn.004d8148
jmp 0x4d7b74
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 0x4d7b9d
mov eax, dword [ebp - 0x2114]
push 4
mov dword [ebp - 0x2110], eax
lea eax, [ebp - 0x2110]
push eax
push 4
push edi
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4d7b72
lea eax, [ebp - 0x2004]
push eax
call fcn.004db28a
mov dword [ebp - 0x2118], eax
pop ecx
test al, 1
je 0x4d7a72
mov eax, 0x80004005
jmp 0x4d7b9d
cdq
lea ecx, [ebp - 0x2108]
sub eax, edx
xor edi, edi
mov ebx, eax
mov dword [ebp - 0x2108], edi
sar ebx, 1
push ebx
mov dword [ebp - 0x211c], ebx
call fcn.004d7bb0
cmp dword [ebp - 0x2108], edi
jne 0x4d7ab2
lea eax, [ebp - 0x2104]
test eax, eax
je 0x4d7a68
lea ecx, [ebp - 0x2108]
call fcn.004d813f
jmp 0x4d7a68
push ebx
push edi
push dword [ebp - 0x2108]
call fcn.004dbc00
mov ecx, edi
mov dword [ebp - 0x210c], edi
add esp, 0xc
cmp dword [ebp - 0x2118], ecx
jle 0x4d7b2b
mov ebx, dword [ebp - 0x2118]
mov esi, dword [ebp - 0x2108]
mov eax, ecx
movzx ecx, word [ebp + ecx*2 - 0x2004]
cdq
sub eax, edx
mov edi, eax
push ecx
sar edi, 1
call fcn.004d7eee
mov edx, dword [ebp - 0x210c]
pop ecx
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
mov ecx, dword [ebp - 0x210c]
or byte [edi + esi], al
inc ecx
mov dword [ebp - 0x210c], ecx
cmp ecx, ebx
jl 0x4d7ad8
mov ebx, dword [ebp - 0x211c]
xor edi, edi
mov esi, dword [ebp - 0x2110]
mov eax, dword [ebp - 0x2114]
push ebx
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 0x4d7b74
lea ecx, [ebp - 0x2108]
call fcn.004d813f
jmp 0x4d7b74
push 1
lea eax, [ebp - 0x2004]
mov ecx, ebx
push eax
push esi
call fcn.004d93a1
mov edi, eax
test edi, edi
je 0x4d7b81
push edi
call fcn.004d7e6a
pop ecx
jmp 0x4d7b9d
mov edi, dword [ebp - 0x2120]
push dword [ebp - 0x2124]
mov ecx, edi
call fcn.004d842f
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.004dbbe3
mov esp, ebp
pop ebp
ret 0xc