Function at 0x427160
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x56dea0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x28], esi
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov edi, dword [esp + 0x48]
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
mov dword [esp + 0x44], ebx
call fcn.0040bd80
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [edi + 0x18]
mov dword [eax + 8], eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x4c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SOFTWAREFactoryTool
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi + 0x3128], ebx
mov dword [esp + 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x427218
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
call fcn.0045e1b2
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x427253
push 0x80004005
call fcn.004017e0
cmp dword [0x5d7f84], ebx
je 0x42723b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x5d7f84]
push eax
push str.Error:LoadLayerMap_Create_or_Open_Key_failed_err_d
push edx
call fcn.00527ec0
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x40], 1
xor ebp, ebp
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], 4
lea ebx, [ebx]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4272a6
push 0x104
lea ecx, [esp + 0x18]
call fcn.00403ae0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x34]
push eax
push ebx
lea ecx, [esp + 0x30]
push ecx
push esi
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
jne 0x42730b
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004943dc
add esp, 8
cmp eax, ebx
jl 0x4273ec
cmp eax, dword [esi - 8]
jg 0x4273ec
xor ecx, ecx
mov dword [esi - 0xc], eax
lea edx, [esp + 0x14]
mov word [esi + eax*2], cx
push edx
mov ecx, edi
call fcn.00424ee0
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
inc ebp
jmp 0x427280
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x42731e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], ebx
mov eax, dword [edi + 0x18]
mov eax, dword [eax]
mov ebp, dword [edi]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov ebx, dword [edi + 0x18]
mov eax, dword [edi]
test ebp, ebp
je 0x42733e
cmp ebp, eax
je 0x427343
call fcn.004945e3
cmp dword [esp + 0x18], ebx
je 0x4273b2
test ebp, ebp
jne 0x4273a8
call fcn.004945e3
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x18]
jne 0x427362
call fcn.004945e3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
mov ebx, dword [esp + 0x28]
cmp ecx, dword [ebx + 0x3128]
jbe 0x427399
test ebp, ebp
jne 0x4273ad
call fcn.004945e3
mov edx, dword [esp + 0x18]
cmp edx, dword [ebp + 0x18]
jne 0x42738c
call fcn.004945e3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
mov dword [ebx + 0x3128], ecx
lea ecx, [esp + 0x14]
call fcn.0040a440
mov ebp, dword [esp + 0x14]
jmp 0x427331
mov eax, dword [ebp]
jmp 0x427354
mov ebp, dword [ebp]
jmp 0x42737e
add esi, 0xfffffff0
mov byte [esp + 0x40], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4273d3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4273e2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x42723d
push 0x80070057
call fcn.004017e0
int3