Function at 0x427400
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x56ded0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
lea edi, [esi + 0x312c]
push ecx
mov ecx, edi
mov dword [esp + 0x38], 0
call fcn.0041a470
mov ebx, dword [eax]
mov edx, dword [edi + 0x18]
mov ebp, dword [eax + 4]
mov eax, dword [edi]
mov dword [esp + 0x24], edx
test ebx, ebx
je 0x42745e
cmp ebx, eax
je 0x427463
call fcn.004945e3
cmp ebp, dword [esp + 0x24]
jne 0x4275f7
lea eax, [esp + 0x38]
mov ebx, 1
add dword [esi + 0x3128], ebx
push eax
mov ecx, edi
call fcn.00424ee0
mov ecx, dword [esi + 0x3128]
xor ebp, ebp
mov dword [eax], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push str.SOFTWAREFactoryTool
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x54], bl
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebp
jne 0x427573
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x3128]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push ebp
push eax
push edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp edi, ebp
je 0x427504
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
cmp ebx, ebp
je 0x4275c8
cmp dword [0x5d7f84], ebp
je 0x427533
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5d7f84]
push eax
push str.Error:GetIDFromLayerMap_Set_Key_value_failed_err_d
push ecx
call fcn.00527ec0
add esp, 0xc
mov esi, dword [esi + 0x3128]
cmp edi, ebp
je 0x427544
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4275c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x427637
cmp dword [0x5d7f84], ebp
je 0x427596
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5d7f84]
push eax
push str.Error:GetIDFromLayerMap_Create_or_Open_Key_failed_err_d
push ecx
call fcn.00527ec0
add esp, 0xc
mov eax, dword [esp + 0x38]
mov esi, dword [esi + 0x3128]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4275c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x427637
mov esi, dword [esi + 0x3128]
cmp edi, ebp
je 0x4275d9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4275b8
test ebx, ebx
jne 0x42764d
call fcn.004945e3
cmp ebp, dword [ebx + 0x18]
jne 0x42760a
call fcn.004945e3
mov eax, dword [esp + 0x38]
mov ebp, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427635
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ebx, dword [ebx]
jmp 0x427600