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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x610df7
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push esi
push edi
mov eax, dword [0x682d00]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x50], esi
xor edi, edi
mov dword [esp + 0x44], edi
mov ecx, dword [0x683040]
call dword [sym.imp.BMA_C9.dll_public:_class_BMAInterface____thiscall_BMAProject::GetInterface_void_]
mov ecx, eax
call dword [sym.imp.BMA_C9.dll_public:_class_BMAIfBD____thiscall_BMAInterface::GetBD_void_]
lea ecx, [esp + 0xa4]
mov ebx, eax
call fcn.00406050
mov ecx, esi
mov dword [esp + 0x140], edi
mov dword [esp + 0x68], edi
call fcn.00498b50
test eax, eax
jle 0x4073c4
mov edx, dword [esi + 0x70]
add edx, 0x24
lea esp, [esp]
movsx eax, word [edx]
cmp dword [ebp + 8], eax
je 0x4073ad
mov ecx, esi
inc edi
add edx, 0x5c
call fcn.00498b50
cmp edi, eax
jl 0x407390
mov dword [esp + 0x68], edi
jmp 0x4073c4
mov dword [esp + 0x68], edi
imul edi, edi, 0x5c
add edi, dword [esi + 0x70]
lea ecx, [esp + 0xa4]
push edi
call fcn.00406180
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0xe4]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x48]
push eax
xor edi, edi
push ecx
mov ecx, esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x48], edi
call fcn.00406a70
movzx eax, byte [esp + 0x38]
movzx edx, byte [esp + 0x48]
movzx ecx, byte [esp + 0x40]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x48]
push ecx
push edx
mov ecx, esi
call fcn.00406a70
movzx eax, byte [esp + 0x38]
movzx ecx, byte [esp + 0x48]
movzx edx, byte [esp + 0x40]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
mov ecx, ebx
mov dword [esp + 0x8c], eax
mov byte [esp + 0x48], 0
call dword [sym.imp.BMA_C9.dll_public:_int___thiscall_BMAIfBD::CountLayer_void_]
test eax, eax
jle 0x407548
push edi
mov ecx, ebx
call dword [sym.imp.BMA_C9.dll_public:_class_BMAIfBDLayer____thiscall_BMAIfBD::GetLayer_int_]
mov esi, eax
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90.dll_Ordinal_300]
sub esp, 0xc
lea edx, [esp + 0xb8]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
mov byte [esp + 0x150], 1
call fcn.005ec480
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x44]
push eax
call fcn.0042ad00
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
or dword [esp + 0x44], 1
push eax
push ecx
call dword [sym.imp.MSVCR90.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4074d1
movsx edx, word [esp + 0xca]
mov byte [esp + 0x3f], 1
cmp edx, dword [esi + 0x18]
je 0x4074d6
mov byte [esp + 0x3f], 0
test byte [esp + 0x44], 1
je 0x4074ec
and dword [esp + 0x44], 0xfffffffe
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp byte [esp + 0x3f], 0
mov byte [esp + 0x140], 0
je 0x407529
movzx eax, byte [esi + 0x24]
mov byte [esp + 0xcf], al
mov cl, byte [esi + 0x25]
mov byte [esp + 0xd0], cl
fld dword [esi + 0x28]
fstp dword [esp + 0xec]
movzx eax, byte [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x4c], edx
mov byte [esp + 0x48], al
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, ebx
inc edi
call dword [sym.imp.BMA_C9.dll_public:_int___thiscall_BMAIfBD::CountLayer_void_]
cmp edi, eax
jl 0x407460
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0xa4]
push ecx
lea ecx, [esp + 0x70]
call fcn.004f4130
lea ecx, [esp + 0x6c]
call fcn.004f4110
lea ecx, [esp + 0x74]
call fcn.005ebb00
lea ecx, [esp + 0x80]
mov byte [esp + 0x140], 2
call fcn.005ebb00
push 0x631c94
lea ecx, [esp + 0x60]
mov byte [esp + 0x144], 3
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov ecx, dword [esp + 0x70]
xor edi, edi
mov byte [esp + 0x140], 4
mov dword [esp + 0x38], edi
cmp ecx, edi
je 0x40792a
mov ebx, dword [sym.imp.MSVCR90.dll_sscanf]
mov dl, byte [ecx + 2]
and dl, 3
cmp dl, 1
je 0x4075c9
mov ecx, dword [ecx + 8]
jmp 0x40791e
call fcn.004f3e90
push eax
lea ecx, [esp + 0x78]
call fcn.005ec540
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x84]
call fcn.005ec540
lea ecx, [esp + 0x74]
push str.3D_MaterialName
push ecx
call fcn.005ec420
add esp, 8
test eax, eax
je 0x4076bd
sub esp, 0xc
lea edx, [esp + 0x8c]
mov ecx, esp
mov dword [esp + 0x6c], esp
push edx
call fcn.005ec480
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call fcn.0042ad00
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x144], 5
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x64]
mov byte [esp + 0x140], 4
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esi + 0x80]
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBMaterial____thiscall_BMBMapMaterial::ScanElement_char_const__]
mov edi, eax
test edi, edi
jne 0x407917
push 0x50
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x60], edi
mov byte [esp + 0x140], 6
test edi, edi
je 0x407699
mov edx, dword [esp + 0x5c]
push edx
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMaterial::constructor_char_const__]
mov dword [edi], vtable.BMBMaterial.0
jmp 0x40769b
xor edi, edi
mov ecx, dword [esi + 0x80]
push edi
mov byte [esp + 0x144], 4
mov dword [esp + 0x3c], 1
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMapMaterial::AddElement_class_BMBMaterial__]
jmp 0x407917
lea eax, [esp + 0x74]
push str.3D_MassDensity
push eax
call fcn.005ec420
add esp, 8
test eax, eax
je 0x407705
cmp dword [esp + 0x38], 1
jne 0x407705
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x54]
push ecx
push 0x631ea4
push edx
call ebx
fld qword [esp + 0x60]
add esp, 4
mov ecx, edi
fstp qword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMaterial::PutMassDensity_double_]
jmp 0x407917
lea eax, [esp + 0x74]
push str.3D_YoungModulus
push eax
call fcn.005ec420
add esp, 8
test eax, eax
je 0x40774d
cmp dword [esp + 0x38], 1
jne 0x40774d
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x54]
push ecx
push 0x631ea4
push edx
call ebx
fld qword [esp + 0x60]
add esp, 4
mov ecx, edi
fstp qword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMaterial::PutYoungModulus_double_]
jmp 0x407917
lea eax, [esp + 0x74]
push str.3D_ThermalConductivity
push eax
call fcn.005ec420
add esp, 8
test eax, eax
je 0x407847
cmp dword [esp + 0x38], 1
jne 0x407847
sub esp, 0xc
lea edx, [esp + 0x8c]
mov ecx, esp
mov dword [esp + 0x6c], esp
push edx
call fcn.005ec480
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.0042ad00
lea ecx, [esp + 0x90]
mov byte [esp + 0x140], 7
call sub.mfc90.dll_Ordinal_580
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x90]
push ecx
push edx
mov byte [esp + 0x148], 8
call fcn.00405ea0
mov eax, dword [esp + 0xa0]
add esp, 8
xor esi, esi
test eax, eax
jle 0x407818
test esi, esi
jl 0x4079e6
cmp esi, eax
jge 0x4079e6
mov eax, dword [esp + 0x94]
mov eax, dword [eax + esi*4]
lea ecx, [esp + 0x54]
push ecx
push 0x631ea4
push eax
call ebx
fld qword [esp + 0x60]
add esp, 4
fstp qword [esp]
push esi
mov ecx, edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMaterial::PutThermalConductivity_int__double_]
mov eax, dword [esp + 0x98]
inc esi
cmp esi, eax
jl 0x4077d2
lea ecx, [esp + 0x90]
mov byte [esp + 0x140], 7
call sub.mfc90.dll_Ordinal_781
lea ecx, [esp + 0x40]
mov byte [esp + 0x140], 4
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov esi, dword [esp + 0x50]
jmp 0x407917
lea edx, [esp + 0x74]
push str.3D_SpecificHeat
push edx
call fcn.005ec420
add esp, 8
test eax, eax
je 0x40788f
cmp dword [esp + 0x38], 1
jne 0x40788f
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x54]
push eax
push 0x631ea4
push ecx
call ebx
fld qword [esp + 0x60]
add esp, 4
mov ecx, edi
fstp qword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMaterial::PutSpecificHeat_double_]
jmp 0x407917
lea edx, [esp + 0x74]
push str.3D_SurfaceEmissivity
push edx
call fcn.005ec420
add esp, 8
test eax, eax
je 0x4078d4
cmp dword [esp + 0x38], 1
jne 0x4078d4
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x54]
push eax
push 0x631ea4
push ecx
call ebx
fld qword [esp + 0x60]
add esp, 4
mov ecx, edi
fstp qword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMaterial::PutSurfaceEmissivity_double_]
jmp 0x407917
lea edx, [esp + 0x74]
push str.3D_SurfaceRoughness
push edx
call fcn.005ec420
add esp, 8
test eax, eax
je 0x407917
cmp dword [esp + 0x38], 1
jne 0x407917
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x54]
push eax
push 0x631ea4
push ecx
call ebx
fld qword [esp + 0x60]
add esp, 4
mov ecx, edi
fstp qword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBMaterial::PutSurfaceRoughness_double_]
mov edx, dword [esp + 0x70]
mov ecx, dword [edx + 8]
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x4075b6
push 0x54
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x60], esi
mov byte [esp + 0x140], 9
test esi, esi
je 0x4079eb
mov eax, dword [esp + 0xd1]
fld dword [esp + 0xf0]
mov edx, dword [esp + 0x4c]
push eax
push ecx
mov ecx, dword [esp + 0x50]
fstp dword [esp]
fldz
push ecx
push ecx
fstp dword [esp]
push edx
sub esp, 0xc
lea eax, [esp + 0xcc]
mov ecx, esp
mov dword [esp + 0x6c], esp
push eax
call fcn.005ec480
mov edi, dword [esp + 0x70]
lea ecx, [esp + 0x84]
push ecx
mov ecx, edi
call fcn.0042ad00
mov eax, dword [eax]
mov edx, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe2]
or dword [esp + 0x58], 2
push eax
mov eax, dword [esp + 0xe7]
push edx
mov edx, dword [esp + 0xe8]
push eax
mov eax, dword [esp + 0xea]
push ecx
mov ecx, dword [esp + 0xec]
push edx
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x170], 0xa
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBLayer::constructor_short_int__short_int__short_int__unsigned_char__unsigned_char__unsigned_char__char_const___unsigned_long_int__float__bool__float__unsigned_char_]
mov dword [esi], vtable.BMBLayer.0
jmp 0x4079f1
call fcn.005fa780
mov edi, dword [esp + 0x50]
xor esi, esi
test byte [esp + 0x44], 2
mov dword [esp + 0x140], 4
je 0x407a0d
lea ecx, [esp + 0x64]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0xf4]
push edx
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBLayer::PutMaskLayerType_unsigned_char_]
mov eax, dword [esp + 0x5c]
cmp dword [eax - 0xc], 0
jle 0x407a32
push eax
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBLayer::PutMaterialName_char_const__]
jmp 0x407a7c
mov ecx, dword [esp + 0xd4]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x6c], esp
push ecx
push eax
mov ecx, edi
call fcn.00406f60
lea edx, [esp + 0x58]
push edx
mov ecx, edi
call fcn.0042ad00
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0x144], 0xc
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBLayer::PutMaterialName_char_const__]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x140], 4
call dword [sym.imp.mfc90.dll_Ordinal_601]
fld dword [esp + 0xec]
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0xa4]
fstp dword [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x6c]
imul ecx, ecx, 0x5c
mov dword [esi + 0x1c], eax
add ecx, dword [edi + 0x70]
call fcn.00406180
lea ecx, [esp + 0x5c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x80]
mov byte [esp + 0x140], 2
call fcn.005ebd80
lea ecx, [esp + 0x74]
mov byte [esp + 0x140], 0
call fcn.005ebd80
lea ecx, [esp + 0xa4]
mov dword [esp + 0x140], 0xffffffff
call fcn.00406120
mov eax, esi
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4