Function at 0x409f10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afb0b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x51c0b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp + 8]
lea edi, [eax + 4]
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp + 0x18]
mov dword [eax], vtable.CIScriptExtension.0
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], ecx
mov dword [edi], 0
mov dword [ebp - 4], 1
lea ebx, [eax + 8]
mov dword [ebp - 0x78], ebx
mov dword [ebx], 0
mov byte [ebp - 4], 3
lea ecx, [eax + 0x10]
mov byte [eax + 0xc], 0
lea esi, [ecx + 0x28]
mov dword [ebp - 0x78], ecx
mov dword [ecx], 0x4dd804
mov dword [esi], 0x4dcac4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x3c], eax
mov byte [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x28], 7
mov dword [edx + 0x24], 0
mov word [edx + 0x14], ax
mov byte [ebp - 4], 5
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov byte [ebp - 4], 6
mov eax, dword [esi]
mov eax, dword [eax + 4]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x40a008
add eax, 4
jmp 0x40a00a
xor eax, eax
mov ecx, dword [ebp - 0x80]
add ecx, 0x14
cmp ecx, eax
je 0x40a01e
push 0xffffffffffffffff
push 0
push eax
call fcn.004046f0
push str.GetScriptEngine
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40a0fb
cmp byte [0x51caa5], al
jne 0x40a04b
cmp byte [0x522582], al
je 0x40a190
push 0
push ecx
push str.CommonIScriptExtension.cpp
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0x4dd804
mov dword [ebp - 0x4c], 0x4dcac4
call fcn.00406e60
mov byte [ebp - 4], 0xb
push 0
push ecx
push str.Script_extension:_script_entry_point_not_found_in_ISSetup.dll__is_this_a_supported_version_
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x4dd804
mov dword [ebp - 0x1c], 0x4dcac4
call fcn.00406e60
mov byte [ebp - 4], 0xd
cmp byte [0x51caa5], 0
je 0x40a0b8
cmp byte [0x522582], 0
jne 0x40a0aa
call fcn.00486870
test al, al
je 0x40a0b1
mov byte [0x522582], 1
mov byte [0x51caa5], 0
cmp byte [0x522582], 0
je 0x40a0de
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x70]
cmp dword [ebp - 0x2c], 8
push 0xd
cmovae ecx, dword [ebp - 0x40]
call fcn.00486ce0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x44]
call fcn.004049f0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x74]
call fcn.004049f0
jmp 0x40a190
push ebx
push edi
call eax
test eax, eax
jns 0x40a125
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], str.CommonIScriptExtension.cpp
push str.Script_extension:_failed_to_get_script_engine__error_0x_08x
push eax
mov dword [ebp - 0x78], 0x14
call fcn.0040b080
add esp, 0xc
jmp 0x40a190
mov ecx, dword [ebp - 0x8c]
mov esi, dword [edi]
call fcn.00404040
mov edx, dword [esi]
push dword [eax]
push esi
call dword [edx + 0xc]
mov esi, eax
test esi, esi
jns 0x40a172
push ecx
mov ecx, edi
call fcn.0040ae40
push ecx
mov ecx, ebx
call fcn.0040add0
push esi
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], str.CommonIScriptExtension.cpp
push str.Script_extension:_failed_to_open_script__error_0x_08x
push eax
mov dword [ebp - 0x78], 0x21
call fcn.0040b080
add esp, 0xc
jmp 0x40a190
cmp byte [ebp + 0x14], 0
je 0x40a190
mov ecx, dword [ebp - 0x90]
mov edi, dword [edi]
mov esi, dword [ebx]
call fcn.00404040
mov ecx, dword [edi]
push esi
push dword [eax]
push edi
call dword [ecx + 0x14]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004996ca
mov esp, ebp
pop ebp
ret 0x14