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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44aef3
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x45d274]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [0x45d020]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d020
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.0040dab0
mov esi, dword [esp + 0x3c]
mov edi, eax
cmp edi, ebx
je 0x40e7ee
push 2
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jge 0x40ddee
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.0042d360
push eax
call fcn.0042d580
add esp, 0x14
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x18]
push ecx
push 0x4526e4
push 1
push ebx
push 0x4526d4
mov byte [esp + 0xac], 2
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40e7c4
and edi, 1
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x40], ebx
cmp esi, ebx
jne 0x40de9c
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 0x40e7c4
cmp word [esp + 0x40], bx
je 0x40e7c4
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 0x40deb7
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 0x40de33
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 0x40df57
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 0x40df3e
mov ecx, dword [esp + 0x5c]
and dword [esp + 0x10], esi
push ecx
mov ecx, 0x460620
call fcn.00403420
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x9c], 4
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40df5b
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x9c], 4
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40df5b
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40df6f
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 0x40df92
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 0x40e017
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 0x40e004
mov ecx, dword [esp + 0x5c]
and dword [esp + 0x10], esi
push ecx
mov ecx, 0x460624
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 0x40e02b
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 0x40e04e
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 0x40e0d3
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 0x40e0c0
mov ecx, dword [esp + 0x5c]
and dword [esp + 0x10], esi
push ecx
mov ecx, 0x460628
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 0x40e0e7
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 0x40e10a
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 0x40e18f
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 0x40e17c
mov ecx, dword [esp + 0x5c]
and dword [esp + 0x10], esi
push ecx
mov ecx, 0x46062c
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 0x40e1a3
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 0x40e1c6
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 0x40e1f9
cmp dword [esp + 0x14], ebx
je 0x40e1f9
mov byte [0x460630], 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 0x40e228
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 0x40e5b4
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 0x40e5b8
lea ecx, [ecx]
lea esi, [esp + 0x78]
call fcn.0040ee60
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 0x40e2d4
xor eax, eax
jmp 0x40e2ef
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e2e0
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 0x40dead
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 0x40e435
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.0040ea90
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 0x40dead
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 0x40e47d
lea edx, [esp + 0x78]
push edx
mov ecx, 0x460640
mov byte [esp + 0x84], bl
call fcn.0040eb30
mov byte [esp + 0x98], 0x13
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40e41d
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 0x40e435
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 0x40e454
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea esi, [esp + 0x78]
mov byte [esp + 0x98], 0xe
call fcn.0040e830
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x38]
jl 0x40e280
jmp 0x40e5b8
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x80], 1
cmp eax, ebx
je 0x40e499
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 0x40dead
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 0x40e51a
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, 0x460640
call fcn.0040eb30
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 0x40e590
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 0x40e5a8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
push eax
call edi
jmp 0x40e43c
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40e5cc
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 0x40e5ef
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 0x40e788
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 0x40e788
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
mov edx, dword [0x45d020]
add eax, 0x10
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
mov edx, dword [0x45d020]
add eax, 0x10
mov dword [esp + 0x7c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
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 [0x460658]
mov ecx, dword [eax + 4]
lea esi, [eax + 4]
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
call fcn.0040ec40
mov edx, 0x3ffffffe
sub edx, dword [0x46065c]
cmp edx, 1
jb 0x40e7ba
inc dword [0x46065c]
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 0x40e749
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 0x40e76c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea esi, [esp + 0x78]
mov byte [esp + 0x98], 0xe
call fcn.0040e830
inc edi
cmp edi, dword [esp + 0x30]
jl 0x40e642
mov byte [esp + 0x98], 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40e7a0
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 0x40e7c8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40e7c8
push str.list_T__too_long
call fcn.0042cd67
mov dword [esp + 0x10], ebx
mov byte [esp + 0x98], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40e7e0
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 0x40e815
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