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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b233
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.0040d9e0
mov esi, dword [esp + 0x3c]
mov edi, eax
cmp edi, ebx
je 0x40e72e
push 2
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jge 0x40dd2e
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.0042d6f0
push eax
call fcn.0042d910
add esp, 0x14
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x18]
push ecx
push 0x4526dc
push 1
push ebx
push 0x4526cc
mov byte [esp + 0xac], 2
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40e704
and edi, 1
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x40], ebx
cmp esi, ebx
jne 0x40dddc
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 0x40e704
cmp word [esp + 0x40], bx
je 0x40e704
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 0x40ddf7
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 0x40dd73
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 0x40de97
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 0x40de7e
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 0x40de9b
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x9c], 4
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40de9b
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40deaf
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 0x40ded2
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 0x40df57
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 0x40df44
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 0x40df6b
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 0x40df8e
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 0x40e013
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 0x40e000
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 0x40e027
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 0x40e04a
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 0x40e0cf
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 0x40e0bc
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 0x40e0e3
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 0x40e106
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 0x40e139
cmp dword [esp + 0x14], ebx
je 0x40e139
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 0x40e168
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 0x40e4f4
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 0x40e4f8
lea ecx, [ecx]
lea esi, [esp + 0x78]
call fcn.0040eda0
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 0x40e214
xor eax, eax
jmp 0x40e22f
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e220
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 0x40dded
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 0x40e375
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.0040e9d0
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 0x40dded
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 0x40e3bd
lea edx, [esp + 0x78]
push edx
mov ecx, 0x4616c0
mov byte [esp + 0x84], bl
call fcn.0040ea70
mov byte [esp + 0x98], 0x13
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40e35d
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 0x40e375
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 0x40e394
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea esi, [esp + 0x78]
mov byte [esp + 0x98], 0xe
call fcn.0040e770
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x38]
jl 0x40e1c0
jmp 0x40e4f8
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x80], 1
cmp eax, ebx
je 0x40e3d9
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 0x40dded
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 0x40e45a
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.0040ea70
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 0x40e4d0
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 0x40e4e8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
push eax
call edi
jmp 0x40e37c
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40e50c
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 0x40e52f
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 0x40e6c8
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 0x40e6c8
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.0040eb80
mov edx, 0x3ffffffe
sub edx, dword [0x4616dc]
cmp edx, 1
jb 0x40e6fa
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 0x40e689
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 0x40e6ac
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea esi, [esp + 0x78]
mov byte [esp + 0x98], 0xe
call fcn.0040e770
inc edi
cmp edi, dword [esp + 0x30]
jl 0x40e582
mov byte [esp + 0x98], 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40e6e0
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 0x40e708
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40e708
push str.list_T__too_long
call fcn.0042d0f7
mov dword [esp + 0x10], ebx
mov byte [esp + 0x98], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40e720
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 0x40e755
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