Function at 0x4aafbd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.00504570
mov eax, dword [0x577698]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2114], eax
mov eax, dword [ebp + 0xc]
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x2120], eax
xor ebx, ebx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2118], esi
mov dword [ebp - 0x2110], edi
mov dword [ebp - 0x210c], ebx
call fcn.004ab542
cmp eax, ebx
jl 0x4ab311
lea eax, [ebp - 0x210c]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.004aaeaf
pop ecx
pop ecx
test eax, eax
jne 0x4ab037
mov eax, 0x80020009
jmp 0x4ab311
call fcn.004abc8f
lea eax, [ebp - 0x2004]
mov ecx, esi
call fcn.004ab542
cmp eax, ebx
jl 0x4ab311
movzx eax, word [ebp - 0x210c]
sub eax, 8
je 0x4ab2d8
sub eax, 9
je 0x4ab194
dec eax
dec eax
je 0x4ab167
sub eax, 0x3ff5
jne 0x4ab2fa
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
push 2
push eax
lea eax, [ebp - 0x210c]
push eax
mov dword [ebp - 0x2108], ebx
call fcn.0045683e
add esp, 0xc
cmp dword [ebp - 0x210c], 0x100
jbe 0x4ab0c4
push dword [ebp - 0x210c]
lea eax, [ebp - 0x2108]
push eax
call fcn.004aaf45
jmp 0x4ab0d0
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
mov edi, dword [ebp - 0x2108]
cmp edi, ebx
je 0x4ab142
lea esi, [ebp - 0x2004]
cmp word [ebp - 0x2004], bx
je 0x4ab11e
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x4ab10f
cmp word [eax], 0x30
jne 0x4ab10f
xor ecx, ecx
mov word [edi], cx
inc edi
push eax
inc edi
call ebx
mov esi, eax
jmp 0x4ab116
mov word [edi], cx
inc edi
inc edi
inc esi
inc esi
cmp word [esi], 0
jne 0x4ab0ef
xor ebx, ebx
xor eax, eax
mov word [edi], ax
mov word [edi + 2], ax
push dword [ebp - 0x2108]
push dword [ebp - 0x2114]
push dword [ebp - 0x2110]
call fcn.004aaf5a
mov esi, eax
jmp 0x4ab145
push 0xe
pop esi
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x4ab2ed
lea eax, [ebp - 0x2108]
call fcn.004aafb4
jmp 0x4ab2ed
lea eax, [ebp - 0x2110]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x2110]
push dword [ebp - 0x2114]
push edi
call fcn.00421eb3
jmp 0x4ab2eb
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x211c], eax
test al, 1
je 0x4ab1b5
mov eax, 0x80004005
jmp 0x4ab311
cdq
sub eax, edx
mov edi, eax
push 1
sar edi, 1
lea eax, [ebp - 0x210c]
push edi
push eax
mov dword [ebp - 0x2108], ebx
call fcn.0045683e
add esp, 0xc
cmp dword [ebp - 0x210c], 0x100
jbe 0x4ab1f4
push dword [ebp - 0x210c]
lea eax, [ebp - 0x2108]
push eax
call fcn.004aaf45
jmp 0x4ab200
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
cmp dword [ebp - 0x2108], ebx
jne 0x4ab21f
lea eax, [ebp - 0x2104]
test eax, eax
je 0x4ab1ab
lea eax, [ebp - 0x2108]
call fcn.004aafb4
jmp 0x4ab1ab
push edi
push ebx
push dword [ebp - 0x2108]
call fcn.004e7380
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x211c], ebx
jle 0x4ab29c
movzx ecx, word [ebp + esi*2 - 0x2004]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x2108]
movzx edx, cx
cmp edx, 0x30
jl 0x4ab27e
cmp edx, 0x39
jle 0x4ab277
cmp edx, 0x40
jle 0x4ab27e
cmp edx, 0x46
jle 0x4ab272
add edx, 0xffffff9f
cmp edx, 5
ja 0x4ab27e
sub cl, 0x57
jmp 0x4ab27a
sub cl, 0x37
jmp 0x4ab27a
sub cl, 0x30
mov dl, cl
jmp 0x4ab280
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 - 0x211c]
jl 0x4ab239
xor ebx, ebx
mov eax, dword [ebp - 0x2110]
mov eax, dword [eax]
push edi
push dword [ebp - 0x2108]
push 3
push ebx
push dword [ebp - 0x2114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x4ab2ed
lea eax, [ebp - 0x2108]
call fcn.004aafb4
jmp 0x4ab2ed
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x2114]
push edi
call fcn.00421e7e
mov esi, eax
cmp esi, ebx
je 0x4ab2fa
mov eax, esi
call fcn.004ab513
jmp 0x4ab311
mov eax, dword [ebp - 0x2120]
mov ecx, dword [ebp - 0x2118]
call fcn.004ab542
cmp eax, ebx
jl 0x4ab311
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e736b
leave
ret 8