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

Disassembly:
push 0xffffffffffffffff
push 0x45661a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x288
push ebx
push ebp
push esi
push edi
push str.CICEApp::LaunchSeriesOfExecutablesInSectionFromGivenDatFile
mov esi, ecx
xor edi, edi
push 2
push 0x476888
mov dword [esp + 0x48], esi
mov dword [esp + 0x20], edi
call fcn.004011d0
mov ebp, dword [esp + 0x2b4]
mov ebx, dword [esp + 0x2b8]
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x40d02e
cmp dword [ebx + 8], edi
je 0x40d02e
mov al, byte [esp + 0x13]
push edi
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.004068f0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov eax, dword [ebx + 4]
mov dword [esp + 0x2a0], edi
cmp eax, edi
mov ecx, 0x45a50c
je 0x40ca9f
mov ecx, eax
mov eax, dword [ebp + 4]
cmp eax, edi
jne 0x40caab
mov eax, 0x45a50c
push 1
lea edx, [esp + 0x1c]
push edi
push edx
push edi
push ecx
push eax
mov ecx, esi
call fcn.0040c5b0
mov edi, dword [esp + 0x2b4]
push 0
lea ecx, [esp + 0x30]
mov al, byte [edi]
mov byte [esp + 0x30], al
call fcn.00402a10
mov ecx, dword [0x45ab0c]
push ecx
push 0
push edi
lea ecx, [esp + 0x38]
call fcn.00406690
mov eax, dword [esp + 0x34]
mov byte [esp + 0x2a0], 1
test eax, eax
jne 0x40cca5
mov dl, byte [0x476654]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 4]
test eax, eax
jne 0x40cb28
mov eax, 0x45a50c
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x40cb34
mov ecx, 0x45a50c
push 0x800
lea edx, [esp + 0x94]
push 0x104
push edx
push str.launchbase
push eax
push ecx
lea ecx, [esi + 0x1fc]
call fcn.00422f05
lea edi, [esp + 0x90]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40cbdf
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x40cb77
mov ecx, 0x45a50c
mov eax, dword [ebp + 4]
test eax, eax
jne 0x40cb83
mov eax, 0x45a50c
push ecx
push eax
push str.Launch_base_not_found.__In_datfile__s__and_sectionname__s_.
push 8
push 0x476888
call fcn.004011d0
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 0
push 1
call fcn.00402a10
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2a0], 0xffffffff
push eax
mov ecx, dword [eax]
lea eax, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0040ec80
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044a2a3
add esp, 4
jmp 0x40d05c
lea edx, [esp + 0x90]
push edx
push str.Launch_base_read_in_from_datfile_is___s_
push 1
push 0x476888
call fcn.004011d0
lea edi, [esp + 0xa0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x90]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00402970
lea ecx, [esp + 0x90]
push ecx
call fcn.0041de9c
add esp, 4
test eax, eax
jne 0x40cca5
mov dl, byte [0x476654]
mov ecx, 0x40
lea edi, [esp + 0x195]
mov byte [esp + 0x194], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x194]
push eax
call fcn.0041d6a4
lea ecx, [esp + 0x30]
lea edx, [esp + 0x198]
push ecx
lea eax, [esp + 0x58]
push edx
push eax
call fcn.0040fdf0
add esp, 0x10
mov ecx, dword [0x45ab0c]
mov byte [esp + 0x2a0], 2
push ecx
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00406690
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x2a4], 1
call fcn.00402a10
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40ccb2
mov eax, 0x45a50c
push eax
push str.Using_launchbase____s_
push 1
push 0x476888
call fcn.004011d0
mov dl, byte [esp + 0x23]
add esp, 0x10
xor edi, edi
lea ecx, [esp + 0x40]
push edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x44], dl
call fcn.00402a10
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x2a0], 3
mov esi, dword [eax]
cmp esi, eax
mov dword [esp + 0x24], esi
je 0x40cf4d
jmp 0x40ccff
mov esi, dword [esp + 0x24]
xor ebp, ebp
cmp edi, ebp
je 0x40cd11
cmp edi, 0xbc2
jne 0x40cf4f
mov ecx, dword [esp + 0x3c]
push ebp
push ebp
call fcn.0040c740
mov eax, dword [esi + 0xc]
lea ebx, [esi + 8]
cmp eax, ebp
jne 0x40cd2b
mov eax, 0x45a50c
push eax
call fcn.0041de9c
add esp, 4
test eax, eax
je 0x40cdac
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x54]
mov byte [esp + 0x54], al
call fcn.00402a10
mov edi, 0x476654
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x54]
push ebp
call fcn.00404ce0
test al, al
je 0x40cd92
mov edi, dword [esp + 0x54]
mov ecx, ebp
mov edx, ecx
mov esi, 0x476654
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
call fcn.00404cc0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
or al, 1
mov dword [esp + 0x14], eax
lea eax, [esp + 0x50]
mov byte [esp + 0x2a0], 4
xor ebp, ebp
jmp 0x40cdb0
lea eax, [esp + 0x2c]
push ebx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0040ff40
push 0x46c780
lea ecx, [esp + 0x90]
push eax
push ecx
mov dword [esp + 0x2b8], 5
call fcn.00410070
mov edx, dword [esp + 0x2c8]
mov byte [esp + 0x2b8], 6
push edx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0040ff40
add esp, 0x24
mov ecx, dword [0x45ab0c]
mov byte [esp + 0x2a0], 7
push ecx
push ebp
push eax
lea ecx, [esp + 0x4c]
call fcn.00406690
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x2a4], 6
call fcn.00402a10
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x2a4], 5
call fcn.00402a10
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x2a4], 4
call fcn.00402a10
mov al, byte [esp + 0x14]
mov dword [esp + 0x2a0], 3
test al, 1
je 0x40ce7a
mov ecx, dword [esp + 0x14]
push 1
and ecx, 0xfffffffe
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x54]
call fcn.00402a10
mov eax, dword [esp + 0x44]
cmp eax, ebp
jne 0x40ce87
mov eax, 0x45a50c
push eax
push str.Launching__s
push 1
push 0x476888
call fcn.004011d0
mov eax, dword [esp + 0x54]
add esp, 0x10
cmp eax, ebp
jne 0x40cea9
mov eax, 0x45a50c
mov edx, dword [esp + 0x2c0]
mov ecx, dword [esp + 0x2b8]
push edx
push ebp
push ebp
push 0xffffffffffffffff
push ecx
push eax
call fcn.0041d8c7
add esp, 0x18
mov edi, eax
push edi
push str.Return_value_from_executable_is___d_
push 1
push 0x476888
call fcn.004011d0
add esp, 0x10
cmp edi, 0xbc2
jne 0x40cf0f
mov eax, dword [esp + 0x44]
cmp eax, ebp
jne 0x40cef2
mov eax, 0x45a50c
push eax
push str.Plug_in__s_requires_reboot
push 1
push 0x476888
call fcn.004011d0
add esp, 0x10
mov dword [esp + 0x28], 1
cmp dword [esp + 0x2bc], ebp
jne 0x40cf2f
push edi
push str.Ignoring_return_value___d_
push 1
push 0x476888
call fcn.004011d0
add esp, 0x10
xor edi, edi
mov ecx, dword [esp + 0x3c]
push ebp
push 0x64
call fcn.0040c740
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x24], eax
jne 0x40ccfb
xor ebp, ebp
push str.CICEApp::LaunchSeriesOfExecutablesInSectionFromGivenDatFile
push 4
push 0x476888
call fcn.004011d0
add esp, 0xc
cmp edi, ebp
jne 0x40cf72
cmp dword [esp + 0x28], ebp
je 0x40cf72
mov edi, 0xbc2
mov eax, dword [esp + 0x44]
cmp eax, ebp
je 0x40cf97
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40cf8e
cmp al, 0xff
je 0x40cf8e
dec al
mov byte [ecx], al
jmp 0x40cf97
push ecx
call fcn.0044a2a3
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], ebp
cmp eax, ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
je 0x40cfc8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40cfbf
cmp al, 0xff
je 0x40cfbf
dec al
mov byte [ecx], al
jmp 0x40cfc8
push ecx
call fcn.0044a2a3
add esp, 4
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov ebp, dword [ebx]
mov dword [esp + 0x2a0], 0xffffffff
cmp ebp, ebx
je 0x40d01d
mov esi, ebp
mov ebp, dword [ebp]
push 0
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
lea ecx, [esi + 8]
call fcn.004101c0
push esi
call fcn.0044a2a3
mov ecx, dword [esp + 0x24]
add esp, 4
dec ecx
cmp ebp, ebx
mov dword [esp + 0x20], ecx
jne 0x40cfe9
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044a2a3
add esp, 4
mov eax, edi
jmp 0x40d061
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x40d03a
mov eax, 0x45a50c
mov ecx, dword [ebp + 4]
cmp ecx, edi
jne 0x40d046
mov ecx, 0x45a50c
push eax
push ecx
push str.Not_launching_executables_because_datfile__s__and_sectionname__s__cannot_be_empty.
push 8
push 0x476888
call fcn.004011d0
add esp, 0x14
mov eax, 0x57
mov ecx, dword [esp + 0x298]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x294
ret 0x1c