Function at 0x1000a612
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100122d0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x122c
call fcn.10011160
mov eax, dword [0x1001b5e0]
xor eax, ebp
mov dword [ebp - 0x14], 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 - 0x122c], ecx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x123c], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1238], ecx
mov dword [ebp - 0x1224], edi
mov dword [ebp - 0x1228], esi
mov dword [ebp - 0x1220], ebx
call fcn.1000b9b8
test eax, eax
js 0x1000aa54
lea eax, [ebp - 0x1220]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.1000b9b8
pop ecx
pop ecx
test eax, eax
jne 0x1000a6ae
mov eax, 0x80020009
jmp 0x1000aa54
mov ecx, dword [ebp - 0x122c]
call fcn.1000c450
mov ecx, dword [ebp - 0x122c]
lea eax, [ebp - 0x1014]
push eax
call fcn.1000b9b8
test eax, eax
js 0x1000aa54
movzx eax, word [ebp - 0x1220]
sub eax, 8
je 0x1000aa1a
sub eax, 9
je 0x1000a8d7
dec eax
dec eax
je 0x1000a7e7
sub eax, 0x3ff5
jne 0x1000aa3a
lea eax, [ebp - 0x1014]
push eax
call sub.MSVCR120.dll_strlen
pop ecx
add eax, 2
mov dword [ebp - 0x121c], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x121c]
push eax
mov byte [ebp - 4], 1
call fcn.1000b9b8
jmp 0x1000a73e
mov esi, dword [ebp - 0x121c]
mov dword [ebp - 4], ebx
test esi, esi
je 0x1000a7c2
cmp byte [ebp - 0x1014], 0
lea edi, [ebp - 0x1014]
je 0x1000a79c
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x1000a77b
cmp byte [eax], 0x30
jne 0x1000a77b
mov byte [esi], bl
inc esi
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x1000a797
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.kernel32.dll_IsDBCSLeadByte]
test eax, eax
je 0x1000a795
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x1000a79c
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x1000a75a
mov ecx, dword [ebp - 0x1224]
mov word [esi], 0
push dword [ebp - 0x121c]
push dword [ebp - 0x1228]
call fcn.1000b9b8
mov esi, dword [ebp - 0x121c]
mov edi, eax
jmp 0x1000a7c5
push 0xe
pop edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1218]
cmp esi, eax
je 0x1000aa2d
lea ecx, [ebp - 0x121c]
call fcn.1000af68
jmp 0x1000aa2d
mov dword [ebp - 0x1224], ebx
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 3
push eax
call sub.MSVCR120.dll_strlen
inc eax
push 2
push eax
mov dword [ebp - 0x1220], eax
lea eax, [ebp - 0x1220]
push eax
call fcn.1000b9b8
add esp, 0x10
test eax, eax
js 0x1000a8bc
mov esi, dword [ebp - 0x1220]
cmp esi, 0x400
jg 0x1000a848
push esi
call fcn.10006ae7
pop ecx
test al, al
je 0x1000a848
mov eax, esi
call fcn.100110e0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000a854
push esi
lea ecx, [ebp - 0x1224]
call fcn.1000b9b8
push 3
shr esi, 1
lea ecx, [ebp - 0x1014]
push esi
push ecx
push eax
call fcn.1000b9b8
test eax, eax
je 0x1000a8bc
lea ecx, [ebp - 0x1234]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
js 0x1000a8c1
mov eax, dword [ebp - 0x1234]
push 4
mov dword [ebp - 0x1230], eax
lea eax, [ebp - 0x1230]
push eax
push 4
push ebx
push dword [ebp - 0x1228]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1224]
mov edi, eax
call fcn.10001f09
jmp 0x1000aa2d
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1224]
call fcn.10001f09
mov eax, esi
jmp 0x1000aa54
lea eax, [ebp - 0x1014]
push eax
call sub.MSVCR120.dll_strlen
mov dword [ebp - 0x1230], eax
pop ecx
test al, 1
je 0x1000a8f8
mov eax, 0x80004005
jmp 0x1000aa54
cdq
sub eax, edx
mov dword [ebp - 0x1118], ebx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x1234], edi
push 4
pop esi
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x1118]
push edi
mov byte [ebp - 4], 5
call fcn.1000b9b8
mov dword [ebp - 4], esi
jmp 0x1000a947
cmp dword [ebp - 0x1118], 0
jne 0x1000a967
lea eax, [ebp - 0x1114]
test eax, eax
je 0x1000a8ee
lea ecx, [ebp - 0x1118]
call fcn.1000af68
jmp 0x1000a8ee
push edi
push ebx
push dword [ebp - 0x1118]
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x1220], ebx
cmp dword [ebp - 0x1230], 0
mov ecx, ebx
jle 0x1000a9db
mov ebx, dword [ebp - 0x1230]
mov esi, dword [ebp - 0x1118]
mov eax, ecx
movzx ecx, byte [ebp + ecx - 0x1014]
cdq
sub eax, edx
mov edi, eax
push ecx
sar edi, 1
call fcn.1000b9b8
mov edx, dword [ebp - 0x1220]
pop ecx
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
mov ecx, dword [ebp - 0x1220]
or byte [edi + esi], al
inc ecx
mov dword [ebp - 0x1220], ecx
cmp ecx, ebx
jl 0x1000a98e
mov edi, dword [ebp - 0x1234]
xor ebx, ebx
mov eax, dword [ebp - 0x1224]
push edi
push dword [ebp - 0x1118]
push 3
push ebx
push dword [ebp - 0x1228]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
mov edi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x1000aa2d
lea ecx, [ebp - 0x1118]
call fcn.1000af68
jmp 0x1000aa2d
push 1
lea eax, [ebp - 0x1014]
mov ecx, edi
push eax
push esi
call fcn.1000b9b8
mov edi, eax
test edi, edi
je 0x1000aa3a
push edi
call fcn.1000b9b8
pop ecx
jmp 0x1000aa54
push dword [ebp - 0x123c]
mov ecx, dword [ebp - 0x122c]
call fcn.1000b9b8
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x124c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10010fb8
mov esp, ebp
pop ebp
ret 0xc