Function at 0x405ccc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x48bc
call fcn.00407f50
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.0040244f
add esp, 0x14
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jge 0x405d43
mov eax, dword [ebp - 0x60]
jmp 0x405f4d
lea edx, [ebp - 0x54]
push edx
push 0x409350
lea eax, [ebp - 0x268]
push eax
call dword [0x40f0b8]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jge 0x405d70
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x278], ecx
jmp 0x405f4b
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x48bc]
push eax
call fcn.00403b0a
add esp, 8
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
je 0x405d97
jmp 0x405f49
cmp dword [ebp + 0xc], 1
jne 0x405db0
lea ecx, [ebp - 0x48bc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004031c5
add esp, 8
mov dword [ebp - 0x270], 0xc
lea eax, [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
push 0x40bf78
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 0x405df0
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x278], edx
jmp 0x405f47
cmp dword [ebp - 0x58], 0
je 0x405ee7
lea eax, [ebp - 0x5c]
push eax
push 0x409190
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 0x405e25
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x278], ecx
jmp 0x405f45
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 0x405e4f
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x278], eax
jmp 0x405f43
cmp dword [ebp - 0x26c], 0
je 0x405e6b
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.00402655
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 0x405ead
jmp 0x405f41
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 0x40d124
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 0x405ee7
jmp 0x405f3f
cmp dword [ebp - 0x26c], 0
je 0x405efd
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x274], 0
je 0x405f13
mov ecx, dword [ebp - 0x274]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x5c], 0
je 0x405f25
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 0x405f37
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 0x405f4d
jmp 0x405ee7
jmp 0x405ee7
jmp 0x405ee7
jmp 0x405ee7
jmp 0x405ee7
jmp 0x405ee7
jmp 0x405ee7
mov esp, ebp
pop ebp
ret