Function at 0x10065f0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1017068]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x1c], 0
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov edi, 0x1000
push edi
mov dword [ebp - 0x14], ecx
call esi
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp - 0xc], ebx
jne 0x1006647
mov esi, 0x8007000e
lea ecx, [ebp - 0x1c]
call fcn.01005e3c
mov eax, esi
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100836d
leave
ret 0x10
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.01005761
test eax, eax
mov dword [ebp - 0x10], eax
jge 0x1006664
push ebx
call dword [sym.imp.msvcrt.dll_free]
mov esi, dword [ebp - 0x10]
pop ecx
jmp 0x1006629
lea eax, [ebp - 8]
push eax
push ebx
call fcn.01005557
test eax, eax
jne 0x1006681
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov esi, 0x80020009
jmp 0x1006629
push edi
call esi
mov ebx, eax
xor edi, edi
cmp ebx, edi
pop ecx
mov dword [ebp - 0x28], ebx
jne 0x100669c
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1006624
mov ecx, dword [ebp - 0x14]
call fcn.01005738
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.01005761
cmp eax, edi
mov dword [ebp - 0x10], eax
jge 0x10066c5
mov edi, dword [sym.imp.msvcrt.dll_free]
push ebx
call edi
push dword [ebp - 0xc]
call edi
pop ecx
jmp 0x100665e
movzx eax, word [ebp - 8]
sub eax, 8
je 0x10067ee
sub eax, 9
je 0x1006744
dec eax
dec eax
jne 0x100692b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x400
ja 0x1006709
push edi
call fcn.01004fb2
test al, al
je 0x1006709
mov eax, edi
call fcn.010085b0
mov eax, esp
jmp 0x1006712
push edi
lea ecx, [ebp - 0x1c]
call fcn.0100629e
push esi
push ebx
push eax
call fcn.010050c3
test eax, eax
je 0x1006831
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x24]
call fcn.010052c6
jmp 0x100692b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x10], eax
jne 0x1006809
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0x400
mov dword [ebp - 0x18], esi
ja 0x100677e
push esi
call fcn.01004fb2
test al, al
je 0x100677e
mov eax, esi
call fcn.010085b0
mov dword [ebp - 8], esp
jmp 0x100678a
push esi
lea ecx, [ebp - 0x1c]
call fcn.0100629e
mov dword [ebp - 8], eax
cmp dword [ebp - 8], edi
je 0x1006809
push esi
push edi
push dword [ebp - 8]
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp - 0x10], edi
jle 0x10067d2
mov ecx, dword [ebp - 8]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, byte [edi + ebx]
push eax
call fcn.010055e1
mov edx, edi
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x10067a1
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push dword [ebp - 8]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x100692b
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x18], ebx
je 0x1006911
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xffe
jle 0x1006823
mov esi, dword [sym.imp.msvcrt.dll_free]
push ebx
call esi
push dword [ebp - 0xc]
call esi
pop ecx
pop ecx
mov esi, 0x80004005
jmp 0x1006629
push 0x1000
call esi
mov edi, eax
test edi, edi
pop ecx
jne 0x1006845
mov esi, dword [sym.imp.msvcrt.dll_free]
push ebx
call esi
push dword [ebp - 0xc]
call esi
pop ecx
jmp 0x1006699
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
and dword [ebp - 0x10], 0
push 0x10017f4
call fcn.0100648d
test eax, eax
mov dword [ebp - 8], eax
je 0x1006909
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x100688c
push esi
call fcn.01004fb2
test al, al
je 0x100688c
mov eax, esi
call fcn.010085b0
mov eax, esp
jmp 0x1006895
push esi
lea ecx, [ebp - 0x10]
call fcn.0100629e
push esi
push dword [ebp - 8]
push eax
call fcn.010050e1
test eax, eax
mov dword [ebp - 8], eax
je 0x1006951
push eax
push ebx
call fcn.01005685
mov esi, eax
test esi, esi
mov dword [ebp - 0x20], esi
je 0x1006909
cmp esi, dword [ebp + 0x10]
je 0x10068cc
push esi
push ebx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x22
je 0x1006909
sub esi, ebx
push esi
push ebx
push edi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, 0x10017f0
push ebx
push edi
call esi
push dword [ebp - 8]
push edi
call esi
push ebx
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 0x20]
push eax
push edi
call esi
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x10]
call fcn.01005e3c
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x18]
call fcn.010052e9
test edi, edi
je 0x100692b
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.01005761
mov esi, eax
test esi, esi
push ebx
jge 0x1006972
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [ebp - 0xc]
call edi
pop ecx
pop ecx
jmp 0x1006629
mov esi, dword [sym.imp.msvcrt.dll_free]
push edi
call esi
push ebx
call esi
push dword [ebp - 0xc]
call esi
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.01005e3c
jmp 0x1006624
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp - 0xc]
call esi
pop ecx
pop ecx
xor esi, esi
jmp 0x1006629