Function at 0x476590
Capabilities:
Access peb ldr_data
Delete registry value
Get process heap flags
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x28]
push ebx
sub esp, 0x5c
cmp dword [0x58b784], 1
sbb ebx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
xor bl, bl
mov dword [esp], 0
add ebx, 0xf013f
call dword [0x58b760]
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x3a5
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
cmp esi, 0x57
mov dword [esp + 4], 0x55fa7d
sete al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp], 0
call sub.msi.dll_MsiQueryProductStateW
sub esp, 4
mov esi, eax
mov dword [esp + 4], 0x3a8
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
cmp esi, 0xfffffffe
mov dword [esp + 4], str.wrong_return_n
sete al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.msi.dll_MsiEnumFeaturesW
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x3ab
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
cmp esi, 0x57
mov dword [esp + 4], 0x55fa7d
sete al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.msi.dll_MsiConfigureFeatureW
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x3ae
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
cmp esi, 0x57
mov dword [esp + 4], 0x55fa7d
sete al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.00000000_0000_0000_0000_000000000000
call sub.msi.dll_MsiConfigureFeatureA
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x3b1
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
cmp esi, 0x57
mov dword [esp + 4], 0x55fa7d
sete al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x55fabf
mov dword [esp], str.00000000_0000_0000_0000_000000000001
call sub.msi.dll_MsiConfigureFeatureA
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x3b4
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
cmp esi, 0x57
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.wrong_error__d_n
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 8], 5
mov dword [esp + 4], 0x55fabf
mov dword [esp], str.00000000_0000_0000_0000_000000000002
call sub.msi.dll_MsiConfigureFeatureA
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x3b7
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
cmp esi, 0x645
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.wrong_error__d_n
mov dword [esp], eax
call fcn.0052b0e0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
cmp eax, 5
je 0x476ca0
mov dword [esp + 4], 0x3c3
mov esi, eax
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.wrong_error__d_n
mov dword [esp], eax
call fcn.0052b0e0
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
mov edi, eax
mov dword [esp + 4], 0x3c6
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor edx, edx
test edi, 0xfffffffd
mov dword [esp + 8], edi
sete dl
mov dword [esp + 4], str.wrong_error__d_n
xor esi, esi
mov dword [esp], edx
call fcn.0052b0e0
test edi, edi
je 0x476c00
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x55fb8b
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueA
sub esp, 0x14
cmp eax, 5
je 0x476d45
mov dword [esp + 4], 0x3db
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
mov dword [ebp - 0x2c], eax
call fcn.0052ae70
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.wrong_error__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 + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x55fb90
mov dword [esp], 0x55fb90
call sub.msi.dll_MsiGetProductInfoA
sub esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x3de
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.wrong_error__d_n
cmp eax, 0x57
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
test esi, esi
je 0x476cd0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExA
sub esp, 0x18
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x3e3
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.wrong_error__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 + 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]
sub esp, 0xc
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov esi, eax
mov dword [esp + 4], 0x3ee
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.wrong_error__d_n
mov dword [esp], eax
call fcn.0052b0e0
lea eax, [ebp - 0x24]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallF1C3AF50_8B56_4A69_A00C_00773FE42F30
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
sub esp, 0x24
mov esi, eax
mov dword [esp + 4], 0x3f3
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.wrong_error__d_n
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x55fb8b
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueA
sub esp, 0x14
mov esi, eax
mov dword [esp + 4], 0x3f6
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.wrong_error__d_n
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x55fb90
mov dword [esp], str.F1C3AF50_8B56_4A69_A00C_00773FE42F30
call sub.msi.dll_MsiGetProductInfoA
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x3f9
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
cmp esi, 0x648
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.wrong_error__d_n
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov esi, eax
mov dword [esp + 4], 0x3fc
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.wrong_error__d_n
mov dword [esp], eax
call fcn.0052b0e0
mov ecx, ebx
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallF1C3AF50_8B56_4A69_A00C_00773FE42F30
mov eax, 0x80000002
and ecx, 0x100
call fcn.00476540
mov dword [esp + 4], 0x400
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
mov ebx, eax
call fcn.0052ae70
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.wrong_error__d_n
mov dword [esp], eax
call fcn.0052b0e0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
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
test eax, eax
je 0x476d20
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x3cf
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.wrong_error__d_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
jmp 0x47689f
mov dword [esp + 4], 0x3c0
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
mov dword [esp], 0x55fb58
call fcn.0052b1d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.advapi32.dll_RegDeleteValueA
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x3ea
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.wrong_error__d_n
mov dword [esp], eax
call fcn.0052b0e0
jmp 0x4769fc
mov dword [esp + 4], 0x3cb
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
mov dword [esp], str.Out_of_memory_n
call fcn.0052b1d0
jmp 0x47689f
mov dword [esp + 4], 0x3d6
mov dword [esp], str..._wine_dlls_msi_tests_msi.c
call fcn.0052ae70
mov dword [esp], 0x55fb58
call fcn.0052b1d0
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 - 0x24]
sub esp, 0xc
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret