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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x545eb9
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 0x475c31
mov ebx, dword [esp + 0xb4]
cmp ebx, edi
je 0x475c31
cmp dword [esp + 0xb8], edi
je 0x475c31
push esi
mov esi, dword [esp + 0xac]
cmp esi, edi
jne 0x474e58
push str.DxSimMesh::Create______pd3dDevice____NULL
call fcn.00463fc0
add esp, 4
jmp 0x4753c1
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 0x474e80
sub eax, edx
mov dword [esp + 0x1c], eax
je 0x474eb6
mov eax, dword [esp + 0xbc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474ea0
sub eax, edx
mov dword [esp + 0x1c], eax
je 0x474eb6
mov eax, 1
jmp 0x474eb8
xor eax, eax
cmp eax, edi
mov dword [ebp + 0x154], eax
je 0x475502
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.00474ab0
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 0x47535e
cmp dword [esp + 0x24], ebx
je 0x47501b
lea ecx, [esp + 0x38]
call fcn.005178b0
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.004abf00
test al, al
je 0x475008
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
je 0x474fba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x474fd0
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 0x4753de
xor ebx, ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], 1
call fcn.004abdf0
jmp 0x475080
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x47502d
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x47503f
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 0x475454
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 0x475484
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
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
mov byte [esp + 0xa4], 3
je 0x47510e
push fcn.004865a0
push esi
push 0xc
push ebx
call fcn.004011f0
jmp 0x475110
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 0x475190
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 0x475150
mov eax, dword [edi]
mov edx, dword [eax]
push eax
call dword [edx + 0x40]
test byte [esp + 0xb0], 0x10
je 0x47524e
lea eax, [esi + esi*2]
shl eax, 2
push eax
call sub.MFC71.DLL_operator_new
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
mov byte [esp + 0xa4], 4
je 0x4751d7
push fcn.004865a0
push esi
push 0xc
push ebx
call fcn.004011f0
jmp 0x4751d9
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 0x475246
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 0x475212
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 0x474f10
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x50]
jne 0x4752a6
cmp eax, dword [esp + 0x54]
je 0x4754c9
mov eax, dword [ebp + 0x158]
xor esi, esi
cmp eax, esi
mov dword [ebp + 0x154], esi
je 0x4752c7
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 0x4752e0
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 0x4752f9
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 0x475312
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 0x47532b
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 0x475344
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 0x4754cb
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.00464be0
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x475388
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x47539a
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 0x4753f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], 0
push esi
call fcn.00519010
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.00463a70
add esp, 0xc
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], 1
call fcn.004abdf0
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 0x4753c3
mov eax, dword [esp + edi*4 + 0x28]
cmp eax, ebx
je 0x475466
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + edi*4 + 0x28], ebx
push esi
call fcn.00519010
push eax
mov eax, dword [esp + edi*4 + 0x94]
push eax
push str.ERROR_:_D3DXLoadMeshFromX____s__hr:__s
call fcn.00463a70
add esp, 0xc
jmp 0x475426
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x475496
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4754a8
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x10], ebx
push esi
call fcn.00519010
push eax
mov eax, dword [esp + 0xb8]
push eax
push str.ERROR_:_OptimizeInplace____s__hr:__s
call fcn.00463a70
add esp, 0xc
jmp 0x475426
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 0x4754eb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x475772
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x475772
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 0x475524
mov byte [eax], cl
inc eax
dec ebx
jne 0x475515
jmp 0x475528
cmp ebx, edi
jne 0x475529
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.00474ab0
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 0x4755b7
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.00464be0
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 0x4753bb
cmp dword [esp + 0x1c], edi
je 0x4756f3
lea ecx, [esp + 0x38]
call fcn.005178b0
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.004abf00
test al, al
je 0x475659
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 0x475659
push esi
call fcn.00519010
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.00463a70
add esp, 0xc
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], bl
call fcn.004abdf0
jmp 0x4756d8
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], bl
call fcn.004abdf0
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 0x475749
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4756aa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4756bc
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x10], edi
push esi
call fcn.00519010
push eax
mov eax, dword [esp + 0xb8]
push eax
push str.ERROR_:_OptimizeInplace____s__hr:__s
call fcn.00463a70
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 0x47543c
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 0x475669
push esi
call fcn.00519010
mov edx, dword [esp + 0xb4]
push eax
push edx
push str.ERROR_:_D3DXLoadMeshFromX____s__hr:__s
jmp 0x4756d0
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.00472fe0
test bh, 1
mov eax, dword [ebp + 0x170]
je 0x47587a
cmp eax, esi
je 0x4757a3
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
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
test edi, edi
mov dword [esp + 0xa4], 8
je 0x4757e6
push fcn.004865a0
push esi
push 8
push edi
call fcn.004011f0
jmp 0x4757e8
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 0x47580c
mov dword [esp + 0x18], 0xc
test bl, 0x10
je 0x475816
add dword [esp + 0x18], 0xc
test bl, 0x40
je 0x475820
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 0x475869
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 0x475840
mov eax, dword [ebp + 0x13c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
jmp 0x475a2d
cmp eax, esi
je 0x47588d
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
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
mov dword [esp + 0xa4], 9
je 0x4758d0
push fcn.004865a0
push esi
push 8
push edi
call fcn.004011f0
jmp 0x4758d2
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 0x4759c2
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 0x475958
mov eax, dword [ecx - 8]
mov dword [esp + 0x28], eax
fld dword [ecx - 4]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x47596d
mov eax, dword [ecx - 4]
mov dword [esp + 0x2c], eax
fld dword [ecx]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x475980
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
fld dword [ecx - 8]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 5
jp 0x475995
mov eax, dword [ecx - 8]
mov dword [esp + 0x38], eax
fld dword [ecx - 4]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x4759aa
mov eax, dword [ecx - 4]
mov dword [esp + 0x3c], eax
fld dword [ecx]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 5
jp 0x4759bd
mov eax, dword [ecx]
mov dword [esp + 0x40], eax
add ecx, edi
dec edx
jne 0x475943
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 0x475a1f
fdivr dword [0x5d4410]
mov edi, dword [esp + 0x20]
xor edx, edx
fld dword [0x5d4410]
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 0x4759f2
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 0x475c04
mov ecx, dword [ebp + 0x140]
test ecx, ecx
jbe 0x475c04
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
je 0x475c00
mov eax, dword [ebp + 0x140]
lea edx, [eax + eax*8]
shl edx, 3
push edx
call sub.MFC71.DLL_operator_new
mov dword [ebp + 0x144], eax
mov eax, dword [ebp + 0x140]
shl eax, 2
push eax
call sub.MFC71.DLL_operator_new
mov ecx, dword [ebp + 0x140]
shl ecx, 2
push ecx
mov dword [ebp + 0x148], eax
call sub.MFC71.DLL_operator_new
mov dword [ebp + 0x14c], eax
mov eax, dword [ebp + 0x140]
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], 0
jbe 0x475c00
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 0x475b15
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475ad1
sub eax, edx
lea esi, [eax + 1]
push esi
call sub.MFC71.DLL_operator_new
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 0x475b2a
mov eax, dword [edi]
mov ecx, dword [ebp + 0x144]
mov edx, dword [ebx + ecx + 0x44]
push eax
push esi
push edx
call fcn.004126e0
jmp 0x475b2a
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 0x475bde
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.004ae1e0
add esp, 0x18
test eax, eax
jge 0x475bba
mov eax, dword [ebp + 0x148]
mov dword [esi + eax], 0
mov ecx, dword [ebp + 0x148]
cmp dword [esi + ecx], 0
je 0x475bde
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
push eax
call fcn.004ad200
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 0x475ac4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x475c1e
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0
test eax, eax
je 0x4753c1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4753c1
push str.DxSimMesh::Create______szFilename____NULL
call fcn.00463fc0
add esp, 4
xor eax, eax
jmp 0x4753c4