Function at 0x414c52
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x2118
call fcn.0049af20
mov esi, ecx
mov eax, dword [0x4ea418]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x2010]
push 0x2000
push 0xff
push ebx
call fcn.0049dcc0
add esp, 0xc
mov ecx, esi
push ebx
call fcn.00413df2
test eax, eax
js 0x415073
push str.SMDB
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x414ceb
push 0x4d3284
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x414cf6
push 0x4d3288
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x414d01
push 0x4d328c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, 0x80020009
test eax, eax
jne 0x415075
mov word [ebp - 0x211c], 0x11
jmp 0x414d0a
mov word [ebp - 0x211c], 8
jmp 0x414d0a
mov word [ebp - 0x211c], 0x4008
jmp 0x414d0a
mov word [ebp - 0x211c], 0x13
mov eax, dword [esi]
mov ebx, 0x800013
mov edi, dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
add ecx, 0xfffffff7
cmp ecx, 0x17
ja 0x414d2e
bt ebx, ecx
jae 0x414d2e
push eax
call edi
mov dword [esi], eax
jmp 0x414d17
mov ecx, esi
lea ebx, [ebp - 0x2010]
push ebx
call fcn.00413df2
test eax, eax
js 0x415073
movzx eax, word [ebp - 0x211c]
cmp eax, 0x12
jg 0x414dd6
cmp eax, 8
je 0x414eef
cmp eax, 0x11
jne 0x41508e
lea eax, [ebp - 0x2010]
push eax
call fcn.004b8b3c
add esp, 4
mov edi, 0x80004005
test al, 1
jne 0x415075
mov dword [ebp - 0x211c], eax
sar eax, 1
mov dword [ebp - 0x2120], eax
lea ebx, [ebp - 0x2110]
push 0x100
push 0xff
push ebx
call fcn.0049dcc0
mov eax, dword [ebp - 0x2120]
add esp, 0xc
mov dword [ebx - 4], 0
cmp eax, 0x101
jb 0x414f68
lea ebx, [ebp - 0x2114]
mov ecx, ebx
push eax
call fcn.00413a80
mov ebx, dword [ebx]
jmp 0x414f6e
cmp eax, 0x13
je 0x414f0b
cmp eax, 0x4008
jne 0x41508e
push ebx
call fcn.004b8b3c
add esp, 4
add eax, 2
mov dword [ebp - 0x211c], eax
lea ebx, [ebp - 0x2110]
push 0x100
push 0xff
push ebx
call fcn.0049dcc0
add esp, 0xc
mov dword [ebx - 4], 0
lea ebx, [ebp - 0x2114]
mov ecx, ebx
push dword [ebp - 0x211c]
call fcn.004152ea
mov eax, dword [ebx]
xor ecx, ecx
test eax, eax
je 0x414f5e
cmp word [ebp - 0x2010], 0
je 0x414e94
lea ebx, [ebp - 0x2010]
mov dword [ebp - 0x211c], eax
push ebx
call edi
mov edx, ebx
movzx ecx, word [ebx]
cmp cx, 0x5c
jne 0x414e7d
cmp word [eax], 0x30
jne 0x414e7d
mov ecx, dword [ebp - 0x211c]
mov word [ecx], 0
push eax
call edi
mov ebx, eax
mov eax, dword [ebp - 0x211c]
jmp 0x414e8b
mov eax, dword [ebp - 0x211c]
mov word [eax], cx
mov ebx, edx
add ebx, 2
add eax, 2
cmp word [ebx], 0
jne 0x414e4b
mov dword [eax], 0
mov edi, dword [ebp - 0x2114]
test edi, edi
je 0x415026
xor ebx, ebx
mov dword [ebp - 0x211c], edi
push edi
call fcn.004b8b3c
add esp, 4
lea edi, [edi + eax*2]
add edi, 2
lea ebx, [ebx + eax*2]
add ebx, 2
test eax, eax
jne 0x414eb0
push ebx
push dword [ebp - 0x211c]
push 7
push 0
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov ecx, dword [ebp - 0x2114]
jmp 0x41502d
lea edi, [ebp - 0x2010]
push edi
call fcn.004b8b3c
add esp, 4
lea eax, [eax*2 + 2]
push eax
push edi
push 1
jmp 0x414f47
lea eax, [ebp - 0x2118]
mov dword [eax], 0xffffffff
xor ecx, ecx
lea edx, [ebp - 0x2010]
push eax
push ecx
push ecx
push edx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x415073
mov eax, dword [ebp - 0x2118]
lea ecx, [ebp - 0x2114]
mov dword [ecx], eax
mov eax, 4
push eax
push ecx
push eax
push 0
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
jmp 0x415066
mov ebx, 0xe
jmp 0x41502d
mov dword [ebp - 0x2114], ebx
test ebx, ebx
mov dword [ebp - 0x2124], ebx
je 0x415044
push dword [ebp - 0x2120]
push 0
push ebx
call fcn.0049dcc0
add esp, 0xc
cmp dword [ebp - 0x211c], 0
jle 0x414ffe
xor eax, eax
xor edx, edx
movzx ecx, word [ebp + edx*2 - 0x2010]
lea ebx, [ecx - 0x30]
cmp ebx, 0xa
jb 0x414fc7
lea ebx, [ecx - 0x41]
cmp ebx, 6
jb 0x414fcf
lea edi, [ecx - 0x61]
mov ebx, 0
cmp edi, 6
jae 0x414fd7
add ecx, 0xa9
jmp 0x414fd5
add ecx, 0xd0
jmp 0x414fd5
add ecx, 0xc9
mov ebx, ecx
mov ecx, eax
not cl
and cl, 4
shl ebx, cl
mov ecx, dword [ebp - 0x2114]
mov edi, edx
shr edi, 1
or byte [ecx + edi], bl
inc edx
add eax, 4
cmp dword [ebp - 0x211c], edx
mov edi, 0x80004005
jne 0x414f9a
push dword [ebp - 0x2120]
push dword [ebp - 0x2114]
push 3
push 0
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov eax, dword [ebp - 0x2114]
jmp 0x415048
mov ebx, 0xd
xor ecx, ecx
lea eax, [ebp - 0x2110]
cmp ecx, eax
je 0x415066
lea ecx, [ebp - 0x2114]
call fcn.00415320
jmp 0x415066
xor eax, eax
xor ebx, ebx
lea ecx, [ebp - 0x2110]
cmp eax, ecx
je 0x41505d
lea ecx, [ebp - 0x2114]
call fcn.00415320
cmp dword [ebp - 0x2124], 0
je 0x415075
test ebx, ebx
je 0x41508e
push ebx
call fcn.004150a1
add esp, 4
mov edi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004961ed
mov eax, edi
add esp, 0x2118
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ecx, esi
push dword [ebp + 0x10]
call fcn.00413df2
mov edi, eax
sar edi, 0x1f
and edi, eax
jmp 0x415075