Function at 0x41f5a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499155
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4bd0c8]
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 dword [ebp - 0x48], ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 1
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x41f5fd
mov eax, dword [edi]
mov dword [edi + 0x10], 0
xor ecx, ecx
mov word [eax], cx
mov esi, dword [edx]
mov esi, dword [esi]
cmp byte [esi + 0xd], cl
jne 0x41f6fb
mov ebx, dword [ebp - 0x48]
mov ecx, 0x3b
nop
lea eax, [esi + 0x10]
mov word [ebp - 0x44], cx
mov ecx, dword [eax + 0x10]
cmp ecx, 0x7ffffffe
je 0x41f7dc
cmp dword [eax + 0x14], 8
jb 0x41f63e
mov eax, dword [eax]
push 1
lea edx, [ebp - 0x44]
push edx
push ecx
push eax
push ecx
push ebx
lea ecx, [ebp - 0x40]
call fcn.00409e10
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00409eb0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41f6a9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f69f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f7e1
push edx
push ecx
call fcn.0046e37b
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x41f6d4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41f6d0
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x41f6d0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x41f6c0
mov esi, eax
jmp 0x41f6ec
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x41f6ec
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x41f6e0
cmp byte [esi + 0xd], 0
mov ecx, 0x3b
je 0x41f620
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
lea ecx, [eax*2 + 2]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0
push str.ProductsInstalled
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test eax, eax
je 0x41f783
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push str.RegSetValueEx_failed_with__i
push eax
call fcn.0041d400
add esp, 0xc
mov ecx, edi
push eax
call fcn.004093d0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41f783
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f779
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f7d7
push edx
push ecx
call fcn.0046e37b
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41f7b9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f7af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f7e1
push edx
push ecx
call fcn.0046e37b
add esp, 8
mov al, bl
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.0046e338
mov esp, ebp
pop ebp
ret
call fcn.00473144
call fcn.00401750
call fcn.00473144
int3