Function at 0x4071f0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x435f06
mov eax, dword fs:[0]
push eax
mov eax, 0x86dc
call fcn.004241b0
mov eax, dword [0x44c250]
xor eax, esp
mov dword [esp + 0x86d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44c250]
xor eax, esp
push eax
lea eax, [esp + 0x86f0]
mov dword fs:[0], eax
mov esi, dword [esp + 0x8700]
xor ebp, ebp
push 0x206
mov edi, ecx
lea ecx, [esp + 0xea]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x24], ebp
mov word [esp + 0xf0], ax
call fcn.00422000
push 0x7ffc
lea eax, [esp + 0x6fe]
xor edx, edx
push ebp
push eax
mov dword [esp + 0x6c], 0x104
mov dword [esp + 0x64], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x5c], ebp
mov word [esp + 0x704], dx
call fcn.00422000
add esp, 0x18
mov dword [esp + 0x3c], 0x3fff
mov dword [esp + 0x34], ebp
call fcn.00413279
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4072c9
push 0x80004005
call fcn.00401340
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0x20c]
mov dword [esp + 0x86f8], ebp
mov dword [esp + 0x48], 4
cmp eax, 0x66
jne 0x4072fb
mov dword [esp + 0x48], pe_nt_image_headers32
cmp eax, ebp
je 0x40786e
call fcn.00410aa0
test eax, eax
je 0x40786e
mov ecx, edi
call fcn.00405ed0
test eax, eax
je 0x40786e
lea ecx, [esp + 0x18]
push ecx
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40770c
lea edx, [esp + 0x5c]
push edx
push ebp
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x38]
push ebp
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x10c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
cmp ebx, ebp
je 0x40739f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x14]
call fcn.00402090
jmp 0x4078a7
mov eax, dword [esp + 0x28]
cmp eax, ebp
jbe 0x40741d
xor esi, esi
cmp eax, ebp
jbe 0x40741d
lea ecx, [ecx]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x1c]
push ebp
push ebp
push ebp
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x500]
push eax
push esi
push ecx
mov dword [esp + 0x58], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, ebp
jne 0x407416
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x4ec]
push edx
push eax
lea ecx, [esp + 0x2f4]
push 0x4391ec
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push ebp
lea edx, [esp + 0x2f0]
push edx
mov ecx, edi
call fcn.004071f0
test eax, eax
je 0x40746c
inc esi
cmp esi, dword [esp + 0x28]
jb 0x4073b0
cmp dword [esp + 0x24], ebp
jbe 0x4076e8
mov ebp, dword [esp + 0x44]
shl ebp, 5
add ebp, 2
push ebp
call fcn.004242b8
xor esi, esi
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, esi
jne 0x40749c
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x407457
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x14]
call fcn.00402090
jmp 0x4078a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x407483
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x14]
call fcn.00402090
jmp 0x4078a7
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x24], esi
jbe 0x4076dd
lea ebx, [ebx]
lea edx, [esp + 0x30]
push edx
push eax
xor ecx, ecx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov word [esp + 0x6fc], cx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x700]
push edx
push eax
push ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x5c], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40773d
xor edx, edx
push 0x7e
push edx
lea eax, [esp + 0x6e]
push eax
mov word [esp + 0x70], dx
call fcn.00422000
inc dword [edi + 0x838]
mov eax, dword [edi + 0x838]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea ecx, [esp + 0x74]
push str.registry_d
push ecx
call ebx
push ebp
call fcn.004242b8
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x40775e
push ebp
push 0
push esi
call fcn.00422000
mov eax, dword [esp + 0x40]
dec eax
add esp, 0xc
cmp eax, 3
ja case.default.0x407553
jmp dword [eax*4 + 0x4078d4]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
push ebp
push esi
push edx
push eax
call fcn.00412510
add esp, 0x10
jmp 0x4075b3
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4075b3
push 0x4386f4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4075b3
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
push eax
push 0x4391cc
push esi
call ebx
add esp, 0xc
jmp 0x4075b3
push 0x10
push str.DWMSI_Wizard
push 0x4391c0
push 0
call fcn.00410da0
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
call fcn.00403690
cmp word [esp + 0x6ec], 0
mov byte [esp + 0x86f8], 1
je 0x4076ac
mov edx, dword [esp + 0x48]
push edx
lea eax, [esp + 0x6f0]
push eax
lea ecx, [esp + 0x1c]
push str.INSERT_INTO_Component__Component__Directory___Attributes__KeyPath__VALUES___s__APPDIR___d___
push ecx
call fcn.00402ca0
mov edx, dword [esp + 0x24]
mov eax, dword [edx - 0xc]
add esp, 0x10
push eax
lea ecx, [esp + 0x18]
call fcn.00402530
push eax
mov ecx, edi
call fcn.00406590
test eax, eax
je 0x407790
lea eax, [esp + 0x6ec]
push eax
lea ecx, [esp + 0x18]
push str.INSERT_INTO_FeatureComponents__Feature___Component___VALUES__MainFeature___s_
push ecx
call fcn.00402ca0
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.00402530
push eax
mov ecx, edi
call fcn.00406590
test eax, eax
je 0x4077e0
mov eax, dword [esp + 0x20]
mov eax, dword [eax - 0xc]
lea ecx, [esp + 0x6ec]
push ecx
push esi
mov edx, ecx
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.00402530
push eax
lea eax, [esp + 0x6fc]
push eax
lea ecx, [esp + 0x28]
push str.INSERT_INTO_Registry__Registry__Root___Key___Name__Value___Component___VALUES___s_2___s___s___s___s_
push ecx
call fcn.00402ca0
mov edx, dword [esp + 0x30]
mov eax, dword [edx - 0xc]
add esp, 0x1c
push eax
lea ecx, [esp + 0x18]
call fcn.00402530
push eax
mov ecx, edi
call fcn.00406590
test eax, eax
je 0x407815
push esi
call fcn.004241db
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x86f8], 0
call fcn.00402090
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
jb 0x4074b0
push eax
call fcn.004241db
add esp, 4
xor ebp, ebp
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4076fb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov ecx, dword [edi + 0x834]
push ecx
call dword [0x4549fc]
mov ebx, dword [esp + 0x14]
lea eax, [ebx - 0x10]
mov dword [esp + 0x86f8], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407733
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4078a9
push 0x10
push str.DWRCSMSI_Wizard
push str.Failed
push 0
call fcn.00410da0
lea ecx, [esp + 0x14]
call fcn.00402090
jmp 0x4078a7
mov eax, dword [esp + 0x1c]
push eax
call fcn.004241db
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x407782
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x14]
call fcn.00402090
jmp 0x4078a7
mov ecx, dword [edi + 0x218]
push 0x4385e8
add ecx, 0x308
call fcn.004136c0
mov ecx, dword [edi + 0x218]
push 0
add ecx, 0x41c
call fcn.00413747
mov ecx, dword [edi + 0x218]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x20]
call fcn.00402090
lea ecx, [esp + 0x14]
call fcn.00402090
jmp 0x4078a7
mov ecx, dword [edi + 0x218]
push 0x4385e8
add ecx, 0x308
call fcn.004136c0
mov ecx, dword [edi + 0x218]
push 0
add ecx, 0x41c
call fcn.00413747
mov eax, dword [edi + 0x218]
mov ecx, dword [eax + 0x20]
push ecx
jmp 0x4077c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
push 0x10
push str.DWMSI_Wizard
push eax
lea ecx, [esp + 0x20]
call fcn.00402530
push eax
push 0
call fcn.00410da0
push esi
call fcn.004241db
mov eax, dword [esp + 0x20]
push eax
call fcn.004241db
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x4077c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0
jmp 0x4077c9
push 0x10
push str.DWRCSMSI_Wizard
push 0x4389e0
push ebp
call fcn.00410da0
lea eax, [ebx - 0x10]
mov dword [esp + 0x86f8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4078a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x86f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x86d8]
xor ecx, esp
call fcn.00421fea
add esp, 0x86e8
ret 8