Function at 0x4120ba
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0041c620
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x2014]
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.00411a53
test eax, eax
jl 0x41230a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.0041234e
test eax, eax
jne 0x412105
mov eax, 0x80020009
jmp 0x41230a
mov ecx, esi
call fcn.00411a2b
lea eax, [ebp - 0x1014]
push eax
mov ecx, esi
call fcn.00411a53
test eax, eax
jl 0x41230a
movzx eax, word [ebp - 0xc]
sub eax, 8
je 0x4122c5
sub eax, 9
je 0x412229
dec eax
dec eax
je 0x4121d7
sub eax, 0x3ff5
jne 0x4122f9
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 3
and eax, 0xfffffffc
call fcn.0041c620
mov edi, esp
test edi, edi
mov dword [ebp - 4], edi
je 0x4121cf
cmp byte [ebp - 0x1014], 0
lea esi, [ebp - 0x1014]
je 0x4121b9
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x41219b
cmp byte [eax], 0x30
jne 0x41219b
and byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x4121b4
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4121b2
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x412181
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
and byte [edi], 0
call fcn.00412317
jmp 0x4122ed
push 0xe
pop eax
jmp 0x4122ed
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0041c620
mov eax, esp
xor edi, edi
push edi
push esi
lea ecx, [ebp - 0x1014]
push ecx
push eax
call fcn.004073d5
lea ecx, [ebp - 0x10]
push ecx
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push edi
jmp 0x4122df
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 4], eax
jne 0x41226e
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.0041c620
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
mov dword [ebp - 8], esp
jne 0x412278
mov eax, 0x80004005
jmp 0x41230a
cmp dword [ebp - 4], edi
jle 0x4122b2
mov ecx, dword [ebp - 8]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
xor eax, eax
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.004123fc
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 - 4]
jl 0x41227d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 8]
push 3
push 0
push dword [ebp + 0xc]
push eax
jmp 0x4122e7
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
push 0
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4122f9
push eax
call fcn.004120a5
jmp 0x41230a
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00411a53
test eax, eax
jl 0x41230a
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc