Function at 0x406ed0
Capabilities:
Create directory
Delete directory
Delete file
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x35c
call fcn.004665f0
test eax, eax
jne 0x407990
call fcn.004012d0
mov dword [ebp - 0x33c], eax
test eax, eax
je 0x407985
mov dword [esp + 4], 0
mov dword [esp], 0x52e11c
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
sub esp, 8
mov dword [esp + 8], 0x1f4
mov dword [esp + 4], 0x52ed8c
mov dword [esp], 0x52ed8c
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], 9
mov dword [esp + 4], 0x532d40
mov dword [esp], 0x52e06e
call fcn.00467500
mov dword [esp + 4], 0
cmp dword [section..bss], 1
mov dword [esp], 2
sbb ebx, ebx
xor bl, bl
add ebx, 0xf013f
call sub.msi.dll_MsiSetInternalUI
sub esp, 8
mov dword [esp + 4], 0x52ed9c
mov dword [esp], 0x52e06e
call sub.msi.dll_MsiInstallProductA
sub esp, 8
mov esi, eax
cmp eax, 0x659
je 0x4079c0
mov dword [esp + 4], 0xe08
lea edi, [ebp - 0x220]
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], 0x52ea88
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 4], 0xe09
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov dword [esp + 4], 1
mov dword [esp], 0x52ed8c
call fcn.00467020
mov dword [esp + 4], 0x52e2b4
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 4], 0xe0a
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], 0x52e4ac
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x33c]
mov dword [esp + 0xc], str.CBABC2FDCCB35E749A8944D8C1C098B5
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInstallerUserData_sComponents_s
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.004013d0
lea eax, [ebp - 0x32c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
mov esi, eax
mov dword [esp + 4], 0xe0e
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], 0x52ea88
lea esi, [ebp - 0x324]
mov dword [esp], eax
call fcn.0052b0e0
lea eax, [ebp - 0x330]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x32c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x52edd8
mov dword [esp], eax
mov dword [ebp - 0x330], 0x104
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
mov dword [ebp - 0x340], eax
mov dword [esp + 4], 0xe13
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], 0x52ea88
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
lea eax, [ebp - 0x11c]
mov dword [esp + 4], 0x59c220
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strcpy]
lea edx, [ebp - 0x11c]
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x407179
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
mov dword [edx], 0x69736d5c
mov dword [edx + 4], 0x74736574
mov dword [edx + 8], 0x78616d5c
mov dword [edx + 0xc], 0x73756d69
mov byte [edx + 0x10], 0
mov dword [esp + 4], 0xe18
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
lea eax, [ebp - 0x11c]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_lstrcmpiA]
mov dword [ebp - 0x340], eax
call eax
lea edx, [ebp - 0x11c]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], esi
movzx eax, al
mov dword [esp + 8], edx
mov dword [esp + 4], 0x52edf9
mov dword [esp], eax
call fcn.0052b0e0
lea edx, [ebp - 0x328]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInstallerComponents
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
mov dword [ebp - 0x344], eax
mov dword [esp + 4], 0xe1c
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov eax, dword [ebp - 0x344]
mov dword [esp + 4], 0x52ee14
cmp eax, 2
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x32c]
mov dword [esp + 4], 0x52edd8
mov dword [esp], eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 0x32c]
mov ecx, ebx
mov edx, 0x52ee3b
sub esp, 8
call fcn.00401000
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
mov edx, dword [ebp - 0x33c]
sub esp, 4
mov dword [esp + 8], edx
mov dword [esp], edi
mov dword [esp + 0xc], str.241C3DA58FECD0945B9687D408766058
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInstallerUserData_sComponents_s
call fcn.004013d0
lea edx, [ebp - 0x32c]
mov dword [esp + 4], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
mov dword [ebp - 0x344], eax
mov dword [esp + 4], 0xe24
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov eax, dword [ebp - 0x344]
mov dword [esp + 4], 0x52ea88
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x32c]
lea ecx, [ebp - 0x330]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x52edd8
mov dword [esp], eax
mov dword [ebp - 0x330], 0x104
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
mov dword [ebp - 0x344], eax
mov dword [esp + 4], 0xe29
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov eax, dword [ebp - 0x344]
mov dword [esp + 4], 0x52ea88
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 4], 0xe2a
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov ecx, dword [sym.imp.kernel32.dll_lstrcmpA]
mov dword [esp], esi
mov dword [esp + 4], str.01msitest_augustus
mov dword [ebp - 0x344], ecx
call ecx
sub esp, 8
test eax, eax
sete al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str.Expected__01msitest_augustus___got___s__n
mov dword [esp], eax
call fcn.0052b0e0
lea edx, [ebp - 0x328]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInstallerComponents
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
mov dword [ebp - 0x348], eax
mov dword [esp + 4], 0xe2e
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov eax, dword [ebp - 0x348]
mov dword [esp + 4], 0x52ee14
cmp eax, 2
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x32c]
mov dword [esp + 4], 0x52edd8
mov dword [esp], eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 0x32c]
mov ecx, ebx
mov edx, 0x52ee3b
sub esp, 8
call fcn.00401000
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov dword [esp + 4], str.PROCESS_COMPONENTS1_ALLUSERS1
mov dword [esp], 0x52e06e
call sub.msi.dll_MsiInstallProductA
sub esp, 8
mov dword [ebp - 0x348], eax
mov dword [esp + 4], 0xe36
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov eax, dword [ebp - 0x348]
mov dword [esp + 4], 0x52ea88
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 4], 0xe37
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov dword [esp + 4], 1
mov dword [esp], 0x52ed8c
call fcn.00467020
mov dword [esp + 4], 0x52e2b4
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 4], 0xe38
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], 0x52e4ac
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp], edi
mov dword [esp + 0xc], str.CBABC2FDCCB35E749A8944D8C1C098B5
mov dword [esp + 8], 0x52eec0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInstallerUserData_sComponents_s
call fcn.004013d0
lea edx, [ebp - 0x32c]
mov dword [esp + 4], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
mov dword [ebp - 0x348], eax
mov dword [esp + 4], 0xe3c
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov eax, dword [ebp - 0x348]
mov dword [esp + 4], 0x52ea88
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x32c]
lea edx, [ebp - 0x330]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x52edd8
mov dword [esp], eax
mov dword [ebp - 0x330], 0x104
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
mov dword [ebp - 0x348], eax
mov dword [esp + 4], 0xe41
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov eax, dword [ebp - 0x348]
mov dword [esp + 4], 0x52ea88
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 4], 0xe42
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
lea edx, [ebp - 0x11c]
mov dword [esp], esi
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], edx
call eax
lea edx, [ebp - 0x11c]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 4], 0x52edf9
call fcn.0052b0e0
lea eax, [ebp - 0x328]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInstallerComponents
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
mov dword [ebp - 0x340], eax
mov dword [esp + 4], 0xe46
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], 0x52ee14
cmp eax, 2
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x32c]
mov dword [esp + 4], 0x52edd8
mov dword [esp], eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 0x32c]
mov edx, 0x52ee3b
mov ecx, ebx
sub esp, 8
call fcn.00401000
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov dword [esp], edi
mov dword [esp + 0xc], str.241C3DA58FECD0945B9687D408766058
mov dword [esp + 8], 0x52eec0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInstallerUserData_sComponents_s
call fcn.004013d0
lea eax, [ebp - 0x32c]
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0xe4e
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], 0x52ea88
mov dword [esp], eax
call fcn.0052b0e0
lea eax, [ebp - 0x330]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x32c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x52edd8
mov dword [esp], eax
mov dword [ebp - 0x330], 0x104
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
mov edi, eax
mov dword [esp + 4], 0xe53
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], 0x52ea88
mov dword [esp], eax
call fcn.0052b0e0
mov dword [esp + 4], 0xe54
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov ecx, dword [ebp - 0x344]
mov dword [esp], esi
mov dword [esp + 4], str.01msitest_augustus
call ecx
sub esp, 8
test eax, eax
sete al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str.Expected__01msitest_augustus___got___s__n
mov dword [esp], eax
call fcn.0052b0e0
lea eax, [ebp - 0x328]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInstallerComponents
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
mov esi, eax
mov dword [esp + 4], 0xe58
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
xor eax, eax
cmp esi, 2
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], 0x52ee14
mov dword [esp], eax
call fcn.0052b0e0
mov eax, dword [ebp - 0x32c]
mov dword [esp + 4], 0x52edd8
mov dword [esp], eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 0x32c]
mov ecx, ebx
mov edx, 0x52ee3b
sub esp, 8
call fcn.00401000
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov ebx, dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [esp], 0x52e06e
call ebx
sub esp, 4
mov dword [esp], 0x52ed8c
call ebx
sub esp, 4
mov dword [esp], 0x52e11c
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0x33c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0xdf0
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], 0xe05
mov dword [esp], str..._wine_dlls_msi_tests_action.c
call fcn.0052ae70
mov dword [esp], 0x52e270
call fcn.0052b1d0
jmp 0x407945