Function at 0x403d70
Capabilities:
Create process on windows
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ec0cf
mov eax, dword fs:[0]
push eax
sub esp, 0xad8
mov eax, dword [0x66dd68]
xor eax, esp
mov dword [esp + 0xad0], eax
push ebx
push esi
push edi
mov eax, dword [0x66dd68]
xor eax, esp
push eax
lea eax, [esp + 0xae8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x4c], eax
call fcn.00408985
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403dd1
push 0x80004005
call fcn.00402920
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov ebx, str.UninstallProducts
shr ebx, 0x10
mov dword [esp + 0xaf0], 0
mov dword [esp + 0x40], ebx
test ebx, ebx
jne 0x403e1b
mov ecx, str.UninstallProducts
movzx edi, cx
push edi
call fcn.0040881f
test eax, eax
je 0x403e2d
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.00402470
jmp 0x403e29
push str.UninstallProducts
lea ecx, [esp + 0x18]
call fcn.00406ba0
mov esi, dword [esp + 0x14]
mov eax, 1
mov dword [esp + 0xaf0], eax
cmp dword [esi - 4], eax
jle 0x403e4f
mov edx, dword [esi - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.004026d0
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00401500
add esi, 0xfffffff0
mov dword [esp + 0xaf0], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403e7d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x4c]
mov esi, dword [ecx + 0xc]
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x28], edi
call fcn.00408985
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x403eac
push 0x80004005
call fcn.00402920
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0xaf0], 2
mov dword [esp + 0x3c], edi
cmp esi, edi
jle 0x4047e2
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
mov dword [esp + 0x20], esi
call fcn.00408985
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403dc7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.......................................Start_of_processing_item_......................................
mov byte [esp + 0xaf4], 3
test ecx, 0xffff0000
jne 0x403f2f
mov edx, ecx
movzx edi, dx
push edi
call fcn.0040881f
test eax, eax
je 0x403f3d
push edi
push eax
mov ecx, esi
call fcn.00402470
jmp 0x403f3d
push 0x65
push str.......................................Start_of_processing_item_......................................
mov ecx, esi
call fcn.004029a0
mov byte [esp + 0xaf4], 2
call fcn.004011e0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x50]
add esp, 4
push eax
call fcn.004096ce
test eax, eax
je 0x404800
mov esi, dword [eax + 8]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x403f8c
cmp eax, dword [esi - 0x10]
jne 0x403f8c
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x403fc4
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x404805
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0059da05
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x14], edi
push edi
lea ecx, [esp + 0x14]
push str.ProductCode_processed:__s
push ecx
mov byte [esp + 0xafc], 4
call fcn.00402120
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esp, 8
mov dword [esp + 0x20], esp
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x404016
cmp eax, dword [esi - 0x10]
jne 0x404016
lea edi, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40404e
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x404805
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0059da05
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.004011e0
add esp, 4
xor ecx, ecx
lea eax, [esp + 0x28]
push eax
mov word [esp + 0x6d0], cx
xor edx, edx
lea ecx, [esp + 0x6d0]
push ecx
mov word [esp + 0x2c4], dx
mov edx, dword [esp + 0x1c]
push 0x630980
push edx
mov dword [esp + 0x44], 0
mov dword [esp + 0x38], 0x410
call dword [sym.imp.msi.dll_MsiGetPropertyW]
mov dword [esp + 0x20], eax
test eax, eax
je 0x404425
push eax
lea ecx, [esp + 0x14]
push str.Unable_to_retrieve_ProductName__MSI_ErrorCode:__u
push ecx
call fcn.00402120
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esp, 8
mov dword [esp + 0x20], esp
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x4040eb
cmp eax, dword [esi - 0x10]
jne 0x4040eb
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x404123
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x404805
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0059da05
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.004011e0
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Getting_the_UninstallString_from_the_registry_
call fcn.00402b60
call fcn.004011e0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push edx
call fcn.004061b0
add esp, 0x10
lea eax, [esp + 0x24]
push eax
push 0x20219
mov byte [esp + 0xaf8], 5
mov ecx, dword [esp + 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], edi
call esi
test eax, eax
je 0x4041a8
call fcn.00405b80
test al, al
je 0x4041a8
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x24]
push edx
push 0x20119
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov esi, dword [esp + 0x24]
cmp esi, edi
je 0x404348
push 0x206
lea edx, [esp + 0xba]
xor ecx, ecx
push edi
push edx
mov word [esp + 0xc0], cx
call fcn.005a28d0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xb8]
push ecx
push edi
push edi
push str.UninstallString
push esi
mov dword [esp + 0x34], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esp + 0xb4], di
je 0x404335
push str.UninstallString_value_is:
lea ecx, [esp + 0x68]
call fcn.00402b60
push ecx
mov ecx, esp
mov byte [esp + 0xaf4], 6
mov dword [esp + 0x1c], esp
lea edx, [esp + 0xb8]
push edx
push eax
push ecx
call fcn.004060d0
add esp, 0xc
call fcn.004011e0
mov byte [esp + 0xaf4], 5
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40426f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44
lea ecx, [esp + 0x70]
push edi
push ecx
call fcn.005a28d0
add esp, 0xc
xor eax, eax
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x70]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [esp + 0xd4]
push ecx
push edi
mov dword [esp + 0x94], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404316
mov edx, dword [esp + 0x50]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x44]
push eax
push ecx
mov dword [esp + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4042f7
mov eax, dword [esp + 0x44]
xor edx, edx
cmp eax, edi
sete dl
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x54]
push ecx
call esi
mov eax, str.SUCCESSFULLY
cmp dword [esp + 0x34], edi
jne 0x40431b
mov eax, str.FAILED
mov edx, dword [esp + 0x14]
push eax
push edx
lea eax, [esp + 0x18]
push str.Product__s__s_to_remove_
push eax
call fcn.00402120
add esp, 0xc
jmp 0x40435f
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.No_value_for_the_UninstallString_in_the_registry_
call fcn.00402b60
jmp 0x40436f
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push str.No_value_for_the__s_in_the_registry_
push ecx
call fcn.00402120
add esp, 8
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], esp
mov ecx, esp
push edx
call fcn.00401f30
call fcn.004011e0
mov byte [esp + 0xaf4], 4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40439f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x34], edi
jne 0x4043be
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Product_is_not_installed.
call fcn.00402b60
call fcn.004011e0
add esp, 4
push ecx
mov esi, esp
mov dword [esp + 0x1c], esp
mov dword [esp + 0x1c], esi
call fcn.00408985
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403dc7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.......................................End_of_processing_item_........................................
mov byte [esp + 0xaf4], 0xa
test ecx, 0xffff0000
jne 0x404785
mov edx, ecx
movzx edi, dx
push edi
call fcn.0040881f
test eax, eax
je 0x404793
push edi
push eax
mov ecx, esi
call fcn.00402470
jmp 0x404793
cmp word [esp + 0x6cc], 0
je 0x4043a5
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x14]
push str.Product_with_ProductCode:__s_is_installed_
push ecx
call fcn.00402120
add esp, 8
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], esp
mov ecx, esp
push edx
call fcn.00401f30
call fcn.004011e0
lea eax, [esp + 0x6d0]
push eax
lea ecx, [esp + 0x18]
push str.The_ProductName_is:__s
push ecx
call fcn.00402120
add esp, 0xc
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], esp
mov ecx, esp
push edx
call fcn.00401f30
call fcn.004011e0
add esp, 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x2c0]
push ecx
push str.InstallLocation
push esi
mov dword [esp + 0x38], 0x410
call dword [sym.imp.msi.dll_MsiGetPropertyW]
mov esi, eax
test esi, esi
je 0x4044e4
push esi
lea edx, [esp + 0x14]
push str.Unable_to_retrieve_InstallLocation__MSI_ErrorCode:__u
push edx
call fcn.00402120
add esp, 8
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], esp
mov ecx, esp
push eax
call fcn.00401f30
call fcn.004011e0
add esp, 4
lea ecx, [esp + 0x2bc]
push ecx
lea edx, [esp + 0x14]
push str.InstallLocation:__s
push edx
call fcn.00402120
add esp, 8
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], esp
mov ecx, esp
push eax
call fcn.00401f30
call fcn.004011e0
add esp, 4
push 0x1a
push str._REBOOTReallySuppress__qb
lea ecx, [esp + 0x1c]
call fcn.00401c60
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00404aa0
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
je 0x404549
cmp edi, 0xbc2
jne 0x40480a
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Product_has_been_removed_SUCCESSFULLY_
call fcn.00402b60
call fcn.004011e0
add esp, 4
test esi, esi
jne 0x4043be
cmp word [esp + 0x2bc], si
je 0x4043be
lea ecx, [esp + 0x2bc]
call fcn.004057c0
lea ecx, [esp + 0x2bc]
lea edx, [esp + 0x10]
push ecx
test eax, eax
je 0x40459b
push str.Directory__s_SUCCESSFULLY_removed_
jmp 0x4045a0
push str.Directory__s_FAILED_to_remove_
push edx
call fcn.00402120
add esp, 8
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], esp
mov ecx, esp
push eax
call fcn.00401f30
call fcn.004011e0
add esp, 4
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Geting_the_install_location_from_the_registry_
call fcn.00402b60
call fcn.004011e0
add esp, 4
push str.SOFTWAREScanSoftSharedProducts
lea ecx, [esp + 0x3c]
call fcn.00402b60
lea ecx, [esp + 0x2c]
push ecx
push 0x20219
mov byte [esp + 0xaf8], 8
mov edx, dword [esp + 0x40]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], 0
call esi
test eax, eax
je 0x40463b
call fcn.00405b80
test al, al
je 0x40463b
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x2c]
push eax
push 0x20119
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x404754
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xbe]
push eax
mov word [esp + 0xc0], dx
call fcn.005a28d0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x50]
push eax
push 0
push str.InstallLocation
push esi
mov dword [esp + 0x34], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404730
cmp word [esp + 0xb4], ax
je 0x404730
push str.Install_Location_value_is:
lea ecx, [esp + 0x64]
call fcn.00402b60
push ecx
mov ecx, esp
mov byte [esp + 0xaf4], 9
mov dword [esp + 0x1c], esp
lea edx, [esp + 0xb8]
push edx
push eax
push ecx
call fcn.004060d0
add esp, 0xc
call fcn.004011e0
add esp, 4
lea ecx, [esp + 0x60]
mov byte [esp + 0xaf0], 8
call fcn.00402c70
lea ecx, [esp + 0xb4]
call fcn.004057c0
test eax, eax
lea eax, [esp + 0xb4]
lea ecx, [esp + 0x10]
push eax
je 0x404729
push str.Directory__s_SUCCESSFULLY_removed_
push ecx
call fcn.00402120
add esp, 8
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], esp
mov ecx, esp
push edx
call fcn.00401f30
jmp 0x404741
push str.Directory__s_FAILED_to_remove_
jmp 0x40470e
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.No_value_for_the_InstallLocation_in_the_registry_
call fcn.00402b60
call fcn.004011e0
mov eax, dword [esp + 0x30]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0xaf0], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4043be
push 0x65
push str.......................................End_of_processing_item_........................................
mov ecx, esi
call fcn.004029a0
mov byte [esp + 0xaf4], 4
call fcn.004011e0
mov byte [esp + 0xaf4], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x68]
jl 0x403ed3
mov ebx, dword [esp + 0x40]
call fcn.00408985
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4048fa
push 0x80004005
call fcn.00402920
call fcn.004084dd
call fcn.00402760
push edi
lea ecx, [esp + 0x14]
push str.Error_occured_during_uninstall:__u
push ecx
call fcn.00402120
add esp, 8
lea edx, [esp + 0x14]
mov dword [esp + 0x4c], esp
mov ecx, esp
push edx
call fcn.00401f30
call fcn.004011e0
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.Removing_Failed__
call fcn.00402b60
call fcn.004011e0
add esp, 4
push str.UninstallProducts
lea ecx, [esp + 0x44]
call fcn.00406c30
mov esi, eax
mov byte [esp + 0xaf0], 7
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x404875
mov eax, dword [eax - 0xc]
push eax
mov ecx, esi
call fcn.004026d0
mov ecx, dword [esi]
call fcn.00401670
mov byte [esp + 0xaf0], 4
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0xaf0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xaf0], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x404a6e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0xaf0], 0xb
test ebx, ebx
jne 0x404940
mov ecx, str.UninstallProducts
movzx esi, cx
push esi
call fcn.0040881f
test eax, eax
je 0x4049f5
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00402470
mov edi, dword [esp + 0x14]
jmp 0x4049f5
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push str.UninstallProducts
push 0
push 3
call ebx
lea esi, [eax - 1]
test esi, esi
jle 0x40499c
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x40497d
push esi
lea ecx, [esp + 0x18]
call fcn.004027d0
mov edi, dword [esp + 0x14]
push esi
push edi
push 0xffffffffffffffff
push str.UninstallProducts
push 0
push 3
call ebx
cmp esi, dword [edi - 8]
jg 0x4049b7
xor edx, edx
mov dword [edi - 0xc], esi
mov word [edi + esi*2], dx
jmp 0x4049f5
cmp dword [edi - 0xc], 0
mov esi, dword [edi - 0x10]
lea eax, [edi - 0x10]
je 0x4049f5
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x4049cf
cmp dword [edi - 8], 0
jge 0x4049c1
push 0x80070057
call fcn.00402920
xor eax, eax
mov dword [edi - 0xc], 0
mov word [edi], ax
jmp 0x4049f5
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0xaf0], 0xc
cmp dword [edi - 4], 1
jle 0x404a14
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.004026d0
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.00401670
add edi, 0xfffffff0
mov byte [esp + 0xaf0], 2
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404a3f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov dword [esp + 0xaf0], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xae8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xad0]
xor ecx, esp
call fcn.0059d9f6
mov esp, ebp
pop ebp
ret