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

Disassembly:
push 0xffffffffffffffff
push 0x42921c
mov eax, dword fs:[0]
push eax
mov eax, 0x1168
mov dword fs:[0], esp
call fcn.00427020
mov eax, dword [0x43aae0]
xor eax, esp
push ebx
push ebp
push esi
mov dword [esp + 0x1170], eax
push edi
xor esi, esi
mov dword [esp + 0x1180], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x1180], 1
call sub.SLibs500.dll_protected:_void___thiscall__SCC_Array::constructor_void_
mov dword [esp + 0x14], vtable.SCC_Array_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____.0
mov dword [esp + 0x20], esi
lea eax, [esp + 0x1188]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1184], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
push esi
push 0x42daf0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1188], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
cmp eax, 0xffffffff
je 0x40c1af
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1184], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x28]
mov byte [esp + 0x1180], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push esi
push str.its:
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
cmp eax, 0xffffffff
je 0x40c1fc
add eax, 4
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1184], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x28]
mov byte [esp + 0x1180], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp dword [esp + 0x18], esi
je 0x40c340
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x24]
call sub.SLibs500.dll_protected:_void___thiscall__SCC_Array::FindItemPosition_void_const___long_int___long_int___class_SCC_ComparatorBase__
mov esi, dword [esp + 0x28]
push 1
push esi
lea ecx, [esp + 0x1c]
call sub.SLibs500.dll_public:_void___thiscall__SCC_Array::Insert_long_int__long_int_
lea ebp, [esi + 1]
cmp esi, ebp
mov edi, esi
jge 0x40c47f
xor ebx, ebx
mov edi, edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax]
test eax, eax
je 0x40c267
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [edx]
cmp dword [eax + 4], 1
jle 0x40c267
lea ecx, [esp + 0x14]
call sub.SLibs500.dll_protected:_void___thiscall__SCC_Array::SeparateBuffers_void_
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
lea ecx, [ecx + edi*4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40c332
lea edx, [esp + 0x38]
mov ecx, edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], vtable.SCC_EventIterator_int_.0
mov edx, dword [eax + 8]
mov esi, eax
mov dword [esp + 0x48], edx
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x40], eax
cmp dword [esi + 4], ebx
mov byte [esp + 0x1180], 6
je 0x40c305
jmp 0x40c2d0
cmp eax, ebx
je 0x40c305
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
test eax, eax
jne 0x40c305
mov ecx, dword [esp + 0x40]
cmp dword [ecx + 4], ebx
je 0x40c2f7
mov eax, dword [ecx]
lea edx, [edi + 1]
push edx
push 3
call dword [eax + 0x20]
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [esi + 4], ebx
mov dword [esp + 0x40], eax
jne 0x40c2d0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [edx + 8], ecx
lea eax, [esp + 0x38]
mov ecx, eax
mov byte [esp + 0x1180], 3
mov dword [esp + 0x38], vtable.SCC_EventNode_int_.0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
inc edi
cmp edi, ebp
jl 0x40c240
jmp 0x40c47f
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [edx]
test eax, eax
je 0x40c35b
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax]
mov esi, dword [eax + 0xc]
push 1
push esi
lea ecx, [esp + 0x1c]
call sub.SLibs500.dll_public:_void___thiscall__SCC_Array::Insert_long_int__long_int_
lea eax, [esi + 1]
cmp esi, eax
mov edi, esi
mov dword [esp + 0x28], eax
jge 0x40c47f
mov bl, 7
xor ebp, ebp
lea esp, [esp]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [edx]
test eax, eax
je 0x40c3a7
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax]
cmp dword [eax + 4], 1
jle 0x40c3a7
lea ecx, [esp + 0x14]
call sub.SLibs500.dll_protected:_void___thiscall__SCC_Array::SeparateBuffers_void_
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [edx + edi*4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40c472
lea ecx, [esp + 0x38]
mov edx, ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], vtable.SCC_EventIterator_int_.0
mov ecx, dword [eax + 8]
mov esi, eax
mov dword [esp + 0x48], ecx
mov dword [eax + 8], edx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x40], eax
cmp dword [esi + 4], ebp
mov byte [esp + 0x1180], bl
je 0x40c445
lea ebx, [ebx]
cmp eax, ebp
je 0x40c445
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
test eax, eax
jne 0x40c445
mov ecx, dword [esp + 0x40]
cmp dword [ecx + 4], ebp
je 0x40c437
mov eax, dword [ecx]
lea edx, [edi + 1]
push edx
push 3
call dword [eax + 0x20]
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [esi + 4], ebp
mov dword [esp + 0x40], eax
jne 0x40c410
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [edx + 8], ecx
lea eax, [esp + 0x38]
mov ecx, eax
mov byte [esp + 0x1180], 3
mov dword [esp + 0x38], vtable.SCC_EventNode_int_.0
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x28]
inc edi
cmp edi, eax
jl 0x40c380
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x30]
call fcn.0040aaa0
test eax, eax
jge 0x40c50c
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [esp + 0x14], vtable.SCC_Array_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____.0
lea ecx, [esp + 0x14]
mov byte [esp + 0x1180], 8
call sub.SLibs500.dll_public:_void___thiscall__SCC_Array::Clear_void_
lea ecx, [esp + 0x14]
mov byte [esp + 0x1180], 1
call sub.SLibs500.dll_protected:_void___thiscall__SCC_Array::destructor_void_
mov eax, dword [esp + 0x30]
test eax, eax
mov byte [esp + 0x1180], 0
je 0x40c4db
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40c4e9
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40c4f8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x1188]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40cffd
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
xor ebx, ebx
cmp eax, ebx
jne 0x40c52a
push 0x208
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x34], eax
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x208
push eax
push 0xffffffffffffffff
push str.IDXHDR
push ebx
push ebx
call ebp
mov edx, dword [esp + 0x34]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push ebx
push 2
push ebx
push edx
push esi
call dword [eax + 0x10]
test eax, eax
jl 0x40c989
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push 0x50
lea edx, [esp + 0xe4]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x40c97f
lea eax, [esp + 0x2c]
mov dword [esp + 0x94], eax
xor eax, eax
mov dword [esp + 0x90], eax
cmp dword [esp + 0x124], ebx
mov byte [esp + 0x1180], 9
mov dword [esp + 0x58], ebx
jbe 0x40c96d
jmp 0x40c5b0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push 4
lea edx, [esp + 0x30]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x40c94e
mov ecx, dword [esp + 0x28]
push 0x1000
lea eax, [esp + 0x178]
push eax
push ecx
lea ecx, [esp + 0x9c]
call fcn.0040ab10
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0xb4]
call sub.SLibs500.dll_public:_void___thiscall_SFM_FilePath::constructor_char_const__
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1188], 0xa
call sub.SLibs500.dll_public:_class_SYS_String___thiscall_SFM_FilePath::SetFileNameExt_char_const__
lea ecx, [esp + 0x64]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0xb4]
call fcn.00409e10
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1184], 0xb
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
cmp dword [esp + 0x18], ebx
mov byte [esp + 0x1180], 0xc
je 0x40c790
push ebx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x24]
call sub.SLibs500.dll_protected:_void___thiscall__SCC_Array::FindItemPosition_void_const___long_int___long_int___class_SCC_ComparatorBase__
mov esi, dword [esp + 0x68]
push 1
push esi
lea ecx, [esp + 0x1c]
call sub.SLibs500.dll_public:_void___thiscall__SCC_Array::Insert_long_int__long_int_
lea ebp, [esi + 1]
cmp esi, ebp
mov edi, esi
jge 0x40c8de
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax]
test eax, eax
je 0x40c6bb
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [edx]
cmp dword [eax + 4], 1
jle 0x40c6bb
lea ecx, [esp + 0x14]
call sub.SLibs500.dll_protected:_void___thiscall__SCC_Array::SeparateBuffers_void_
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x5c]
push eax
lea ecx, [ecx + edi*4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40c782
lea edx, [esp + 0x38]
mov ecx, edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], vtable.SCC_EventIterator_int_.0
mov edx, dword [eax + 8]
mov esi, eax
mov dword [esp + 0x48], edx
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x40], eax
cmp dword [esi + 4], ebx
mov byte [esp + 0x1180], 0xd
je 0x40c755
nop
cmp eax, ebx
je 0x40c755
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
test eax, eax
jne 0x40c755
mov ecx, dword [esp + 0x40]
cmp dword [ecx + 4], ebx
je 0x40c747
mov eax, dword [ecx]
lea edx, [edi + 1]
push edx
push 3
call dword [eax + 0x20]
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [esi + 4], ebx
mov dword [esp + 0x40], eax
jne 0x40c720
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [edx + 8], ecx
lea eax, [esp + 0x38]
mov ecx, eax
mov byte [esp + 0x1180], 0xc
mov dword [esp + 0x38], vtable.SCC_EventNode_int_.0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
inc edi
cmp edi, ebp
jl 0x40c694
jmp 0x40c8de
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [edx]
test eax, eax
je 0x40c7ad
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax]
mov esi, dword [eax + 0xc]
jmp 0x40c7af
xor esi, esi
push 1
push esi
lea ecx, [esp + 0x1c]
call sub.SLibs500.dll_public:_void___thiscall__SCC_Array::Insert_long_int__long_int_
lea ebp, [esi + 1]
cmp esi, ebp
mov edi, esi
jge 0x40c8de
jmp 0x40c7d0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [edx]
test eax, eax
je 0x40c7f7
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax]
cmp dword [eax + 4], 1
jle 0x40c7f7
lea ecx, [esp + 0x14]
call sub.SLibs500.dll_protected:_void___thiscall__SCC_Array::SeparateBuffers_void_
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [edx + edi*4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40c8d5
lea ecx, [esp + 0x74]
mov edx, ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x78], 1
mov dword [esp + 0x80], edx
mov dword [esp + 0x74], vtable.SCC_EventIterator_int_.0
mov ecx, dword [eax + 8]
mov esi, eax
mov dword [esp + 0x84], ecx
mov dword [eax + 8], edx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x7c], eax
cmp dword [esi + 4], ebx
mov byte [esp + 0x1180], 0xe
je 0x40c89c
cmp eax, ebx
je 0x40c89c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
test eax, eax
jne 0x40c89c
mov ecx, dword [esp + 0x7c]
cmp dword [ecx + 4], ebx
je 0x40c88e
mov eax, dword [ecx]
lea edx, [edi + 1]
push edx
push 3
call dword [eax + 0x20]
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [esi + 4], ebx
mov dword [esp + 0x7c], eax
jne 0x40c867
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov dword [edx + 8], ecx
lea eax, [esp + 0x74]
mov ecx, eax
mov byte [esp + 0x1180], 0xc
mov dword [esp + 0x74], vtable.SCC_EventNode_int_.0
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ecx
inc edi
cmp edi, ebp
jl 0x40c7d0
lea ecx, [esp + 0x5c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x60]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc8]
mov byte [esp + 0x1180], 9
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xbc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xb8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xb4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x124]
inc eax
cmp eax, ecx
mov dword [esp + 0x58], eax
jb 0x40c5b0
mov eax, dword [esp + 0x90]
cmp eax, ebx
mov byte [esp + 0x1180], 3
je 0x40c97f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor edi, edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], edi
call dword [edx]
test eax, eax
je 0x40c9ac
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax]
mov eax, dword [eax + 0xc]
jmp 0x40c9ae
xor eax, eax
cmp edi, eax
jge 0x40cf84
push edi
lea ecx, [esp + 0x18]
call sub.SLibs500.dll_protected:_void___thiscall__SCC_Array::CheckArray_long_int_
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [edx]
test eax, eax
je 0x40c9e7
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax]
cmp dword [eax + 4], 1
jle 0x40c9e7
lea ecx, [esp + 0x14]
call sub.SLibs500.dll_protected:_void___thiscall__SCC_Array::SeparateBuffers_void_
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx + edi*4]
lea edx, [esp + 0x2c]
push edx
push 0x42d9e0
push 1
push ebx
push 0x42d9d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40cf7e
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x40ca26
push 0x208
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x34], eax
push 0x208
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebx
call ebp
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push ebx
push ebx
push 0x20
push ebx
push edx
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jl 0x40cf7e
lea eax, [esp + 0x2c]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd4], ebx
cmp edi, ebx
mov byte [esp + 0x1180], 0xf
jne 0x40cd13
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov esi, dword [esp + 0x30]
jne 0x40ca92
push 0x208
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x34], eax
push 0x208
push eax
push 0xffffffffffffffff
push str.SYSTEM
push ebx
push ebx
call ebp
mov eax, dword [esp + 0x34]
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push ebx
push 2
push ebx
push eax
push esi
call dword [ecx + 0x10]
test eax, eax
jl 0x40cd13
lea ecx, [esp + 0xb0]
call sub.SLibs500.dll_public:_void___thiscall_SFM_Directory::constructor_void_
lea ecx, [esp + 0x1188]
push ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1184], 0x10
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
lea ecx, [esp + 0x60]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 0x8c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea ecx, [esp + 0x50]
push ecx
push 4
lea ecx, [esp + 0x98]
push ecx
push eax
mov byte [esp + 0x1190], 0x13
call dword [edx + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea ecx, [esp + 0x50]
push ecx
push 2
lea ecx, [esp + 0x5c]
push ecx
push eax
call dword [edx + 0xc]
test eax, eax
jl 0x40ccd4
jmp 0x40cb40
cmp word [esp + 0x54], 0xf
je 0x40ccd4
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea ecx, [esp + 0x50]
push ecx
push 2
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [edx + 0xc]
test eax, eax
jl 0x40ccd4
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea ecx, [esp + 0x50]
push ecx
movsx ecx, word [esp + 0x60]
push ecx
lea ecx, [esp + 0x17c]
push ecx
push eax
call dword [edx + 0xc]
test eax, eax
jl 0x40ccd4
movsx eax, word [esp + 0x54]
sub eax, 2
je 0x40cbd6
dec eax
je 0x40cbbf
sub eax, 6
jne 0x40ccb6
lea edx, [esp + 0x174]
push edx
lea ecx, [esp + 0x90]
call dword [0x42c2e0]
jmp 0x40ccb6
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x64]
call dword [0x42c2e0]
jmp 0x40ccb6
mov ecx, dword [esp + 0x58]
push ecx
lea ecx, [esp + 0xb4]
call sub.SLibs500.dll_public:_int___thiscall_SFM_Directory::FileExists_char_const__
test eax, eax
je 0x40ccb6
lea edx, [esp + 0x174]
push edx
lea ecx, [esp + 0xb0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov esi, eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x9c]
push str.its:
push ecx
mov byte [esp + 0x118c], 0x14
call fcn.0040a1c0
push 0x42daf0
push eax
lea edx, [esp + 0xb4]
push edx
mov byte [esp + 0x1198], 0x15
call fcn.0040a120
push esi
push eax
lea eax, [esp + 0xc8]
push eax
mov byte [esp + 0x11a4], 0x16
call fcn.0040a090
add esp, 0x24
push eax
mov ecx, 0x43ad20
mov byte [esp + 0x1184], 0x17
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
push eax
mov ecx, 0x43ad0c
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0xa8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xa0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x98]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xac]
mov byte [esp + 0x1180], 0x13
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push 2
lea edx, [esp + 0x5c]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x40cb40
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x8c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x60]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x58]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x1180], 0xf
call sub.SLibs500.dll_public:_void___thiscall_SFM_Directory::destructor_void_
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov esi, dword [esp + 0x30]
jne 0x40cd2f
push 0x208
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x34], eax
push 0x208
push eax
push 0xffffffffffffffff
push str.IVB
push ebx
push ebx
call ebp
mov ecx, dword [esp + 0x34]
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ebx
push 2
push ebx
push ecx
push esi
call dword [edx + 0x10]
test eax, eax
jl 0x40cf76
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea ecx, [esp + 0x50]
push ecx
push 4
lea ecx, [esp + 0x70]
push ecx
push eax
call dword [edx + 0xc]
mov ebp, dword [esp + 0x68]
shr ebp, 3
lea edx, [ebp*8]
push edx
call sub.MFC71.DLL_operator_new
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
add esp, 4
lea esi, [esp + 0x50]
push esi
mov esi, dword [esp + 0x6c]
push esi
push eax
push ecx
mov dword [esp + 0x38], eax
call dword [edx + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x34]
test eax, eax
mov esi, dword [esp + 0x30]
jne 0x40cdc8
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x34], eax
push 0x208
push eax
push 0xffffffffffffffff
push str.STRINGS
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x34]
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push 0
push 2
push 0
push ecx
push esi
call dword [edx + 0x10]
xor eax, eax
mov dword [esp + 0x12c], 0
mov ecx, 0x11
lea edi, [esp + 0x130]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 1
lea ecx, [esp + 0x130]
push ecx
push eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x134]
push eax
mov esi, eax
call sub.MFC71.DLL_operator_new
add esp, 4
lea ecx, [esp + 0x50]
push ecx
mov ebx, eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push esi
push ebx
push eax
call dword [edx + 0xc]
test ebp, ebp
jbe 0x40cf57
mov esi, dword [esp + 0x28]
mov edx, dword [esi + 4]
add edx, ebx
push edx
lea ecx, [esp + 0x74]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov edi, eax
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1184], 0x18
call sub.SLibs500.dll_protected:_void___thiscall__SCC_Array::CheckArray_long_int_
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [edx]
test eax, eax
je 0x40cea4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax]
cmp dword [eax + 4], 1
jle 0x40cea4
lea ecx, [esp + 0x14]
call sub.SLibs500.dll_protected:_void___thiscall__SCC_Array::SeparateBuffers_void_
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x6c]
lea eax, [ecx + edx*4]
push eax
lea eax, [esp + 0xa0]
push str.its:
push eax
call fcn.0040a1c0
push 0x42daf0
push eax
lea ecx, [esp + 0xb8]
push ecx
mov byte [esp + 0x1198], 0x19
call fcn.0040a120
push edi
push eax
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x11a4], 0x1a
call fcn.0040a090
add esp, 0x24
lea ecx, [esp + 0xa4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x9c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x70]
mov byte [esp + 0x1180], 0x1c
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x64]
push eax
push esi
mov ecx, 0x43ad14
call fcn.0040be60
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x64]
mov byte [esp + 0x1180], 0xf
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
add esi, 8
dec ebp
jne 0x40ce55
push ebx
call sub.MFC71.DLL_operator_delete
mov ecx, dword [esp + 0x2c]
push ecx
call sub.MFC71.DLL_operator_delete
mov edi, dword [esp + 0x74]
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 8
xor ebx, ebx
mov byte [esp + 0x1180], 3
inc edi
jmp 0x40c98b
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [esp + 0x14], vtable.SCC_Array_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____.0
lea ecx, [esp + 0x14]
mov byte [esp + 0x1180], 0x1f
call sub.SLibs500.dll_public:_void___thiscall__SCC_Array::Clear_void_
lea ecx, [esp + 0x14]
mov byte [esp + 0x1180], 1
call sub.SLibs500.dll_protected:_void___thiscall__SCC_Array::destructor_void_
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov byte [esp + 0x1180], 0
je 0x40cfce
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40cfdc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40cfeb
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x1188]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
mov ecx, dword [esp + 0x1178]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1168]
pop ebx
xor ecx, esp
call fcn.0042708e
add esp, 0x1174
ret