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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b0e3
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [0x45e020]
mov edx, dword [eax + 0xc]
mov ecx, 0x45e020
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
xor ebx, ebx
push eax
mov dword [esp + 0x9c], ebx
call fcn.0040da50
mov esi, dword [esp + 0x3c]
mov edi, eax
cmp edi, ebx
je 0x40e78e
push 2
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jge 0x40dd8e
push eax
push str.failed_to_CoInitializeEx__hr__0x_x
push 3
push 3
push 9
push str.ScopedCoInitialize::ScopedCoInitialize
push str.ScopedCoInitialize.cpp
lea ecx, [esp + 0x64]
call fcn.0042d570
push eax
call fcn.0042d790
add esp, 0x14
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x18]
push ecx
push 0x4526d4
push 1
push ebx
push 0x4526c4
mov byte [esp + 0xac], 2
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40e764
and edi, 1
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x40], ebx
cmp esi, ebx
jne 0x40de3c
xor esi, esi
mov dword [esp + 0x38], esi
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x9c], 3
mov edx, dword [edi]
mov ecx, dword [edx + 0x104]
push esi
push edi
call ecx
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
jl 0x40e764
cmp word [esp + 0x40], bx
je 0x40e764
and dword [esp + 0x10], 1
mov dword [esp + 0x14], ebx
mov byte [esp + 0x98], 4
mov esi, dword [esp + 0x18]
push str._InstallerInfo_Affid_text__
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0x38], edi
cmp edi, ebx
jne 0x40de57
push 0x8007000e
call fcn.00403700
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x38], esi
cmp esi, ebx
jne 0x40ddd3
push 0x8007000e
call fcn.00403700
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x9c], 5
mov edx, dword [esi]
mov ecx, dword [edx + 0x94]
push edi
push esi
call ecx
push edi
mov esi, eax
mov byte [esp + 0x9c], 4
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, ebx
jl 0x40def7
lea edx, [esp + 0x54]
mov esi, 1
and dword [esp + 0x10], esi
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x98], 6
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp eax, ebx
jl 0x40dede
mov ecx, dword [esp + 0x5c]
and dword [esp + 0x10], esi
push ecx
mov ecx, 0x4616a0
call fcn.00403420
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x9c], 4
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40defb
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x9c], 4
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40defb
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40df0f
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x18]
push str._InstallerInfo_TidExt_text__
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x38], esi
cmp esi, ebx
jne 0x40df32
push 0x8007000e
call fcn.00403700
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x9c], 7
mov eax, dword [edi]
mov edx, dword [eax + 0x94]
push esi
push edi
call edx
push esi
mov edi, eax
mov byte [esp + 0x9c], 4
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
jne 0x40dfb7
lea eax, [esp + 0x54]
mov esi, 1
and dword [esp + 0x10], esi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x98], 8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp eax, ebx
jl 0x40dfa4
mov ecx, dword [esp + 0x5c]
and dword [esp + 0x10], esi
push ecx
mov ecx, 0x4616a4
call fcn.00403420
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x9c], 4
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40dfcb
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x18]
push str._InstallerInfo_BundleId_text__
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x38], esi
cmp esi, ebx
jne 0x40dfee
push 0x8007000e
call fcn.00403700
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x9c], 9
mov eax, dword [edi]
mov edx, dword [eax + 0x94]
push esi
push edi
call edx
push esi
mov edi, eax
mov byte [esp + 0x9c], 4
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
jne 0x40e073
lea eax, [esp + 0x54]
mov esi, 1
and dword [esp + 0x10], esi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x98], 0xa
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp eax, ebx
jl 0x40e060
mov ecx, dword [esp + 0x5c]
and dword [esp + 0x10], esi
push ecx
mov ecx, 0x4616a8
call fcn.00403420
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x9c], 4
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40e087
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x18]
push str._InstallerInfo_Tid_text__
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x38], esi
cmp esi, ebx
jne 0x40e0aa
push 0x8007000e
call fcn.00403700
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x9c], 0xb
mov eax, dword [edi]
mov edx, dword [eax + 0x94]
push esi
push edi
call edx
push esi
mov edi, eax
mov byte [esp + 0x9c], 4
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
jne 0x40e12f
lea eax, [esp + 0x54]
mov esi, 1
and dword [esp + 0x10], esi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x98], 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp eax, ebx
jl 0x40e11c
mov ecx, dword [esp + 0x5c]
and dword [esp + 0x10], esi
push ecx
mov ecx, 0x4616ac
call fcn.00403420
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x9c], 4
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40e143
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x18]
push str._InstallerInfo_Localization
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x38], esi
cmp esi, ebx
jne 0x40e166
push 0x8007000e
call fcn.00403700
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x9c], 0xd
mov eax, dword [edi]
mov edx, dword [eax + 0x94]
push esi
push edi
call edx
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
jne 0x40e199
cmp dword [esp + 0x14], ebx
je 0x40e199
mov byte [0x4616b0], 1
mov dword [esp + 0x20], ebx
mov byte [esp + 0x98], 0xe
mov edi, dword [esp + 0x18]
push str._InstallerInfo_InstallMode_
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x38], esi
cmp esi, ebx
jne 0x40e1c8
push 0x8007000e
call fcn.00403700
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x9c], 0xf
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
push esi
push edi
call edx
push esi
mov edi, eax
mov byte [esp + 0x9c], 0xe
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
jl 0x40e554
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov dword [esp + 0x34], ebx
cmp dword [esp + 0x38], ebx
jle 0x40e558
lea ecx, [ecx]
lea esi, [esp + 0x78]
call fcn.0040ee00
mov dword [esp + 0x24], ebx
mov byte [esp + 0x98], 0x11
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x98], 0x12
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov edx, dword [esp + 0x2c]
cmp edx, ebx
jne 0x40e274
xor eax, eax
jmp 0x40e28f
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e280
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x80]
call fcn.00403370
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x98], 0x13
mov edi, dword [esp + 0x24]
push str._Version
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x44], esi
cmp esi, ebx
je 0x40de4d
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x9c], 0x14
mov ecx, dword [edi]
mov eax, dword [ecx + 0x94]
push esi
push edi
call eax
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
cmp dword [esp + 0x1c], ebx
je 0x40e3d5
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x98], 0x15
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x64]
push ecx
push eax
call edx
lea eax, [esp + 0x64]
push eax
lea edi, [esp + 0x80]
call fcn.0040ea30
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x98], 0x16
mov esi, dword [esp + 0x24]
push str.._TRTPolicy
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0x44], edi
cmp edi, ebx
je 0x40de4d
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x9c], 0x17
mov edx, dword [esi]
mov ecx, dword [edx + 0x94]
push edi
push esi
call ecx
mov byte [esp + 0x98], 0x16
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
cmp dword [esp + 0x28], ebx
jne 0x40e41d
lea edx, [esp + 0x78]
push edx
mov ecx, 0x4616c0
mov byte [esp + 0x84], bl
call fcn.0040ead0
mov byte [esp + 0x98], 0x13
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40e3bd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x98], 0x12
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40e3d5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
push eax
call esi
mov byte [esp + 0x98], 0x10
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40e3f4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea esi, [esp + 0x78]
mov byte [esp + 0x98], 0xe
call fcn.0040e7d0
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x38]
jl 0x40e220
jmp 0x40e558
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x80], 1
cmp eax, ebx
je 0x40e439
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x28]
push str._Value
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0x44], edi
cmp edi, ebx
je 0x40de4d
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x9c], 0x18
mov eax, dword [esi]
mov edx, dword [eax + 0x94]
push edi
push esi
call edx
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x98], 0x19
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp eax, ebx
jl 0x40e4ba
push 3
push ebx
lea ecx, [esp + 0x5c]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x84], eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x54]
push ecx
call esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x98], 0x1a
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [esp + 0x30]
push ecx
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x8c]
call fcn.00403420
lea ecx, [esp + 0x78]
push ecx
mov ecx, 0x4616c0
call fcn.0040ead0
mov edx, dword [esp + 0x30]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call edi
lea eax, [esp + 0x54]
push eax
call esi
mov byte [esp + 0x98], 0x13
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40e530
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x98], 0x12
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40e548
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
push eax
call edi
jmp 0x40e3dc
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40e56c
mov dword [esp + 0x20], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x18]
push str._InstallerInfo_Offers_
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x44], esi
cmp esi, ebx
jne 0x40e58f
push 0x8007000e
call fcn.00403700
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x9c], 0x1b
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
push esi
push edi
call edx
push esi
mov edi, eax
mov byte [esp + 0x9c], 0xe
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
jl 0x40e728
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
xor edi, edi
cmp dword [esp + 0x30], ebx
jle 0x40e728
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
mov edx, dword [0x45e020]
add eax, 0x10
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
mov edx, dword [0x45e020]
add eax, 0x10
mov dword [esp + 0x7c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
mov byte [esp + 0x80], bl
mov dword [esp + 0x84], ebx
call eax
add eax, 0x10
mov dword [esp + 0x88], eax
mov dword [esp + 0x34], ebx
mov byte [esp + 0x98], 0x1d
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x98], 0x1e
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x30]
call fcn.00402c30
mov byte [esp + 0x98], 0x1f
mov eax, dword [0x4616d8]
mov ecx, dword [eax + 4]
lea esi, [eax + 4]
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
call fcn.0040ebe0
mov edx, 0x3ffffffe
sub edx, dword [0x4616dc]
cmp edx, 1
jb 0x40e75a
inc dword [0x4616dc]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [esp + 0x98], 0x1e
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x98], 0x1c
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40e70c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea esi, [esp + 0x78]
mov byte [esp + 0x98], 0xe
call fcn.0040e7d0
inc edi
cmp edi, dword [esp + 0x30]
jl 0x40e5e2
mov byte [esp + 0x98], 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40e740
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40e768
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40e768
push str.list_T__too_long
call fcn.0042cf77
mov dword [esp + 0x10], ebx
mov byte [esp + 0x98], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40e780
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
lea eax, [esi - 0x10]
mov dword [esp + 0x98], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e7b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret