Function at 0x4128b8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476273
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x22ac
call fcn.0044a740
mov eax, dword [0x496ab0]
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x22b4], ecx
xor eax, eax
mov word [ebp - 0x1c], ax
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x22b4]
call fcn.004110e9
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x412925
mov eax, dword [ebp - 0x20]
jmp 0x412dd7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2028]
push eax
call fcn.00412ec3
pop ecx
pop ecx
test eax, eax
jne 0x412945
mov eax, 0x80020009
jmp 0x412dd7
mov ecx, dword [ebp - 0x22b4]
call fcn.00411094
lea eax, [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x22b4]
call fcn.004110e9
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x412973
mov eax, dword [ebp - 0x20]
jmp 0x412dd7
movzx eax, word [ebp - 0x1c]
mov dword [ebp - 0x22b8], eax
cmp dword [ebp - 0x22b8], 8
je 0x4129b1
cmp dword [ebp - 0x22b8], 0x11
je 0x412c00
cmp dword [ebp - 0x22b8], 0x13
je 0x412b64
cmp dword [ebp - 0x22b8], 0x4008
je 0x4129cd
jmp 0x412da1
push 1
lea eax, [ebp - 0x2028]
push eax
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00412df3
mov dword [ebp - 0x18], eax
jmp 0x412da1
lea eax, [ebp - 0x2028]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
mov dword [ebp - 0x2134], eax
and dword [ebp - 0x2130], 0
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
push dword [ebp - 0x2134]
lea ecx, [ebp - 0x2130]
call fcn.004138bc
jmp 0x412a19
and dword [ebp - 4], 0
cmp dword [ebp - 0x2130], 0
je 0x412b3b
mov eax, dword [ebp - 0x2130]
mov dword [ebp - 0x213c], eax
lea eax, [ebp - 0x2028]
mov dword [ebp - 0x2140], eax
and dword [ebp - 0x2134], 0
mov eax, dword [ebp - 0x2140]
movzx eax, word [eax]
test eax, eax
je 0x412af5
push dword [ebp - 0x2140]
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x2144], eax
mov eax, dword [ebp - 0x2140]
movzx eax, word [eax]
cmp eax, 0x5c
jne 0x412ab5
mov eax, dword [ebp - 0x2144]
movzx eax, word [eax]
cmp eax, 0x30
jne 0x412ab5
xor eax, eax
mov ecx, dword [ebp - 0x213c]
mov word [ecx], ax
mov eax, dword [ebp - 0x213c]
inc eax
inc eax
mov dword [ebp - 0x213c], eax
push dword [ebp - 0x2144]
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x2140], eax
jmp 0x412ae3
mov eax, dword [ebp - 0x213c]
mov ecx, dword [ebp - 0x2140]
mov cx, word [ecx]
mov word [eax], cx
mov eax, dword [ebp - 0x213c]
inc eax
inc eax
mov dword [ebp - 0x213c], eax
mov eax, dword [ebp - 0x2140]
inc eax
inc eax
mov dword [ebp - 0x2140], eax
mov eax, dword [ebp - 0x2134]
inc eax
mov dword [ebp - 0x2134], eax
jmp 0x412a49
xor eax, eax
mov ecx, dword [ebp - 0x213c]
mov word [ecx], ax
mov eax, dword [ebp - 0x213c]
inc eax
inc eax
mov dword [ebp - 0x213c], eax
xor eax, eax
mov ecx, dword [ebp - 0x213c]
mov word [ecx], ax
mov eax, dword [ebp - 0x2130]
mov dword [ebp - 0x2294], eax
push dword [ebp - 0x2294]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00412e46
mov dword [ebp - 0x18], eax
jmp 0x412b42
mov dword [ebp - 0x18], 0xe
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x212c]
cmp dword [ebp - 0x2130], eax
je 0x412b5f
lea ecx, [ebp - 0x2130]
call fcn.00413a21
jmp 0x412da1
mov dword [ebp - 0x2154], 3
and dword [ebp - 0x215c], 0
lea eax, [ebp - 0x2028]
mov dword [ebp - 0x2150], eax
lea eax, [ebp - 0x2160]
push eax
push 0
push 0
push dword [ebp - 0x2150]
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x2160]
mov dword [ebp - 0x2298], eax
xor eax, eax
jne 0x412ba4
xor eax, eax
jne 0x412ba4
push 4
lea eax, [ebp - 0x2298]
push eax
push 4
push 0
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x215c], 0
je 0x412bfb
mov eax, dword [ebp - 0x215c]
mov dword [ebp - 0x229c], eax
mov eax, dword [ebp - 0x215c]
mov eax, dword [eax]
mov dword [ebp - 0x215c], eax
push dword [ebp - 0x229c]
call fcn.0044f5bc
pop ecx
jmp 0x412bca
jmp 0x412da1
lea eax, [ebp - 0x2028]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x2168], eax
mov eax, dword [ebp - 0x2168]
and eax, 1
je 0x412c28
mov eax, 0x80004005
jmp 0x412dd7
mov eax, dword [ebp - 0x2168]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2164], eax
and dword [ebp - 0x2270], 0
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
push dword [ebp - 0x2164]
lea ecx, [ebp - 0x2270]
call fcn.00413904
jmp 0x412c76
mov dword [ebp - 4], 3
cmp dword [ebp - 0x2270], 0
jne 0x412cb8
mov dword [ebp - 0x227c], 0x80004005
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x226c]
cmp dword [ebp - 0x2270], eax
je 0x412cad
lea ecx, [ebp - 0x2270]
call fcn.00413a21
mov eax, dword [ebp - 0x227c]
jmp 0x412dd7
push dword [ebp - 0x2164]
push 0
push dword [ebp - 0x2270]
call fcn.0044a620
add esp, 0xc
and dword [ebp - 0x2278], 0
jmp 0x412ce4
mov eax, dword [ebp - 0x2278]
inc eax
mov dword [ebp - 0x2278], eax
mov eax, dword [ebp - 0x2278]
cmp eax, dword [ebp - 0x2168]
jge 0x412d4b
mov eax, dword [ebp - 0x2278]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x2270]
mov dword [ebp - 0x22bc], eax
mov eax, dword [ebp - 0x2278]
and eax, 1
xor esi, esi
inc esi
sub esi, eax
shl esi, 2
mov eax, dword [ebp - 0x2278]
movzx eax, word [ebp + eax*2 - 0x2028]
push eax
call fcn.00412f72
pop ecx
movzx eax, al
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x22bc]
movzx ecx, byte [ecx]
or ecx, eax
mov eax, dword [ebp - 0x22bc]
mov byte [eax], cl
jmp 0x412cd7
mov eax, dword [ebp - 0x2270]
mov dword [ebp - 0x22ac], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x22b0], eax
push dword [ebp - 0x2164]
push dword [ebp - 0x22ac]
push 3
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x22b0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x226c]
cmp dword [ebp - 0x2270], eax
je 0x412da1
lea ecx, [ebp - 0x2270]
call fcn.00413a21
cmp dword [ebp - 0x18], 0
je 0x412db9
mov dword [ebp - 0x14], 0x204
push dword [ebp - 0x18]
call fcn.0041257d
pop ecx
jmp 0x412dd7
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x22b4]
call fcn.004110e9
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x412dd5
mov eax, dword [ebp - 0x20]
jmp 0x412dd7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0044a605
leave
ret 0xc