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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dac39
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push edi
xor edi, edi
cmp eax, edi
mov ebp, ecx
je 0x4523e1
mov ebx, dword [esp + 0xb4]
cmp ebx, edi
je 0x4523e1
cmp dword [esp + 0xb8], edi
je 0x4523e1
push esi
mov esi, dword [esp + 0xac]
cmp esi, edi
jne 0x451608
push str.DxSimMesh::Create______pd3dDevice____NULL
call fcn.00412fd0
add esp, 4
jmp 0x451b71
mov eax, dword [esp + 0xb0]
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call sub.d3dx9_35.dll_D3DXGetFVFVertexSize
mov dword [esp + 0x20], eax
mov eax, ebx
mov dword [ebp + 0x138], esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451630
sub eax, edx
mov dword [esp + 0x1c], eax
je 0x451666
mov eax, dword [esp + 0xbc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451650
sub eax, edx
mov dword [esp + 0x1c], eax
je 0x451666
mov eax, 1
jmp 0x451668
xor eax, eax
cmp eax, edi
mov dword [ebp + 0x154], eax
je 0x451cb2
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xbc]
lea eax, [ebp + 0x164]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x18], eax
nop
mov edi, dword [esp + 0x44]
mov eax, dword [esp + edi*4 + 0x90]
xor ebx, ebx
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x28], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0xa8], ebx
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea edx, [esp + 0x7c]
push edx
mov ecx, ebp
call fcn.00451260
lea ecx, [esp + 0x74]
mov byte [esp + 0xa4], 1
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
test eax, eax
jbe 0x451b0e
cmp dword [esp + 0x24], ebx
je 0x4517cb
lea ecx, [esp + 0x38]
call fcn.004b26c0
lea ecx, [esp + 0x74]
mov byte [esp + 0xa4], 2
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040a1d0
test al, al
je 0x4517b8
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
je 0x45176a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x451780
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x10], 0
lea eax, [esp + edi*4 + 0x28]
push eax
lea ecx, [ebp + 0x140]
push ecx
mov ecx, dword [esp + 0xb4]
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
push 0x220
push ebx
push esi
call sub.d3dx9_35.dll_D3DXLoadMeshFromXInMemory
mov esi, eax
test esi, esi
jl 0x451b8e
xor ebx, ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], 1
call fcn.00409850
jmp 0x451830
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4517dd
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4517ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], ebx
lea edx, [esp + edi*4 + 0x28]
push edx
lea eax, [ebp + 0x140]
push eax
mov eax, dword [esp + 0xb4]
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push 0x220
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call sub.d3dx9_35.dll_D3DXLoadMeshFromXA
mov esi, eax
cmp esi, ebx
jl 0x451c04
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + edi*4 + 0x28]
mov edx, dword [eax]
mov esi, dword [ecx]
push ebx
push ebx
lea edi, [esp + edi*4 + 0x30]
push ebx
push eax
call dword [edx + 0xc]
push eax
mov eax, dword [edi]
push 0x7000000
push eax
call dword [esi + 0x6c]
mov esi, eax
cmp esi, ebx
jl 0x451c34
mov edx, dword [esp + 0xac]
mov eax, dword [edi]
mov ecx, dword [eax]
push edi
push edx
mov edx, dword [esp + 0xb8]
push edx
push 0x220
push eax
call dword [ecx + 0x2c]
mov eax, dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov edx, dword [esp + 0x44]
mov esi, eax
lea eax, [esi + esi*2]
shl eax, 2
push eax
mov dword [esp + edx*4 + 0x50], esi
call sub.MFC71.DLL_operator_new_1
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
mov byte [esp + 0xa4], 3
je 0x4518be
push 0x406960
push esi
push 0xc
push ebx
call fcn.00401bf0
jmp 0x4518c0
xor ebx, ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
mov dword [ecx - 0xc], ebx
lea ecx, [esp + 0x48]
push ecx
push 0
mov dword [esp + 0x50], 0
mov edx, dword [eax]
push eax
mov byte [esp + 0xb0], 1
call dword [edx + 0x3c]
xor eax, eax
cmp esi, eax
jbe 0x451940
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + edx*4 + 0x4c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
lea esp, [esp]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x34]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x18]
mov edx, dword [edx - 0xc]
add edx, ebx
mov ebx, dword [ecx]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ecx, dword [ecx + 8]
mov ebx, dword [esp + 0x20]
mov dword [edx + 8], ecx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
add edx, 0xc
add eax, ebx
dec ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], ecx
jne 0x451900
mov eax, dword [edi]
mov edx, dword [eax]
push eax
call dword [edx + 0x40]
test byte [esp + 0xb0], 0x10
je 0x4519fe
lea eax, [esi + esi*2]
shl eax, 2
push eax
call sub.MFC71.DLL_operator_new_1
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
mov byte [esp + 0xa4], 4
je 0x451987
push 0x406960
push esi
push 0xc
push ebx
call fcn.00401bf0
jmp 0x451989
xor ebx, ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
mov dword [ecx], ebx
lea ecx, [esp + 0x1c]
push ecx
push 0
mov dword [esp + 0x24], 0
mov edx, dword [eax]
push eax
mov byte [esp + 0xb0], 1
call dword [edx + 0x3c]
test esi, esi
jbe 0x4519f6
mov edx, dword [esp + 0x44]
mov edx, dword [esp + edx*4 + 0x4c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov esi, dword [esi]
lea edx, [eax + edx + 0xc]
mov ebx, dword [edx]
add esi, ecx
mov dword [esi], ebx
mov ebx, dword [edx + 4]
mov dword [esi + 4], ebx
mov edx, dword [edx + 8]
mov ebx, dword [esp + 0x20]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x24]
add eax, ebx
add ecx, 0xc
dec edx
mov dword [esp + 0x24], edx
jne 0x4519c2
mov edi, dword [edi]
mov eax, dword [edi]
push edi
call dword [eax + 0x40]
lea ecx, [esp + 0x74]
mov byte [esp + 0xa4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x58]
mov dword [esp + 0xa4], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
inc eax
add edx, 4
cmp eax, 3
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], edx
jb 0x4516c0
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x50]
jne 0x451a56
cmp eax, dword [esp + 0x54]
je 0x451c79
mov eax, dword [ebp + 0x158]
xor esi, esi
cmp eax, esi
mov dword [ebp + 0x154], esi
je 0x451a77
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [ebp + 0x158], esi
mov eax, dword [ebp + 0x15c]
cmp eax, esi
je 0x451a90
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [ebp + 0x15c], esi
mov eax, dword [ebp + 0x160]
cmp eax, esi
je 0x451aa9
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [ebp + 0x160], esi
mov eax, dword [ebp + 0x164]
cmp eax, esi
je 0x451ac2
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [ebp + 0x164], esi
mov eax, dword [ebp + 0x168]
cmp eax, esi
je 0x451adb
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [ebp + 0x168], esi
mov eax, dword [ebp + 0x16c]
cmp eax, esi
je 0x451af4
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [ebp + 0x16c], esi
mov ecx, dword [esp + 0xb4]
push esi
push ecx
push str.Mesh_file_vertex_not_same_number.
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x451c7b
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push str.DxSimMesh::Create
call fcn.00413c80
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x451b38
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x451b4a
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x74]
mov byte [esp + 0xa4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esp + 0xa4], 0xffffffff
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x98]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 0x14
mov eax, dword [esp + edi*4 + 0x28]
test eax, eax
lea edi, [esp + edi*4 + 0x28]
je 0x451ba6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], 0
push esi
call fcn.004b3e20
push eax
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push str.ERROR_:_D3DXLoadMeshFromXInMemory____s__hr:__s
call fcn.00412a30
add esp, 0xc
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], 1
call fcn.00409850
lea ecx, [esp + 0x74]
mov byte [esp + 0xa4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x58]
mov dword [esp + 0xa4], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
jmp 0x451b73
mov eax, dword [esp + edi*4 + 0x28]
cmp eax, ebx
je 0x451c16
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + edi*4 + 0x28], ebx
push esi
call fcn.004b3e20
push eax
mov eax, dword [esp + edi*4 + 0x94]
push eax
push str.ERROR_:_D3DXLoadMeshFromX____s__hr:__s
call fcn.00412a30
add esp, 0xc
jmp 0x451bd6
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x451c46
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x451c58
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x10], ebx
push esi
call fcn.004b3e20
push eax
mov eax, dword [esp + 0xb8]
push eax
push str.ERROR_:_OptimizeInplace____s__hr:__s
call fcn.00412a30
add esp, 0xc
jmp 0x451bd6
xor esi, esi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp eax, esi
mov dword [ebp + 0x13c], edx
mov dword [esp + 0x28], esi
je 0x451c9b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x451f22
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x451f22
mov edx, dword [esp + 0xb4]
lea esi, [ebp + 0x2c]
mov ebx, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [eax + edx]
test cl, cl
je 0x451cd4
mov byte [eax], cl
inc eax
dec ebx
jne 0x451cc5
jmp 0x451cd8
cmp ebx, edi
jne 0x451cd9
dec eax
push esi
lea ecx, [esp + 0x78]
mov byte [eax], 0
mov dword [esp + 0x20], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0xa8], 5
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, ebp
call fcn.00451260
mov bl, 6
lea ecx, [esp + 0x58]
mov byte [esp + 0xa4], bl
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
test eax, eax
ja 0x451d67
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push str.DxSimMesh::Create
call fcn.00413c80
add esp, 8
lea ecx, [esp + 0x58]
mov byte [esp + 0xa4], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esp + 0xa4], 0xffffffff
lea ecx, [esp + 0x74]
jmp 0x451b6b
cmp dword [esp + 0x1c], edi
je 0x451ea3
lea ecx, [esp + 0x38]
call fcn.004b26c0
lea ecx, [esp + 0x58]
mov byte [esp + 0xa4], 7
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040a1d0
test al, al
je 0x451e09
lea edx, [ebp + 0x13c]
push edx
lea eax, [ebp + 0x140]
push eax
mov eax, dword [esp + 0xb4]
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x4c]
push eax
push 0x220
push ecx
push edx
call sub.d3dx9_35.dll_D3DXLoadMeshFromXInMemory
mov esi, eax
cmp esi, edi
jge 0x451e09
push esi
call fcn.004b3e20
push eax
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push str.ERROR_:_D3DXLoadMeshFromXInMemory____s__hr:__s
call fcn.00412a30
add esp, 0xc
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], bl
call fcn.00409850
jmp 0x451e88
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], bl
call fcn.00409850
mov eax, dword [ebp + 0x13c]
mov esi, dword [eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edi
push edi
push edi
push eax
call dword [ecx + 0xc]
mov edx, dword [ebp + 0x13c]
push eax
push 0x7000000
push edx
call dword [esi + 0x6c]
mov esi, eax
cmp esi, edi
jge 0x451ef9
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x451e5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x451e6c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x10], edi
push esi
call fcn.004b3e20
push eax
mov eax, dword [esp + 0xb8]
push eax
push str.ERROR_:_OptimizeInplace____s__hr:__s
call fcn.00412a30
add esp, 0xc
lea ecx, [esp + 0x58]
mov byte [esp + 0xa4], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x74]
jmp 0x451bec
lea eax, [ebp + 0x13c]
push eax
lea ecx, [ebp + 0x140]
push ecx
mov ecx, dword [esp + 0xb4]
push edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
push 0x220
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call sub.d3dx9_35.dll_D3DXLoadMeshFromXA
mov esi, eax
cmp esi, edi
jge 0x451e19
push esi
call fcn.004b3e20
mov edx, dword [esp + 0xb4]
push eax
push edx
push str.ERROR_:_D3DXLoadMeshFromX____s__hr:__s
jmp 0x451e80
lea ecx, [esp + 0x58]
mov byte [esp + 0xa4], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x74]
mov dword [esp + 0xa4], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor esi, esi
mov ebx, dword [esp + 0xb0]
push ebx
mov ecx, ebp
call fcn.0044f7f0
test bh, 1
mov eax, dword [ebp + 0x170]
je 0x45202a
cmp eax, esi
je 0x451f53
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [ebp + 0x170], esi
mov eax, dword [ebp + 0x13c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
lea edx, [esi*8]
push edx
call sub.MFC71.DLL_operator_new_1
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
test edi, edi
mov dword [esp + 0xa4], 8
je 0x451f96
push 0x406960
push esi
push 8
push edi
call fcn.00401bf0
jmp 0x451f98
xor edi, edi
xor ecx, ecx
test bl, 2
mov dword [esp + 0xa4], 0xffffffff
mov dword [ebp + 0x170], edi
mov dword [esp + 0x18], ecx
je 0x451fbc
mov dword [esp + 0x18], 0xc
test bl, 0x10
je 0x451fc6
add dword [esp + 0x18], 0xc
test bl, 0x40
je 0x451fd0
add dword [esp + 0x18], 4
mov eax, dword [ebp + 0x13c]
lea edi, [esp + 0x1c]
push edi
push ecx
mov dword [esp + 0x24], ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x3c]
xor eax, eax
test esi, esi
jbe 0x452019
xor ecx, ecx
mov edi, edi
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
add edx, edi
mov ebx, dword [edx + ecx]
mov edi, dword [ebp + 0x170]
mov dword [edi + eax*8], ebx
mov edx, dword [edx + ecx + 4]
mov dword [edi + eax*8 + 4], edx
mov edi, dword [esp + 0x20]
inc eax
add ecx, edi
cmp eax, esi
jb 0x451ff0
mov eax, dword [ebp + 0x13c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
jmp 0x4521dd
cmp eax, esi
je 0x45203d
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [ebp + 0x170], esi
mov eax, dword [ebp + 0x13c]
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov esi, eax
lea eax, [esi*8]
push eax
call sub.MFC71.DLL_operator_new_1
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
mov dword [esp + 0xa4], 9
je 0x452080
push 0x406960
push esi
push 8
push edi
call fcn.00401bf0
jmp 0x452082
xor edi, edi
mov eax, dword [ebp + 0x13c]
lea edx, [esp + 0x34]
push edx
push 0
mov dword [ebp + 0x170], edi
mov dword [esp + 0x3c], 0
mov ecx, dword [eax]
push eax
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 0x34], 0xff7fffff
mov dword [esp + 0x38], 0xff7fffff
mov dword [esp + 0x3c], 0xff7fffff
mov dword [esp + 0x44], 0x7f7fffff
mov dword [esp + 0x48], 0x7f7fffff
mov dword [esp + 0x4c], 0x7f7fffff
call dword [ecx + 0x3c]
test esi, esi
jbe 0x452172
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
add ecx, 8
mov edx, esi
fld dword [ecx - 8]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x452108
mov eax, dword [ecx - 8]
mov dword [esp + 0x28], eax
fld dword [ecx - 4]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x45211d
mov eax, dword [ecx - 4]
mov dword [esp + 0x2c], eax
fld dword [ecx]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x452130
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
fld dword [ecx - 8]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 5
jp 0x452145
mov eax, dword [ecx - 8]
mov dword [esp + 0x38], eax
fld dword [ecx - 4]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x45215a
mov eax, dword [ecx - 4]
mov dword [esp + 0x3c], eax
fld dword [ecx]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 5
jp 0x45216d
mov eax, dword [ecx]
mov dword [esp + 0x40], eax
add ecx, edi
dec edx
jne 0x4520f3
fld dword [esp + 0x28]
xor eax, eax
test esi, esi
fsub dword [esp + 0x38]
fld dword [esp + 0x30]
fsub dword [esp + 0x40]
fstp dword [esp + 0x1c]
jbe 0x4521cf
fdivr dword [0x4e54b0]
mov edi, dword [esp + 0x20]
xor edx, edx
fld dword [0x4e54b0]
fdiv dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
fld st(1)
fmul dword [ecx + edx]
mov ebx, dword [ebp + 0x170]
add ecx, edx
inc eax
fstp dword [ebx + eax*8 - 8]
add edx, edi
cmp eax, esi
fld st(0)
fmul dword [ecx + 8]
mov ecx, dword [ebp + 0x170]
fstp dword [ecx + eax*8 - 4]
jb 0x4521a2
fstp st(0)
mov eax, dword [ebp + 0x13c]
fstp st(0)
mov edx, dword [eax]
push eax
call dword [edx + 0x40]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4523b4
mov ecx, dword [ebp + 0x140]
test ecx, ecx
jbe 0x4523b4
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
je 0x4523b0
mov eax, dword [ebp + 0x140]
lea edx, [eax + eax*8]
shl edx, 3
push edx
call sub.MFC71.DLL_operator_new_1
mov dword [ebp + 0x144], eax
mov eax, dword [ebp + 0x140]
shl eax, 2
push eax
call sub.MFC71.DLL_operator_new_1
mov ecx, dword [ebp + 0x140]
shl ecx, 2
push ecx
mov dword [ebp + 0x148], eax
call sub.MFC71.DLL_operator_new_1
mov dword [ebp + 0x14c], eax
mov eax, dword [ebp + 0x140]
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], 0
jbe 0x4523b0
mov eax, 0xffffffbc
lea edx, [esi + 0x44]
sub eax, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
test eax, eax
je 0x4522c5
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x452281
sub eax, edx
lea esi, [eax + 1]
push esi
call sub.MFC71.DLL_operator_new_1
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x144]
add esp, 4
cmp esi, 0x7fffffff
lea ebx, [ecx + edi]
mov dword [ebx + edx + 0x44], eax
ja 0x4522da
mov eax, dword [edi]
mov ecx, dword [ebp + 0x144]
mov edx, dword [ebx + ecx + 0x44]
push eax
push esi
push edx
call fcn.00401eb0
jmp 0x4522da
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x144]
lea ebx, [eax + edi]
mov dword [ebx + ecx + 0x44], 0
mov edi, dword [ebp + 0x144]
mov edx, dword [esp + 0x20]
add edi, ebx
lea esi, [edx - 0x44]
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x144]
mov esi, dword [eax + ebx]
add eax, ebx
lea ecx, [eax + 0x10]
mov dword [ecx], esi
mov esi, dword [eax + 4]
mov dword [ecx + 4], esi
mov esi, dword [eax + 8]
mov dword [ecx + 8], esi
mov eax, dword [eax + 0xc]
mov esi, dword [esp + 0x18]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 0x148]
shl esi, 2
mov dword [esi + ecx], 0
mov eax, dword [ebp + 0x14c]
mov dword [esi + eax], 0
mov eax, dword [edx]
test eax, eax
je 0x45238e
mov ecx, dword [ebp + 0x148]
mov edx, dword [esp + 0xac]
push 1
push 0
push 0
add ecx, esi
push ecx
push edx
push eax
call fcn.0044f370
add esp, 0x18
test eax, eax
jge 0x45236a
mov eax, dword [ebp + 0x148]
mov dword [esi + eax], 0
mov ecx, dword [ebp + 0x148]
cmp dword [esi + ecx], 0
je 0x45238e
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
push eax
call fcn.0044e390
mov ecx, dword [ebp + 0x14c]
add esp, 4
mov dword [esi + ecx], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebp + 0x140]
inc eax
add edx, 0x48
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
jb 0x452274
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4523ce
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0
test eax, eax
je 0x451b71
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x451b71
push str.DxSimMesh::Create______szFilename____NULL
call fcn.00412fd0
add esp, 4
xor eax, eax
jmp 0x451b74