Function at 0x406bb6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
and dword [ebp - 8], 0
test byte [ebp + 0x18], 1
push ebx
push edi
mov edi, dword [ebp + 0xc]
je 0x406c02
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
add eax, 4
push eax
push dword [edi + 0xc]
push dword [edi + 0x48]
push dword [edi]
call fcn.0041827b
mov ebx, eax
test ebx, ebx
jns 0x406c02
push dword [ebp + 8]
push str.Failed_to_cache_bundle_from_path:__ls
push ebx
call fcn.0042d996
add esp, 0xc
jmp 0x4070d7
lea eax, [ebp - 4]
push eax
push 0x20006
push dword [edi + 0x50]
push dword [edi + 0x4c]
call fcn.0043112e
mov ebx, eax
test ebx, ebx
jns 0x406c2e
push str.Failed_to_create_registration_key.
push ebx
call fcn.0042d996
pop ecx
pop ecx
jmp 0x4070d7
test byte [ebp + 0x18], 2
push esi
je 0x40704d
push dword [edi + 0x54]
mov esi, str.BundleCachePath
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
push dword [edi + 0x20]
mov esi, str.BundleUpgradeCode
push dword [edi + 0x1c]
push esi
push dword [ebp - 4]
call fcn.0043164d
mov ebx, eax
test ebx, ebx
js 0x40708d
push dword [edi + 0x28]
mov esi, str.BundleAddonCode
push dword [edi + 0x24]
push esi
push dword [ebp - 4]
call fcn.0043164d
mov ebx, eax
test ebx, ebx
js 0x40708d
push dword [edi + 0x18]
mov esi, str.BundleDetectCode
push dword [edi + 0x14]
push esi
push dword [ebp - 4]
call fcn.0043164d
mov ebx, eax
test ebx, ebx
js 0x40708d
push dword [edi + 0x30]
mov esi, str.BundlePatchCode
push dword [edi + 0x2c]
push esi
push dword [ebp - 4]
call fcn.0043164d
mov ebx, eax
test ebx, ebx
js 0x40708d
mov ecx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
movzx edx, cx
push edx
mov edx, eax
shrd ecx, edx, 0x10
movzx ecx, cx
push ecx
movzx ecx, ax
push ecx
mov dword [ebp - 0xc], eax
shr eax, 0x10
push eax
push str._hu._hu._hu._hu
mov esi, str.BundleVersion
push esi
push dword [ebp - 4]
shr edx, 0x10
call fcn.0043160b
mov ebx, eax
add esp, 0x1c
test ebx, ebx
js 0x40708d
mov eax, dword [edi + 0x44]
test eax, eax
je 0x406d2e
push eax
mov esi, str.BundleProviderKey
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
mov eax, dword [edi + 0x10]
test eax, eax
je 0x406d4e
push eax
mov esi, str.BundleTag
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
push str.3.7.1224.0
push 0x43c1a0
mov esi, str.EngineVersion
push esi
push dword [ebp - 4]
call fcn.0043160b
mov ebx, eax
add esp, 0x10
test ebx, ebx
js 0x40708d
push dword [edi + 0x54]
mov esi, str.DisplayIcon
push str._s_0
push esi
push dword [ebp - 4]
call fcn.0043160b
mov ebx, eax
add esp, 0x10
test ebx, ebx
js 0x40708d
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
mov ebx, edi
call fcn.00405a59
test eax, eax
mov eax, dword [ebp - 8]
jns 0x406dae
mov eax, dword [edi + 0x60]
push eax
mov esi, str.DisplayName
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
mov eax, dword [edi + 0x64]
test eax, eax
je 0x406de7
push eax
mov esi, str.DisplayVersion
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
mov eax, dword [edi + 0x68]
test eax, eax
je 0x406e07
push eax
mov esi, str.Publisher
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x406e27
push eax
mov esi, str.HelpLink
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
mov eax, dword [edi + 0x70]
test eax, eax
je 0x406e47
push eax
mov esi, str.HelpTelephone
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
mov eax, dword [edi + 0x74]
test eax, eax
je 0x406e67
push eax
mov esi, str.URLInfoAbout
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
mov eax, dword [edi + 0x78]
test eax, eax
je 0x406e87
push eax
mov esi, str.URLUpdateInfo
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x406ec2
push eax
mov esi, str.ParentDisplayName
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
push dword [edi + 0x7c]
mov esi, str.ParentKeyName
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
mov eax, dword [edi + 0x80]
test eax, eax
je 0x406ee5
push eax
mov esi, str.Comments
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
mov eax, dword [edi + 0x84]
test eax, eax
je 0x406f08
push eax
mov esi, str.Contact
push esi
push dword [ebp - 4]
call fcn.00431565
mov ebx, eax
test ebx, ebx
js 0x40708d
mov eax, dword [edi + 0x88]
cmp eax, 1
jne 0x406ff8
mov esi, str.NoModify
push 1
push esi
push dword [ebp - 4]
call fcn.0043108d
mov ebx, eax
test ebx, ebx
js 0x40708d
cmp dword [edi + 0x8c], 0
je 0x406f58
push dword [edi + 0x90]
mov esi, str.NoRemove
push esi
push dword [ebp - 4]
call fcn.0043108d
mov ebx, eax
test ebx, ebx
js 0x40708d
cmp dword [edi + 4], 0
jne 0x406f78
push 1
mov esi, str.SystemComponent
push esi
push dword [ebp - 4]
call fcn.0043108d
mov ebx, eax
test ebx, ebx
js 0x40708d
push dword [edi + 0x54]
mov esi, str.QuietUninstallString
push str.__ls___uninstall__quiet
push esi
push dword [ebp - 4]
call fcn.0043160b
mov ebx, eax
add esp, 0x10
test ebx, ebx
js 0x40708d
cmp dword [edi + 0x88], 2
mov eax, str._modify
je 0x406fae
mov eax, str.__uninstall
push eax
push dword [edi + 0x54]
mov esi, str.UninstallString
push str.__ls___ls
push esi
push dword [ebp - 4]
call fcn.0043160b
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x40708d
cmp dword [edi + 0x98], 0
je 0x40702a
push dword [edi]
lea ebx, [edi + 0x94]
call fcn.00405f24
mov ebx, eax
test ebx, ebx
jns 0x40702a
push str.Failed_to_write_software_tags.
jmp 0x4070ce
cmp eax, 2
je 0x406f31
push dword [edi + 0x54]
mov esi, str.ModifyPath
push str.__ls___modify
push esi
push dword [ebp - 4]
call fcn.0043160b
mov ebx, eax
add esp, 0x10
test ebx, ebx
js 0x40708d
mov esi, str.NoElevateOnModify
jmp 0x406f1c
cmp dword [edi + 0x9c], 0
je 0x40704d
push dword [ebp + 0x10]
mov eax, edi
call fcn.00406a2a
mov ebx, eax
test ebx, ebx
jns 0x40704d
push str.Failed_to_write_update_registration.
jmp 0x4070ce
test byte [ebp + 0x18], 4
je 0x40709e
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
shrd ecx, eax, 0xa
shr eax, 0xa
test eax, eax
jb 0x40709e
ja 0x407075
test ecx, ecx
je 0x40709e
test eax, eax
jb 0x407078
ja 0x407075
cmp ecx, 0xffffffff
jbe 0x407078
or ecx, 0xffffffff
push ecx
mov esi, str.EstimatedSize
push esi
push dword [ebp - 4]
call fcn.0043108d
mov ebx, eax
test ebx, ebx
jns 0x40709e
push esi
push str.Failed_to_write__ls_value.
push ebx
call fcn.0042d996
add esp, 0xc
jmp 0x4070d6
cmp dword [ebp + 0x1c], 1
jne 0x4070b7
push edi
call fcn.0041dd02
mov ebx, eax
test ebx, ebx
jns 0x4070b7
push str.Failed_to_register_the_bundle_dependency_key.
jmp 0x4070ce
push 0
push 1
push dword [ebp - 4]
call fcn.00405abc
mov ebx, eax
test ebx, ebx
jns 0x4070d6
push str.Failed_to_update_resume_mode.
push ebx
call fcn.0042d996
pop ecx
pop ecx
pop esi
cmp dword [ebp - 8], 0
je 0x4070e5
push dword [ebp - 8]
call fcn.0042dd7e
cmp dword [ebp - 4], 0
je 0x4070f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret 0x20