Function at 0x4171d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48f730
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push 0x49bf38
push ecx
call fcn.00410cd0
push 0x49bf34
push eax
lea edx, [esp + 0x28]
xor esi, esi
push edx
mov dword [esp + 0x48], esi
call fcn.00401800
add esp, 0x18
mov bl, 2
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41724c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x49bf3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x4172cd
push str.MsiQueryProductStateW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4172c6
mov ecx, dword [esp + 0x14]
push ecx
call eax
push edi
cmp eax, 5
jne 0x417298
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
jmp 0x4173d0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4172bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4173e0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x3c]
call fcn.00401600
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00411980
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x18]
push ecx
push 1
mov byte [esp + 0x38], 4
mov edx, dword [esp + 0x40]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], esi
call edi
cmp eax, esi
je 0x41738b
push 0x40
push str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x40]
call fcn.00401d30
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00411980
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
push 1
push esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], esi
call edi
cmp eax, esi
je 0x41738b
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41729e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41729e
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x41739a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov edx, ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4173bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4173de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4