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

Disassembly:
mov eax, 0x4234
call fcn.00446f40
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
lea esi, [esp + 0x29c]
mov edi, 0x2a
mov ecx, esi
call fcn.0040dc40
add esi, 0x184
dec edi
jne 0x40e48c
mov eax, 0x4683b4
mov edx, str.:CDSetupDir
mov ecx, str.Cant_find_CD_Setup.
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], str.autorun
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], str.Run_setup_in_autorun_mode
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], str.force
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], str.Ignores_disk_space_requirements
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], str.patch
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], str.Use_this_setup_to_overide_cd_version
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 0x11
mov dword [esp + 0x64], str.setupdir
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], str.Specify_setup_source_directory
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], 0x10
mov dword [esp + 0x78], str.installdir
mov dword [esp + 0x7c], str.:InstallDir
mov dword [esp + 0x80], str.Folder_to_install_game_to
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 3
mov dword [esp + 0x8c], str.runtemp
mov dword [esp + 0x90], str._:SetupSrcPath_
mov dword [esp + 0x94], str.Dont_bootstrap_setup__param_shows_the_original_setup_location.
mov dword [esp + 0x98], str.error.
mov dword [esp + 0x9c], 4
mov dword [esp + 0xa0], str.uninstall
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], str.Run_setup_in_uninstall_mode
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], 5
mov dword [esp + 0xb4], str.addremove
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], str.Run_setup_in_add_remove_mode
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 6
mov dword [esp + 0xc8], str.dbcs
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], str.Turn_on_DBCS_option
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], 7
mov dword [esp + 0xdc], str.ansi
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], str.Turn_on_ANSI_option
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], 8
mov dword [esp + 0xf0], 0x45e398
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], str.Use_OEM_options
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], 9
mov dword [esp + 0x104], 0x45e384
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], str.Use_retail_options
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], 0xa
mov dword [esp + 0x118], str.lang
mov dword [esp + 0x11c], str.:LangID
mov dword [esp + 0x120], str.Use_LandID_script_options
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], 0xb
mov dword [esp + 0x12c], str.dllpath
mov dword [esp + 0x130], str.:DLLPath
mov dword [esp + 0x134], str.Full_path_to_setup_dll
mov dword [esp + 0x138], str.Cant_find_setup_dll
mov dword [esp + 0x13c], 0xd
mov dword [esp + 0x140], str.dxforce
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], str.Force_DX_install_if_applicable_to_OS
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], 0xe
mov dword [esp + 0x154], str.dplayforce
mov dword [esp + 0x158], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x16c], eax
mov dword [esp + 0x174], eax
mov dword [esp + 0x180], eax
mov dword [esp + 0x188], eax
mov dword [esp + 0x194], eax
mov dword [esp + 0x19c], eax
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1bc], eax
mov dword [esp + 0x1c4], eax
mov dword [esp + 0x1d0], eax
mov dword [esp + 0x1d8], eax
mov dword [esp + 0x1e4], eax
mov dword [esp + 0x1ec], eax
mov dword [esp + 0x1f8], eax
mov dword [esp + 0x200], eax
mov dword [esp + 0x214], eax
mov dword [esp + 0x23c], eax
mov dword [esp + 0x248], eax
mov dword [esp + 0x250], eax
mov dword [esp + 0x25c], eax
mov dword [esp + 0x264], eax
xor eax, eax
mov dword [esp + 0x268], eax
mov dword [esp + 0x15c], str.Force_DPlay_install_if_applicable_to_OS
mov dword [esp + 0x26c], eax
mov dword [esp + 0x164], 0xf
mov dword [esp + 0x270], eax
mov dword [esp + 0x168], str.nodx
mov dword [esp + 0x274], eax
mov dword [esp + 0x170], str.Ignore_DX_install_requirement
mov dword [esp + 0x278], eax
mov eax, dword [esp + 0x4248]
mov dword [esp + 0x178], 0x16
mov dword [esp + 0x17c], str.reboot
mov dword [esp + 0x184], str.Force_reboot_after_setup_completion
mov dword [esp + 0x18c], 0x1c
mov dword [esp + 0x190], str.resetreboot
mov dword [esp + 0x198], str.Just_running_to_reset_need_to_reboot
mov dword [esp + 0x1a0], 0x17
mov dword [esp + 0x1a4], str.userpath
mov dword [esp + 0x1ac], str.XXXX______
mov dword [esp + 0x1b4], 0x18
mov dword [esp + 0x1b8], str.nosound
mov dword [esp + 0x1c0], str.Turn_off_all_sound_effects_in_setup
mov dword [esp + 0x1c8], 0x19
mov dword [esp + 0x1cc], str.mcisound
mov dword [esp + 0x1d4], str.Use_the_alternate_setup_sound_method
mov dword [esp + 0x1dc], 0x1a
mov dword [esp + 0x1e0], str.noreboot
mov dword [esp + 0x1e8], str.Ignore_reboot_after_setup_completion
mov dword [esp + 0x1f0], 0x1b
mov dword [esp + 0x1f4], 0x45e164
mov dword [esp + 0x1fc], str.This_help_text
mov dword [esp + 0x204], 0x12
mov dword [esp + 0x208], str.InstallType
mov dword [esp + 0x20c], str.:
mov dword [esp + 0x210], str.Group_id
mov dword [esp + 0x218], 0x13
mov dword [esp + 0x21c], 0x45e130
mov dword [esp + 0x220], str._:FileName___
mov dword [esp + 0x224], str.Setup_log_file_name__appends_to_log
mov dword [esp + 0x228], str.Cant_create_file
mov dword [esp + 0x22c], 0x14
mov dword [esp + 0x230], str.loglevel
mov dword [esp + 0x234], 0x45e0d4
mov dword [esp + 0x238], str.0:_Errors_only___1:_Normal___2:_Full
mov dword [esp + 0x240], 0x1d
mov dword [esp + 0x244], str.child
mov dword [esp + 0x24c], str.This_is_the_spawned_child_process
mov dword [esp + 0x254], 0x15
mov dword [esp + 0x258], str.quiet
mov dword [esp + 0x260], str.Quiet_mode_no_UI
mov dword [0x46a660], ebx
mov dword [0x46a6a8], ebx
mov dword [0x46a6ac], ebx
mov dword [0x46bb48], ebx
mov dword [0x46bb4c], ebx
mov edi, eax
lea esi, [esp + 0x29c]
mov cl, byte [eax]
xor ebp, ebp
test cl, cl
je 0x40eb06
lea ecx, [esp + 0x29c]
mov dword [esp + 0x18], ecx
mov ecx, ebp
sub ecx, ebx
je 0x40ea91
dec ecx
je 0x40eaa2
dec ecx
jne 0x40eaee
mov dl, byte [edi]
movsx ecx, dl
sub ecx, 9
je 0x40ea80
sub ecx, 0x17
je 0x40ea80
sub ecx, 2
je 0x40ea6f
mov byte [esi], dl
jmp 0x40eaee
mov eax, dword [esp + 0x20]
xor edx, edx
cmp eax, ebx
sete dl
mov dword [esp + 0x20], edx
jmp 0x40eaee
cmp dword [esp + 0x20], ebx
je case.0x40eab7.9
mov byte [esi], dl
jmp 0x40eaee
mov byte [esi], 0
xor ebp, ebp
jmp 0x40eaee
mov cl, byte [edi]
cmp cl, 0x20
je 0x40eaee
cmp cl, 9
je 0x40eaee
mov ebp, 1
mov cl, byte [edi]
movsx edx, cl
add edx, 0xfffffff7
cmp edx, 0x31
ja case.0x40eab7.12
xor eax, eax
mov al, byte [edx + 0x40edc8]
jmp dword [eax*4 + 0x40edb8]
mov ecx, dword [esp + 0x18]
mov byte [esi], 0
mov ebp, 2
lea esi, [ecx - 0x104]
jmp 0x40eaee
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov esi, eax
inc edx
add eax, 0x184
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
jmp 0x40eaee
mov byte [esi], cl
cmp byte [esi], 0
je 0x40eaf4
inc esi
push edi
call dword [0x458468]
mov edi, eax
cmp byte [edi], 0
jne 0x40ea47
cmp esi, ebx
je 0x40eb0d
mov byte [esi], 0
mov eax, dword [esp + 0x1c]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x1c], eax
jle 0x40ed9a
lea ecx, [eax + eax*2]
mov edx, eax
shl ecx, 5
add ecx, eax
inc edx
mov dword [esp + 0x18], edx
lea ebx, [esp + ecx*4 + 0x31c]
xor esi, esi
lea ebp, [ebx - 0x80]
lea edi, [esp + 0x28]
mov eax, dword [edi]
push eax
push ebp
call dword [0x4582f8]
test eax, eax
je 0x40eb5b
inc esi
add edi, 0x14
cmp esi, 0x1e
jl 0x40eb3f
jmp case.0x40eb74.12
cmp esi, 0x1e
jge case.0x40eb74.12
lea ecx, [esi + esi*4]
mov eax, dword [esp + ecx*4 + 0x24]
cmp eax, 0x1d
ja case.0x40eb74.12
jmp dword [eax*4 + 0x40edfc]
mov dword [0x46a660], 1
jmp case.0x40eb74.12
mov dword [0x46a658], 1
jmp case.0x40eb74.12
push ebx
push 0x46a884
call dword [0x4582e4]
jmp case.0x40eb74.12
mov eax, dword [0x46a6d0]
lea edx, [esp + 0x27c]
push 0x20
push edx
push 0xfe
push eax
call fcn.0040b8a0
mov al, byte [esp + 0x28c]
add esp, 0x10
test al, al
lea eax, [esp + 0x27c]
jne 0x40ebde
mov eax, str.EBUSetupMutex
push eax
push 0
push 0x1f0003
call dword [0x4580c8]
push eax
mov dword [0x46bb4c], eax
call dword [0x4582e8]
jmp case.0x40eb74.12
cmp byte [ebx], 0
je 0x40ec7d
mov ecx, dword [esp + 0x424c]
cmp dword [ecx], 0
jne 0x40ec7d
push ebx
push 0x46ab94
call dword [0x4582e4]
push ebx
call fcn.0040a630
mov esi, eax
add esp, 4
test esi, esi
je case.0x40eb74.12
push esi
call dword [0x458468]
cmp byte [eax], 0
jne case.0x40eb74.12
push esi
push ebx
call dword [0x458420]
cmp byte [eax], 0x3a
je case.0x40eb74.12
mov byte [esi], 0
jmp case.0x40eb74.12
mov ecx, dword [esp + 0x424c]
mov eax, 1
mov dword [0x46a6a4], eax
mov dword [0x46a6a8], eax
mov dword [ecx], eax
jmp case.0x40eb74.12
mov dword [0x46a6ac], 1
mov edx, dword [esp + 0x424c]
mov dword [edx], 1
jmp case.0x40eb74.12
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
or ch, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp case.0x40eb74.12
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
or ch, 0x20
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp case.0x40eb74.12
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
or ch, 0x40
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp case.0x40eb74.12
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
or ch, 0x80
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp case.0x40eb74.12
push ebx
push 0x46b53c
call dword [0x4582e4]
jmp case.0x40eb74.12
push ebx
push 0x46a988
call dword [0x4582e4]
jmp case.0x40eb74.12
mov dword [0x46a6f0], 1
jmp case.0x40eb74.12
mov dword [0x46a6f4], 1
jmp case.0x40eb74.12
mov dword [0x46a6f8], 1
jmp case.0x40eb74.12
mov dword [0x46bb48], 1
jmp case.0x40eb74.12
mov eax, dword [0x46a6c4]
test eax, eax
je 0x40ed53
mov dword [0x46a6c8], 1
jmp case.0x40eb74.12
mov dword [0x46a6c0], 1
jmp case.0x40eb74.12
push ebx
push 0x46b5bc
call dword [0x4582e4]
jmp case.0x40eb74.12
mov dword [0x46b9d8], 1
jmp case.0x40eb74.12
mov dword [0x46b9d4], 1
mov eax, dword [esp + 0x18]
sub ebx, 0x184
dec eax
test eax, eax
mov dword [esp + 0x18], eax
ja 0x40eb36
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [0x46a668], eax
mov dword [0x46a66c], ecx
pop ebx
add esp, 0x4234
ret