Function at 0x40a1a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f24d0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x54c1b4]
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 0x40a3df
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], ebx
xor ecx, ecx
push 0x34
mov word [ebp - 0x2c], cx
push 0x512188
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00408810
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00407720
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 0x40a234
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 0x40a28d
push str.RegWriteList
call fcn.004089c0
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x40a268
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
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 0x40a286
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40a3e1
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 0x40a306
mov dword [ebp - 0x6c], 0
add esi, dword [ebp - 0x6c]
push 0
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x48]
call fcn.00407720
push 1
mov eax, 0x5114f8
mov ecx, esi
call fcn.00407820
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 0x40a2c4
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 0x40a33c
dec eax
je 0x40a333
dec eax
jne 0x40a34a
push 0xe
push str.UnsetupCmdList
jmp 0x40a342
push 0xc
push 0x5125dc
jmp 0x40a342
push ebx
push 0x5125cc
lea ecx, [ebp - 0x64]
call fcn.00408810
mov ecx, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x40a35a
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], esi
jae 0x40a365
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 0x40a38b
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004bb4d8
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 0x40a3a8
mov eax, dword [ebp - 0x48]
push eax
call fcn.004bb4d8
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 0x40a3c5
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004bb4d8
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 0x40a3df
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.004bb4e3
mov esp, ebp
pop ebp
ret