Function at 0x408d20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecbb0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [edi]
mov esi, ecx
cmp eax, dword [edi + 4]
je 0x408f5f
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], ebx
xor ecx, ecx
push 0x34
mov word [ebp - 0x2c], cx
push 0x50bae0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.004073c0
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004064e0
movzx eax, byte [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, 0x100
mov esi, 8
add eax, 0xf003f
cmp dword [ebp - 0x18], esi
jae 0x408db4
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x68]
push edx
push eax
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x408e0d
push str.RegWriteList
call fcn.00407570
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x408de8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp eax, ebx
je 0x408e06
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x408f61
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov byte [ebp - 4], 2
mov esi, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x408e86
mov dword [ebp - 0x6c], 0
add esi, dword [ebp - 0x6c]
push 0
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x48]
call fcn.004064e0
push 1
mov eax, 0x50b498
mov ecx, esi
call fcn.004065e0
mov esi, dword [edi]
mov ecx, dword [edi + 4]
add dword [ebp - 0x6c], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jb 0x408e44
mov ebx, 7
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], cx
mov eax, dword [ebp + 8]
sub eax, edi
mov byte [ebp - 4], 3
je 0x408ebc
dec eax
je 0x408eb3
dec eax
jne 0x408eca
push 0xe
push str.UnsetupCmdList
jmp 0x408ec2
push 0xc
push 0x50bf14
jmp 0x408ec2
push ebx
push 0x50bf04
lea ecx, [ebp - 0x64]
call fcn.004073c0
mov ecx, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x408eda
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], esi
jae 0x408ee5
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x38]
add edx, edx
push edx
push ecx
push 1
push edi
push eax
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x50], esi
jb 0x408f0b
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b6106
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x34], esi
jb 0x408f28
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b6106
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], esi
jb 0x408f45
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b6106
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
cmp eax, edi
je 0x408f5f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret