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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
test byte [ebp + 0x18], 1
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40c37c
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
add eax, 4
push eax
push dword [edi + 0x10]
push dword [edi + 0x48]
push dword [edi]
call fcn.00415823
mov esi, eax
test esi, esi
jns 0x40c37c
push dword [ebp + 8]
push str.Failed_to_cache_bundle_from_path:__ls
jmp 0x40c89b
lea eax, [ebp - 4]
push eax
push 0x20006
push dword [edi + 0x50]
push dword [edi + 0x4c]
call fcn.004389f2
mov esi, eax
test esi, esi
jns 0x40c3a0
push str.Failed_to_create_registration_key.
jmp 0x40c8d6
test byte [ebp + 0x18], 2
je 0x40c851
push dword [edi + 0x54]
push str.BundleCachePath
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c3ca
push str.BundleCachePath
jmp 0x40c896
push dword [edi + 0x24]
push dword [edi + 0x20]
push str.BundleUpgradeCode
push dword [ebp - 4]
call fcn.00439397
mov esi, eax
test esi, esi
jns 0x40c3ed
push str.BundleUpgradeCode
jmp 0x40c896
push dword [edi + 0x2c]
push dword [edi + 0x28]
push str.BundleAddonCode
push dword [ebp - 4]
call fcn.00439397
mov esi, eax
test esi, esi
jns 0x40c410
push str.BundleAddonCode
jmp 0x40c896
push dword [edi + 0x1c]
push dword [edi + 0x18]
push str.BundleDetectCode
push dword [ebp - 4]
call fcn.00439397
mov esi, eax
test esi, esi
jns 0x40c433
push str.BundleDetectCode
jmp 0x40c896
push dword [edi + 0x34]
push dword [edi + 0x30]
push str.BundlePatchCode
push dword [ebp - 4]
call fcn.00439397
mov esi, eax
test esi, esi
jns 0x40c456
push str.BundlePatchCode
jmp 0x40c896
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
movzx eax, cx
push eax
mov eax, edx
mov dword [ebp - 0xc], edx
shrd ecx, eax, 0x10
shr eax, 0x10
movzx eax, cx
push eax
movzx eax, dx
push eax
shr edx, 0x10
push edx
push str._hu._hu._hu._hu
push str.BundleVersion
push dword [ebp - 4]
call fcn.004394cf
mov esi, eax
add esp, 0x1c
test esi, esi
jns 0x40c49d
push str.BundleVersion
jmp 0x40c896
cmp dword [edi + 0x44], ebx
je 0x40c4c2
push dword [edi + 0x44]
push str.BundleProviderKey
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c4c2
push str.BundleProviderKey
jmp 0x40c896
cmp dword [edi + 0x14], ebx
je 0x40c4e7
push dword [edi + 0x14]
push str.BundleTag
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c4e7
push str.BundleTag
jmp 0x40c896
push str.3.9.1006.0
push 0x44b200
push str.EngineVersion
push dword [ebp - 4]
call fcn.004394cf
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x40c511
push str.EngineVersion
jmp 0x40c896
push dword [edi + 0x54]
push str._s_0
push str.DisplayIcon
push dword [ebp - 4]
call fcn.004394cf
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x40c539
push str.DisplayIcon
jmp 0x40c896
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push edi
call fcn.0040ae3d
test eax, eax
mov eax, dword [ebp - 8]
jns 0x40c550
mov eax, dword [edi + 0x60]
push eax
push str.DisplayName
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c56e
push str.DisplayName
jmp 0x40c896
cmp dword [edi + 0x64], ebx
je 0x40c593
push dword [edi + 0x64]
push str.DisplayVersion
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c593
push str.DisplayVersion
jmp 0x40c896
cmp dword [edi + 0x68], ebx
je 0x40c5b8
push dword [edi + 0x68]
push str.Publisher
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c5b8
push str.Publisher
jmp 0x40c896
cmp dword [edi + 0x6c], ebx
je 0x40c5dd
push dword [edi + 0x6c]
push str.HelpLink
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c5dd
push str.HelpLink
jmp 0x40c896
cmp dword [edi + 0x70], ebx
je 0x40c602
push dword [edi + 0x70]
push str.HelpTelephone
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c602
push str.HelpTelephone
jmp 0x40c896
cmp dword [edi + 0x74], ebx
je 0x40c627
push dword [edi + 0x74]
push str.URLInfoAbout
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c627
push str.URLInfoAbout
jmp 0x40c896
cmp dword [edi + 0x78], ebx
je 0x40c64c
push dword [edi + 0x78]
push str.URLUpdateInfo
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c64c
push str.URLUpdateInfo
jmp 0x40c896
cmp dword [edi + 0x7c], ebx
je 0x40c691
push dword [edi + 0x7c]
push str.ParentDisplayName
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c671
push str.ParentDisplayName
jmp 0x40c896
push dword [edi + 0x7c]
push str.ParentKeyName
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c691
push str.ParentKeyName
jmp 0x40c896
mov eax, dword [edi + 0x80]
test eax, eax
je 0x40c6b9
push eax
push str.Comments
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c6b9
push str.Comments
jmp 0x40c896
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40c6e1
push eax
push str.Contact
push dword [ebp - 4]
call fcn.004392ed
mov esi, eax
test esi, esi
jns 0x40c6e1
push str.Contact
jmp 0x40c896
mov eax, dword [edi + 0x88]
cmp eax, 1
jne 0x40c70a
push eax
push str.NoModify
push dword [ebp - 4]
call fcn.0043929f
mov esi, eax
test esi, esi
jns 0x40c756
push str.NoModify
jmp 0x40c896
cmp eax, 2
je 0x40c756
push dword [edi + 0x54]
push str.__ls___modify
push str.ModifyPath
push dword [ebp - 4]
call fcn.004394cf
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x40c737
push str.ModifyPath
jmp 0x40c896
push 1
push str.NoElevateOnModify
push dword [ebp - 4]
call fcn.0043929f
mov esi, eax
test esi, esi
jns 0x40c756
push str.NoElevateOnModify
jmp 0x40c896
cmp dword [edi + 0x8c], ebx
je 0x40c781
push dword [edi + 0x90]
push str.NoRemove
push dword [ebp - 4]
call fcn.0043929f
mov esi, eax
test esi, esi
jns 0x40c781
push str.NoRemove
jmp 0x40c896
cmp dword [edi + 4], ebx
jne 0x40c7a5
push 1
push str.SystemComponent
push dword [ebp - 4]
call fcn.0043929f
mov esi, eax
test esi, esi
jns 0x40c7a5
push str.SystemComponent
jmp 0x40c896
push dword [edi + 0x54]
push str.__ls___uninstall__quiet
push str.QuietUninstallString
push dword [ebp - 4]
call fcn.004394cf
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x40c7cd
push str.QuietUninstallString
jmp 0x40c896
cmp dword [edi + 0x88], 2
mov ecx, str.__uninstall
mov eax, str._modify
cmovne eax, ecx
push eax
push dword [edi + 0x54]
push str.__ls___ls
push str.UninstallString
push dword [ebp - 4]
call fcn.004394cf
mov esi, eax
add esp, 0x14
test esi, esi
jns 0x40c80a
push str.UninstallString
jmp 0x40c896
cmp dword [edi + 0x98], ebx
je 0x40c830
lea eax, [edi + 0x94]
push eax
push dword [edi]
call fcn.0040b7fe
mov esi, eax
test esi, esi
jns 0x40c830
push str.Failed_to_write_software_tags.
jmp 0x40c8d6
cmp dword [edi + 0x9c], ebx
je 0x40c851
push dword [ebp + 0x10]
push edi
call fcn.0040b92d
mov esi, eax
test esi, esi
jns 0x40c851
push str.Failed_to_write_update_registration.
jmp 0x40c8d6
test byte [ebp + 0x18], 4
je 0x40c8a6
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
shrd ecx, eax, 0xa
shr eax, 0xa
cmp eax, ebx
jb 0x40c8a6
ja 0x40c872
cmp ecx, ebx
jbe 0x40c8a6
cmp eax, ebx
jb 0x40c87b
push 0xffffffffffffffff
pop eax
ja 0x40c87d
cmp ecx, eax
ja 0x40c87d
mov eax, ecx
push eax
push str.EstimatedSize
push dword [ebp - 4]
call fcn.0043929f
mov esi, eax
test esi, esi
jns 0x40c8a6
push str.EstimatedSize
push str.Failed_to_write__ls_value.
push esi
call fcn.00437258
add esp, 0xc
jmp 0x40c8de
cmp dword [ebp + 0x1c], 1
jne 0x40c8bf
push edi
call fcn.00423629
mov esi, eax
test esi, esi
jns 0x40c8bf
push str.Failed_to_register_the_bundle_dependency_key.
jmp 0x40c8d6
push ebx
push 1
push dword [ebp - 4]
push edi
call fcn.0040b5ec
mov esi, eax
test esi, esi
jns 0x40c8de
push str.Failed_to_update_resume_mode.
push esi
call fcn.00437258
pop ecx
pop ecx
cmp dword [ebp - 8], ebx
je 0x40c8eb
push dword [ebp - 8]
call fcn.0043af5b
cmp dword [ebp - 4], ebx
je 0x40c8f9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20