Function at 0x41e060
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476c2b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x49c128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x60], esi
mov edi, ecx
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x1c], edi
call fcn.0041dc40
mov dword [ebp - 4], 0
mov al, byte [ebp - 0x34]
test al, al
je 0x41e119
cmp al, 1
jne 0x41e39b
movups xmm0, xmmword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
movq xmm1, qword [ebp - 0x3c]
mov ecx, dword [ebp - 0x50]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
movups xmmword [edi + 8], xmm0
mov dword [ebp - 0x3c], 0
movq qword [edi + 0x18], xmm1
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov byte [edi + 0x20], 1
jmp 0x41e373
cmp dword [ebp - 0x40], 8
lea edx, [ebp - 0x54]
mov ecx, esi
cmovae edx, dword [ebp - 0x54]
lea eax, [ecx + 2]
mov dword [ebp - 0x5c], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e130
sub ecx, dword [ebp - 0x5c]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0x48af88
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov esi, eax
test esi, esi
je 0x41e1bb
push 0x1e
push str.failed_set_version_in_registry
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
call fcn.00418fe0
movups xmm0, xmmword [ebp - 0x30]
mov dword [edi], esi
mov dword [edi + 4], 0x49cbb0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
movups xmmword [edi + 8], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [edi + 0x18], xmm0
mov byte [edi + 0x20], 1
jmp 0x41e373
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x41e35e
cmp dword [ebp - 0x58], 1
jne 0x41e35e
cmp byte [ebp - 0x34], 0
jne 0x41e39b
cmp dword [ebp - 0x40], 8
lea ecx, [ebp - 0x58]
push ecx
push 0x102
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0
cmovae eax, dword [ebp - 0x54]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x41e22a
mov dword [ebp - 0x1c], 0x49cbb0
xor esi, esi
jmp 0x41e234
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
test esi, esi
jne 0x41e297
push str.set_version_in_registry
lea edx, [esi + 4]
lea ecx, [ebp - 0x108]
call fcn.00404b20
add esp, 4
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 2
mov cl, byte [eax + 0x48]
test cl, cl
je 0x41e283
mov edx, str.failed_open_wow64_64_key_err
mov ecx, eax
call fcn.00416e30
mov eax, dword [ebp - 0x58]
mov cl, byte [eax + 0x48]
test cl, cl
je 0x41e283
push dword [ebp - 0x5c]
mov ecx, eax
call fcn.00415010
lea ecx, [ebp - 0xa8]
call fcn.004048b0
mov byte [ebp - 4], 3
jmp 0x41e323
mov edx, dword [ebp - 0x60]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x60], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e2a2
sub ecx, dword [ebp - 0x60]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push 0x48af88
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x41e33c
push str.set_version_in_registry
mov edx, 4
lea ecx, [ebp - 0x108]
call fcn.00404b20
add esp, 4
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 4
mov cl, byte [eax + 0x48]
test cl, cl
je 0x41e314
mov edx, str.failed_set_wow64_64_ProductVersion_err
mov ecx, eax
call fcn.00416e30
mov eax, dword [ebp - 0x60]
mov cl, byte [eax + 0x48]
test cl, cl
je 0x41e314
push dword [ebp - 0x5c]
mov ecx, eax
call fcn.00415010
lea ecx, [ebp - 0xa8]
call fcn.004048b0
mov byte [ebp - 4], 5
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], vtable.std::ios_base.0
push eax
call fcn.00452e26
add esp, 4
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], 0
mov byte [edi + 0x20], 0
test esi, esi
je 0x41e373
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e373
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], 0
mov byte [edi + 0x20], 0
lea ecx, [ebp - 0x54]
call fcn.004076e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004553e7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.00408ae0
push 0x49ab60
mov eax, ecx
push eax
call fcn.00456cca
int3