Function at 0x4a15fb
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4ee810
call fcn.004ebd20
push ecx
mov eax, 0x2120
call fcn.004ebd80
mov eax, dword [0x517ad4]
and dword [ebp - 0x211c], 0
xor eax, ebp
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x2130], eax
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x212c], esi
mov dword [ebp - 0x2124], edi
mov dword [ebp - 0x2120], ebx
call fcn.004a14fe
test eax, eax
jl 0x4a1909
lea eax, [ebp - 0x211c]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.004a13b1
test eax, eax
pop ecx
pop ecx
jne 0x4a167f
mov eax, 0x80020009
jmp 0x4a1909
call fcn.004a14e3
lea eax, [ebp - 0x2014]
mov ecx, esi
call fcn.004a14fe
test eax, eax
jl 0x4a1909
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x4a18d1
sub eax, 9
je 0x4a17c9
dec eax
dec eax
je 0x4a1786
sub eax, 0x3ff5
jne 0x4a18f6
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0x2118], 0
inc eax
and dword [ebp - 4], 0
add eax, eax
push eax
lea esi, [ebp - 0x2118]
mov byte [ebp - 4], 1
call fcn.004ae6ce
mov esi, dword [ebp - 0x2118]
test esi, esi
je 0x4a1761
cmp word [ebp - 0x2014], 0
lea ebx, [ebp - 0x2014]
je 0x4a1742
mov edi, dword [sym.imp.USER32.dll_CharNextW]
push ebx
call edi
mov cx, word [ebx]
cmp cx, 0x5c
jne 0x4a1735
cmp word [eax], 0x30
jne 0x4a1735
and word [esi], 0
inc esi
push eax
inc esi
call edi
mov ebx, eax
jmp 0x4a173c
mov word [esi], cx
inc esi
inc esi
inc ebx
inc ebx
cmp word [ebx], 0
jne 0x4a1710
and word [esi], 0
push dword [ebp - 0x2118]
push dword [ebp - 0x2120]
push dword [ebp - 0x2124]
call fcn.004a0d49
mov edi, eax
jmp 0x4a1764
push 0xe
pop edi
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x4a18e3
lea eax, [ebp - 0x2118]
call fcn.004ae6c4
jmp 0x4a18e3
call dword [0x51b490]
xor eax, eax
lea ecx, [ebp - 0x2120]
push ecx
push eax
push eax
mov dword [ebp - 0x2124], eax
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x2120]
push ebx
push edi
call fcn.004a0d2b
lea esi, [ebp - 0x2124]
mov edi, eax
call fcn.00437efd
jmp 0x4a18e3
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x211c], eax
jne 0x4a1838
and dword [ebp - 0x2118], 0
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x2128], ebx
mov dword [ebp - 4], 3
push ebx
lea esi, [ebp - 0x2118]
mov byte [ebp - 4], 4
call fcn.004ae6ce
jmp 0x4a1819
xor edi, edi
cmp dword [ebp - 0x2118], edi
jne 0x4a1842
lea eax, [ebp - 0x2114]
test eax, eax
je 0x4a1838
lea eax, [ebp - 0x2118]
call fcn.004ae6c4
mov eax, 0x80004005
jmp 0x4a1909
push ebx
push edi
push dword [ebp - 0x2118]
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 0x211c], 0
jle 0x4a1894
mov ecx, dword [ebp - 0x2118]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov ax, word [ebp + edi*2 - 0x2014]
call fcn.004a1443
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 0x4a185b
mov eax, dword [ebp - 0x2124]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x2118]
push 3
push 0
push dword [ebp - 0x2120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x4a18e3
lea eax, [ebp - 0x2118]
call fcn.004ae6c4
jmp 0x4a18e3
push 1
lea eax, [ebp - 0x2014]
push eax
push ebx
push edi
call fcn.0047aa66
mov edi, eax
test edi, edi
je 0x4a18f0
mov eax, edi
call fcn.004a0bae
jmp 0x4a1909
mov esi, dword [ebp - 0x212c]
mov eax, dword [ebp - 0x2130]
mov ecx, esi
call fcn.004a14fe
test eax, eax
jl 0x4a1909
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret 8