Function at 0x4060c7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x46b4
call fcn.00407f50
mov dword [ebp - 0x46b4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x46ac], 0
mov dword [ebp - 0x46b0], 0
mov eax, dword [ebp + 0xc]
push eax
push 2
call fcn.004036cc
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x46a8]
push edx
call fcn.00403b0a
add esp, 8
mov dword [ebp - 0x46b4], eax
cmp dword [ebp - 0x46b4], 0
je 0x406149
mov eax, dword [ebp - 0x46b4]
jmp 0x406319
lea eax, [ebp - 0x46a8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004031c5
add esp, 8
mov dword [ebp - 0x5c], 0xe
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
push 0x40be60
mov ecx, dword [ebp + 0xc]
add ecx, 0x410
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
push ecx
call dword [eax + 0x18]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jge 0x406194
jmp 0x406314
lea edx, [ebp - 0x60]
push edx
push 0x409190
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x58]
push edx
call dword [ecx]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jge 0x4061b6
jmp 0x40630f
push 0
push 1
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0x40030
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0040495d
add esp, 0x24
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x4061e5
jmp 0x40630a
lea edx, [ebp - 0x46ac]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x60]
push edx
call dword [ecx + 0x24]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x406206
jmp 0x406305
cmp dword [ebp - 0x46ac], 0
je 0x406222
mov eax, dword [ebp - 0x46ac]
push eax
lea ecx, [ebp - 0x54]
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
cmp dword [ebp - 0x46ac], 0
je 0x406238
mov edx, dword [ebp - 0x46ac]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x60], 0
je 0x40624a
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x60]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0x58], 0
je 0x40625c
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x58]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0x64], 0
je 0x40626a
mov eax, dword [ebp - 0x64]
jmp 0x406319
mov eax, dword [ebp + 0xc]
push eax
push 2
call fcn.00402655
add esp, 8
lea ecx, [ebp - 0x46b0]
push ecx
push 2
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x46b4], eax
cmp dword [ebp - 0x46b4], 0
je 0x4062a9
jmp 0x406303
lea eax, [ebp - 0x54]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x54]
push ecx
push 1
push 0
push 0x40d18c
mov edx, dword [ebp - 0x46b0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x46b4], eax
cmp dword [ebp - 0x46b4], 0
je 0x4062e3
jmp 0x406301
cmp dword [ebp - 0x46b0], 0
je 0x4062f9
mov eax, dword [ebp - 0x46b0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x46b4]
jmp 0x406319
jmp 0x4062e3
jmp 0x4062e3
jmp 0x406222
jmp 0x406222
jmp 0x406222
jmp 0x406222
mov esp, ebp
pop ebp
ret