Function at 0x406720
Capabilities:
Access peb ldr_data
Delete file
Delete registry key
Get number of processors
Get process heap flags
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
call fcn.004665f0
test eax, eax
jne 0x406de0
call fcn.00403760
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], str.msitestenglish.txt
mov dword [esp], str.msitestenglish.txt
call fcn.00466b70
mov dword [esp + 0x18], 0x52e1e8
mov dword [esp + 0x14], 0x52e20f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x64
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x531e40
mov dword [esp], 0x52e06e
call fcn.00467500
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.msi.dll_MsiSetInternalUI
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0x52e06e
call sub.msi.dll_MsiInstallProductA
sub esp, 8
mov ebx, eax
cmp eax, 0x659
je 0x406e30
mov dword [esp + 4], 0x168b
lea edi, [ebp - 0x1c]
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x52e294
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x52ec80
mov dword [esp], str.92AFCBC0_9CA6_4270_8454_47C5EE2B8FAA
mov dword [ebp - 0x1c], 0
call sub.msi.dll_MsiProvideQualifiedComponentA
sub esp, 0x14
mov ebx, eax
mov dword [esp + 4], 0x1690
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.MsiProvideQualifiedComponent_returned__d_n
lea ebx, [ebp - 0x20]
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x530a00
mov dword [esp], 0x80000001
call sub.advapi32.dll_RegOpenKeyA
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x1693
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.components_key_not_created__d_n
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x52ec80
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
mov esi, eax
mov dword [esp + 4], 0x1696
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.value_not_found__d_n
mov dword [esp], eax
call fcn.0052b0e0
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x52ec80
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x169a
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.value_not_found__d_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov dword [esp + 4], 0x530a00
mov dword [esp], 0x80000001
call sub.advapi32.dll_RegDeleteKeyA
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x169e
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.RegDeleteKey_failed__d_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000100
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareClassesInstallerComponents0CBCFA296AC907244845745CEEB2F8AA
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
sub esp, 0x24
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x16a2
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.RegCreateKeyEx_failed__d_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 7
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x52ec80
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExA
sub esp, 0x18
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x16a4
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.RegSetValueEx_failed__d_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
mov dword [ebp - 0x1c], 0
sub esp, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x52ec80
mov dword [esp], str.92AFCBC0_9CA6_4270_8454_47C5EE2B8FAA
call sub.msi.dll_MsiProvideQualifiedComponentA
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0x16aa
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.MsiProvideQualifiedComponent_returned__d_n
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [0x58b010]
test eax, eax
je 0x406e10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x100
mov dword [esp + 4], str.SoftwareClassesInstallerComponents0CBCFA296AC907244845745CEEB2F8AA
mov dword [esp], 0x80000002
call eax
sub esp, 0x10
mov edi, eax
mov dword [esp + 4], 0x16b0
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.RegDeleteKey_failed__d_n
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x530a00
mov dword [esp], 0x80000001
call sub.advapi32.dll_RegCreateKeyA
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x16b3
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.RegCreateKey_failed__d_n
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 7
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x52ec80
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExA
sub esp, 0x18
mov edi, eax
mov dword [esp + 4], 0x16b6
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.RegSetValueEx_failed__d_n
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x20]
sub esp, 0xc
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov dword [esp + 4], 0x52e503
mov dword [esp], 0x52e06e
call sub.msi.dll_MsiInstallProductA
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x16bb
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], 0x52e294
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x530a00
mov dword [esp], 0x80000001
call sub.advapi32.dll_RegOpenKeyA
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x16be
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
xor eax, eax
cmp ebx, 2
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.unexpected_result__d_n
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 4], 0x16c0
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov dword [esp + 4], 1
mov dword [esp], str.msitestenglish.txt
call fcn.00467020
mov dword [esp + 4], 0x52e919
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 4], 0x16c1
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov dword [esp + 4], 0
mov dword [esp], 0x52e11c
call fcn.00467020
mov dword [esp + 4], 0x52e92b
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov ebx, dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [esp], str.msitestenglish.txt
call ebx
sub esp, 4
call fcn.00401170
mov dword [esp], 0x52e06e
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x167b
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov dword [esp], 0x52e124
call fcn.0052b1d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.SoftwareClassesInstallerComponents0CBCFA296AC907244845745CEEB2F8AA
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegDeleteKeyA
sub esp, 8
mov edi, eax
jmp 0x406b89
mov dword [esp + 4], 0x1688
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov dword [esp], 0x52e270
call fcn.0052b1d0
jmp 0x406dad