Function at 0x406656
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x48bc
call fcn.00408990
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x26c], 0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x268]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402ce9
add esp, 0x18
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jge 0x4066d2
mov eax, dword [ebp - 0x60]
jmp 0x4068dc
lea edx, [ebp - 0x54]
push edx
push 0x4093a0
lea eax, [ebp - 0x268]
push eax
call dword [0x40f49c]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jge 0x4066ff
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x278], ecx
jmp 0x4068da
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x48bc]
push eax
call fcn.004043ef
add esp, 8
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
je 0x406726
jmp 0x4068d8
cmp dword [ebp + 0xc], 1
jne 0x40673f
lea ecx, [ebp - 0x48bc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00403a82
add esp, 8
mov dword [ebp - 0x270], 0xc
lea eax, [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
push 0x40c338
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x54]
push ecx
call dword [eax + 0x14]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jge 0x40677f
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x278], edx
jmp 0x4068d6
cmp dword [ebp - 0x58], 0
je 0x406876
lea eax, [ebp - 0x5c]
push eax
push 0x4091e0
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x54]
push eax
call dword [edx]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jge 0x4067b4
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x278], ecx
jmp 0x4068d4
lea edx, [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x5c]
push edx
call dword [ecx + 0x24]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x4067de
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x278], eax
jmp 0x4068d2
cmp dword [ebp - 0x26c], 0
je 0x4067fa
mov ecx, dword [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x50]
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
push 2
call fcn.00402f0d
add esp, 8
lea ecx, [ebp - 0x274]
push ecx
push 2
push 0
mov edx, dword [ebp + 0x10]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
je 0x40683c
jmp 0x4068d0
lea eax, [ebp - 0x50]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x50]
push ecx
push 1
push 0
push 0x40d4e4
mov edx, dword [ebp - 0x274]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
je 0x406876
jmp 0x4068ce
cmp dword [ebp - 0x26c], 0
je 0x40688c
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x274], 0
je 0x4068a2
mov ecx, dword [ebp - 0x274]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x5c], 0
je 0x4068b4
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x54], 0
je 0x4068c6
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x54]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x278]
jmp 0x4068dc
jmp 0x406876
jmp 0x406876
jmp 0x406876
jmp 0x406876
jmp 0x406876
jmp 0x406876
jmp 0x406876
mov esp, ebp
pop ebp
ret