Function at 0x4a8ba5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2124
call fcn.00405ecb
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x211c], eax
mov eax, dword [ebp + 0xc]
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x2124], eax
xor ebx, ebx
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2120], esi
mov dword [ebp - 0x2118], edi
mov dword [ebp - 0x2114], ebx
call fcn.004a8a7f
cmp eax, ebx
jl 0x4a8f25
lea eax, [ebp - 0x2114]
push eax
lea eax, [ebp - 0x2008]
push eax
call fcn.004a899a
pop ecx
pop ecx
test eax, eax
jne 0x4a8c1f
mov eax, 0x80020009
jmp 0x4a8f25
call fcn.004a8a5a
lea eax, [ebp - 0x2008]
mov ecx, esi
call fcn.004a8a7f
cmp eax, ebx
jl 0x4a8f25
movzx eax, word [ebp - 0x2114]
sub eax, 8
je 0x4a8ed5
sub eax, 9
je 0x4a8da6
dec eax
dec eax
je 0x4a8d74
sub eax, 0x3ff5
jne 0x4a8f0e
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
push 2
push eax
mov dword [ebp - 0x2110], ebx
call fcn.0042da4c
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x4a8c9b
push eax
lea eax, [ebp - 0x2110]
push eax
call fcn.0042dae9
jmp 0x4a8ca7
lea eax, [ebp - 0x210c]
mov dword [ebp - 0x2110], eax
mov edi, dword [ebp - 0x2110]
cmp edi, ebx
je 0x4a8d4f
lea esi, [ebp - 0x2008]
cmp word [ebp - 0x2008], bx
je 0x4a8cfb
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x4a8cea
cmp word [eax], 0x30
jne 0x4a8cea
xor ecx, ecx
mov word [edi], cx
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x4a8cf3
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x4a8cca
xor ebx, ebx
xor eax, eax
mov word [edi], ax
mov word [edi + 2], ax
mov edi, dword [ebp - 0x2110]
mov dword [ebp - 0x2114], edi
cmp edi, ebx
jne 0x4a8d18
push 0xd
jmp 0x4a8d51
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea edi, [edi + eax*2]
lea esi, [esi + eax*2]
cmp eax, 1
jne 0x4a8d1a
mov eax, dword [ebp - 0x2118]
push esi
push dword [ebp - 0x2114]
push 7
push ebx
push dword [ebp - 0x211c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x4a8d52
push 0xe
pop esi
lea eax, [ebp - 0x210c]
cmp dword [ebp - 0x2110], eax
je 0x4a8f01
lea eax, [ebp - 0x2110]
call fcn.0042da15
jmp 0x4a8f01
lea eax, [ebp - 0x2118]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x2118]
mov dword [ebp - 0x2114], eax
push 4
lea eax, [ebp - 0x2114]
push eax
push 4
jmp 0x4a8ef0
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x2114], eax
test al, 1
je 0x4a8dc7
mov eax, 0x80004005
jmp 0x4a8f25
cdq
sub eax, edx
mov edi, eax
sar edi, 1
push 1
push edi
mov dword [ebp - 0x2110], ebx
call fcn.0042da4c
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x4a8df4
push eax
lea eax, [ebp - 0x2110]
push eax
call fcn.0042dae9
jmp 0x4a8e00
lea eax, [ebp - 0x210c]
mov dword [ebp - 0x2110], eax
cmp dword [ebp - 0x2110], ebx
jne 0x4a8e1f
lea eax, [ebp - 0x210c]
test eax, eax
je 0x4a8dbd
lea eax, [ebp - 0x2110]
call fcn.0042da15
jmp 0x4a8dbd
push edi
push ebx
push dword [ebp - 0x2110]
call fcn.00402394
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x2114], ebx
jle 0x4a8e99
movzx ecx, word [ebp + esi*2 - 0x2008]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x2110]
mov edx, ecx
cmp edx, 0x30
jl 0x4a8e7b
cmp edx, 0x39
jle 0x4a8e76
cmp edx, 0x40
jle 0x4a8e7b
cmp edx, 0x46
jle 0x4a8e71
add edx, 0xffffff9f
cmp edx, 5
ja 0x4a8e7b
lea edx, [ecx - 0x57]
jmp 0x4a8e7d
lea edx, [ecx - 0x37]
jmp 0x4a8e7d
lea edx, [ecx - 0x30]
jmp 0x4a8e7d
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 - 0x2114]
jl 0x4a8e39
xor ebx, ebx
mov eax, dword [ebp - 0x2118]
mov eax, dword [eax]
push edi
push dword [ebp - 0x2110]
push 3
push ebx
push dword [ebp - 0x211c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x210c]
cmp dword [ebp - 0x2110], eax
je 0x4a8f01
lea eax, [ebp - 0x2110]
call fcn.0042da15
jmp 0x4a8f01
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2008]
push eax
push 1
push ebx
push dword [ebp - 0x211c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x4a8f0e
mov eax, esi
call fcn.004a7d3a
jmp 0x4a8f25
mov eax, dword [ebp - 0x2124]
mov ecx, dword [ebp - 0x2120]
call fcn.004a8a7f
cmp eax, ebx
jl 0x4a8f25
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 8