Function at 0x4128a8
Capabilities:
Set registry value

Disassembly:
mov eax, 0x2110
call fcn.0041bda0
push ebx
push esi
lea eax, [esp + 0x118]
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x10], ebx
push eax
mov dword [esp + 0xc], esi
call fcn.00412f79
test eax, eax
js 0x412b96
lea edx, [esp + 8]
lea ecx, [esp + 0x118]
call fcn.0041276f
test eax, eax
jne 0x4128f3
mov eax, 0x80020009
jmp 0x412b96
mov ecx, ebx
call fcn.00413615
lea eax, [esp + 0x118]
mov ecx, ebx
push eax
call fcn.00412f79
test eax, eax
js 0x412b96
movzx eax, word [esp + 8]
push ebp
push edi
push 2
pop edi
sub eax, 8
je 0x412b29
sub eax, 9
je 0x412a4c
sub eax, edi
je 0x412a19
sub eax, 0x3ff5
jne 0x412b7d
lea ecx, [esp + 0x120]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x41294a
sub ecx, edx
mov dword [esp + 0x1c], esi
sar ecx, 1
lea eax, [ecx + 2]
mul edi
cmp edx, esi
ja 0x412ba1
cmp eax, 0xffffffff
ja 0x412ba1
cmp eax, 0x100
jbe 0x412989
push eax
lea ecx, [esp + 0x20]
call fcn.004122d4
mov esi, dword [esp + 0x1c]
jmp 0x412991
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4129fc
cmp word [esp + 0x120], 0
lea ebx, [esp + 0x120]
je 0x4129d9
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
push ebx
call ebp
movzx ecx, word [ebx]
cmp ecx, 0x5c
jne 0x4129ca
cmp word [eax], 0x30
jne 0x4129ca
xor ecx, ecx
push eax
mov word [esi], cx
call ebp
mov ebx, eax
jmp 0x4129cf
mov word [esi], cx
add ebx, edi
xor eax, eax
add esi, 2
cmp word [ebx], ax
jne 0x4129ad
mov ecx, dword [esp + 0x2124]
xor eax, eax
mov dword [esi], eax
push dword [esp + 0x1c]
push dword [esp + 0x212c]
call fcn.004127cf
mov esi, dword [esp + 0x1c]
mov edi, eax
jmp 0x4129ff
push 0xe
pop edi
lea eax, [esp + 0x20]
cmp esi, eax
je 0x412b6c
lea ecx, [esp + 0x1c]
call fcn.004122cb
jmp 0x412b6c
lea eax, [esp + 0x10]
push eax
push esi
push esi
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x412b94
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
push 4
jmp 0x412b53
lea ebx, [esp + 0x120]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, edi
cmp ax, si
jne 0x412a56
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x412aa7
mov eax, ebx
mov dword [esp + 0x1c], esi
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
mov dword [esp + 0x10], ebp
cmp ebp, 0x100
jbe 0x412a92
push ebp
lea ecx, [esp + 0x20]
call fcn.004122d4
mov eax, dword [esp + 0x1c]
jmp 0x412a9a
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x412ab1
lea ecx, [esp + 0x1c]
call fcn.004122cb
mov eax, 0x80004005
jmp 0x412b94
push ebp
push esi
push eax
call fcn.0041cc70
add esp, 0xc
test ebx, ebx
jle 0x412af4
mov ebp, esi
mov cx, word [esp + ebp*2 + 0x120]
mov edi, ebp
mov esi, dword [esp + 0x1c]
shr edi, 1
call fcn.00412828
mov edx, ebp
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [edi + esi], al
inc ebp
cmp ebp, ebx
jl 0x412ac2
mov ebp, dword [esp + 0x10]
xor esi, esi
mov eax, dword [esp + 0x2124]
push ebp
push dword [esp + 0x20]
push 3
push esi
push dword [esp + 0x2138]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [esp + 0x20]
cmp dword [esp + 0x1c], eax
je 0x412b6c
lea ecx, [esp + 0x1c]
call fcn.004122cb
jmp 0x412b6c
lea ecx, [esp + 0x120]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x412b33
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x124]
push eax
push 1
mov eax, dword [esp + 0x2130]
push esi
push dword [esp + 0x2138]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x412b79
mov ecx, edi
call fcn.00412f6b
jmp 0x412b94
mov ebx, dword [esp + 0x18]
push dword [esp + 0x212c]
mov ecx, ebx
call fcn.00412f79
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x2110
ret 0xc
push 0x80070216
call fcn.00412bbf
int3