Function at 0x406ce3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1118
call fcn.00409c00
mov eax, dword [0x40d230]
xor eax, dword [ebp + 4]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x1118]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], edi
call fcn.0040625d
cmp eax, edi
jl 0x406fdd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1118]
push eax
call fcn.0040702c
test eax, eax
pop ecx
pop ecx
jne 0x406d3c
mov eax, 0x80020009
jmp 0x406fdd
mov ecx, esi
call fcn.00406235
lea eax, [ebp - 0x1118]
push eax
mov ecx, esi
call fcn.0040625d
cmp eax, edi
jl 0x406fdd
movzx eax, word [ebp - 0xc]
sub eax, 8
je 0x406f94
sub eax, 9
je 0x406ea5
dec eax
dec eax
je 0x406e4b
sub eax, 0x3ff5
jne 0x406fcc
lea eax, [ebp - 0x1118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x100
mov dword [ebp - 0x118], edi
jbe 0x406dab
push eax
lea ecx, [ebp - 0x118]
call fcn.004070f2
jmp 0x406db7
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov edi, dword [ebp - 0x118]
test edi, edi
je 0x406e26
cmp byte [ebp - 0x1118], 0
lea esi, [ebp - 0x1118]
je 0x406e0e
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x406df0
cmp byte [eax], 0x30
jne 0x406df0
and byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x406e09
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x406e07
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x406dd6
and byte [edi], 0
push dword [ebp - 0x118]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00406ff5
mov esi, eax
jmp 0x406e29
push 0xe
pop esi
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x406fbd
lea ecx, [ebp - 0x118]
call fcn.004070e9
jmp 0x406fbd
call dword [0x40d058]
mov edi, eax
lea eax, [ebp - 0x1118]
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.00409c00
mov eax, esp
push edi
push esi
lea ecx, [ebp - 0x1118]
push ecx
push eax
call fcn.004010ca
lea ecx, [ebp - 8]
push ecx
xor esi, esi
push esi
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 8]
push 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
jmp 0x406fad
lea eax, [ebp - 0x1118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x406f05
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, 0x100
mov dword [ebp - 0x118], edi
jbe 0x406edc
push ebx
lea ecx, [ebp - 0x118]
call fcn.004070f2
jmp 0x406ee8
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], edi
jne 0x406f0f
lea eax, [ebp - 0x114]
test eax, eax
je 0x406f05
lea ecx, [ebp - 0x118]
call fcn.004070e9
mov eax, 0x80004005
jmp 0x406fdd
push ebx
push edi
push dword [ebp - 0x118]
call fcn.00409810
add esp, 0xc
cmp dword [ebp - 8], 0
jle 0x406f5d
mov eax, edi
cdq
sub eax, edx
mov esi, eax
xor eax, eax
mov al, byte [ebp + edi - 0x1118]
sar esi, 1
add esi, dword [ebp - 0x118]
push eax
call fcn.004070be
pop ecx
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 - 8]
jl 0x406f25
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x118]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x406fbd
lea ecx, [ebp - 0x118]
call fcn.004070e9
jmp 0x406fbd
lea eax, [ebp - 0x1118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1118]
push eax
push 1
push edi
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x406fcc
push esi
call fcn.00406b49
pop ecx
jmp 0x406fdd
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.0040625d
cmp eax, edi
jl 0x406fdd
xor eax, eax
lea esp, [ebp - 0x1124]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004093a6
pop edi
pop esi
pop ebx
leave
ret 0xc