Function at 0x4061ec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x48bc
call fcn.004084b0
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
lea eax, [ebp - 0x268]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004028ff
add esp, 0x14
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jge 0x406263
mov eax, dword [ebp - 0x60]
jmp 0x40646d
lea edx, [ebp - 0x54]
push edx
push 0x4093a0
lea eax, [ebp - 0x268]
push eax
call dword [0x40f4dc]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jge 0x406290
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x278], ecx
jmp 0x40646b
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x48bc]
push eax
call fcn.00403fba
add esp, 8
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
je 0x4062b7
jmp 0x406469
cmp dword [ebp + 0xc], 1
jne 0x4062d0
lea ecx, [ebp - 0x48bc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00403675
add esp, 8
mov dword [ebp - 0x270], 0xc
lea eax, [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
push 0x40c378
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 0x406310
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x278], edx
jmp 0x406467
cmp dword [ebp - 0x58], 0
je 0x406407
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 0x406345
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x278], ecx
jmp 0x406465
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 0x40636f
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x278], eax
jmp 0x406463
cmp dword [ebp - 0x26c], 0
je 0x40638b
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.00402b05
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 0x4063cd
jmp 0x406461
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 0x40d524
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 0x406407
jmp 0x40645f
cmp dword [ebp - 0x26c], 0
je 0x40641d
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x274], 0
je 0x406433
mov ecx, dword [ebp - 0x274]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x5c], 0
je 0x406445
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 0x406457
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 0x40646d
jmp 0x406407
jmp 0x406407
jmp 0x406407
jmp 0x406407
jmp 0x406407
jmp 0x406407
jmp 0x406407
mov esp, ebp
pop ebp
ret