Function at 0x4a105d
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4ed943
call fcn.004eadec
push ecx
mov eax, 0x2110
call fcn.004eae50
mov eax, dword [0x516ad4]
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.004a0f62
cmp eax, ebx
jl 0x4a133f
lea eax, [ebp - 0x211c]
push eax
lea eax, [ebp - 0x2118]
push eax
call fcn.004a0e15
test eax, eax
pop ecx
pop ecx
jne 0x4a10c3
mov eax, 0x80020009
jmp 0x4a133f
call fcn.004a0f47
lea eax, [ebp - 0x2118]
mov ecx, esi
call fcn.004a0f62
cmp eax, ebx
jl 0x4a133f
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x4a1309
sub eax, 9
je 0x4a1207
dec eax
dec eax
je 0x4a11c2
sub eax, 0x3ff5
jne 0x4a132e
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.004adf72
mov esi, dword [ebp - 0x118]
test esi, esi
je 0x4a119d
cmp word [ebp - 0x2118], 0
lea ebx, [ebp - 0x2118]
je 0x4a1184
mov edi, dword [sym.imp.USER32.dll_CharNextW]
push ebx
call edi
mov cx, word [ebx]
cmp cx, 0x5c
jne 0x4a1177
cmp word [eax], 0x30
jne 0x4a1177
and word [esi], 0
inc esi
push eax
inc esi
call edi
mov ebx, eax
jmp 0x4a117e
mov word [esi], cx
inc esi
inc esi
inc ebx
inc ebx
cmp word [ebx], 0
jne 0x4a1152
and word [esi], 0
push dword [ebp - 0x118]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004a07cd
mov edi, eax
jmp 0x4a11a0
push 0xe
pop edi
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x4a131f
lea eax, [ebp - 0x118]
call fcn.004adf68
jmp 0x4a131f
call dword [0x51a490]
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.004a07af
lea esi, [ebp - 0x2120]
mov edi, eax
call fcn.00437fe6
jmp 0x4a131f
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x211c], eax
jne 0x4a1276
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.004adf72
jmp 0x4a1257
xor edi, edi
cmp dword [ebp - 0x118], edi
jne 0x4a1280
lea eax, [ebp - 0x114]
test eax, eax
je 0x4a1276
lea eax, [ebp - 0x118]
call fcn.004adf68
mov eax, 0x80004005
jmp 0x4a133f
push ebx
push edi
push dword [ebp - 0x118]
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 0x211c], 0
jle 0x4a12d2
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.004a0ea7
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 0x4a1299
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 0x4a131f
lea eax, [ebp - 0x118]
call fcn.004adf68
jmp 0x4a131f
push 1
lea eax, [ebp - 0x2118]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0047a0a2
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x4a132e
mov eax, edi
call fcn.004a0632
jmp 0x4a133f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.004a0f62
cmp eax, ebx
jl 0x4a133f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004eae3c
pop edi
pop esi
pop ebx
leave
ret 0x10