Function at 0x42cd60
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x455b40
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push edi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
push str.Writting_registry_keys_for_allsku.
push 0x46fa40
xor eax, eax
mov byte [esp + 0x58], 1
call fcn.00431730
mov eax, dword [esi + 0x1c]
add esp, 8
cmp dword [eax], edi
je 0x42d031
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
lea esp, [esp]
push 0xffffffffffffffff
push edi
mov eax, esi
lea ecx, [esp + 0x30]
call fcn.004040c0
mov ecx, dword [esi + 0x1c]
mov edx, dword [ebx + ecx]
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ce00
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.00403ff0
cmp dword [esp + 0x40], 8
jb 0x42ce2b
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
jmp 0x42ce33
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp byte [esi + 0x48], cl
setne cl
test eax, eax
mov edi, ecx
je 0x42ce4c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
je 0x42ceaf
sub ecx, 1
jne 0x42cef5
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x42cffd
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [esp + 0x20], 0
setne al
test al, al
je 0x42cffd
mov eax, 0x100
mov dword [esp + 0x18], eax
jmp 0x42cef5
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x42cef1
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [esp + 0x24], 0
setne al
test al, al
je 0x42cef1
mov eax, 0x200
mov dword [esp + 0x18], eax
jmp 0x42cef5
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
or eax, 0xf003f
push eax
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42cffd
push 0x10
push eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + ebx]
push ecx
call fcn.0043f8be
add esp, 0xc
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
push str.DeviceID
push eax
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.VendorID
push eax
mov dword [esp + 0x28], ecx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x24]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.Merit
push eax
mov dword [esp + 0x28], ecx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x28]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.APIVersion
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp dword [esi + 0x44], 8
jb 0x42cfb4
mov edx, dword [esi + 0x30]
jmp 0x42cfb7
lea edx, [esi + 0x30]
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cfc0
sub eax, edi
sar eax, 1
lea ecx, [eax + eax]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
push 0
push str.Path
push edx
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42cff3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
jmp 0x42d011
push str.Error_writing_keys.
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 8
mov eax, dword [esp + 0x1c]
add eax, 1
lea ebx, [eax*4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x1c]
xor edi, edi
cmp dword [ebx + eax], edi
jne 0x42cde0
cmp dword [esp + 0x40], 8
jb 0x42d045
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0043e965
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, edi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
je 0x42d065
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0043d02a
add esp, 0x44
ret