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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x612cb7
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push esi
push edi
mov eax, dword [0x685e38]
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 [0x686168]
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.00406040
mov ecx, esi
mov dword [esp + 0x140], edi
mov dword [esp + 0x68], edi
call fcn.00499930
test eax, eax
jle 0x4073f4
mov edx, dword [esi + 0x70]
add edx, 0x24
lea esp, [esp]
movsx eax, word [edx]
cmp dword [ebp + 8], eax
je 0x4073dd
mov ecx, esi
inc edi
add edx, 0x5c
call fcn.00499930
cmp edi, eax
jl 0x4073c0
mov dword [esp + 0x68], edi
jmp 0x4073f4
mov dword [esp + 0x68], edi
imul edi, edi, 0x5c
add edi, dword [esi + 0x70]
lea ecx, [esp + 0xa4]
push edi
call fcn.00406170
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.00406a60
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.00406a60
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 0x407578
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.005edb30
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x44]
push eax
call fcn.00406f20
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 0x407501
movsx edx, word [esp + 0xca]
mov byte [esp + 0x3f], 1
cmp edx, dword [esi + 0x18]
je 0x407506
mov byte [esp + 0x3f], 0
test byte [esp + 0x44], 1
je 0x40751c
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 0x407559
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 0x407490
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0xa4]
push ecx
lea ecx, [esp + 0x70]
call fcn.004f4df0
lea ecx, [esp + 0x6c]
call fcn.004f4dd0
lea ecx, [esp + 0x74]
call fcn.005ed1b0
lea ecx, [esp + 0x80]
mov byte [esp + 0x140], 2
call fcn.005ed1b0
push 0x633c9c
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 0x40795a
mov ebx, dword [sym.imp.MSVCR90.dll_sscanf]
mov dl, byte [ecx + 2]
and dl, 3
cmp dl, 1
je 0x4075f9
mov ecx, dword [ecx + 8]
jmp 0x40794e
call fcn.004f4b50
push eax
lea ecx, [esp + 0x78]
call fcn.005edbf0
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x84]
call fcn.005edbf0
lea ecx, [esp + 0x74]
push str.3D_MaterialName
push ecx
call fcn.005edad0
add esp, 8
test eax, eax
je 0x4076ed
sub esp, 0xc
lea edx, [esp + 0x8c]
mov ecx, esp
mov dword [esp + 0x6c], esp
push edx
call fcn.005edb30
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call fcn.00406f20
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 0x407947
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 0x4076c9
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 0x4076cb
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 0x407947
lea eax, [esp + 0x74]
push str.3D_MassDensity
push eax
call fcn.005edad0
add esp, 8
test eax, eax
je 0x407735
cmp dword [esp + 0x38], 1
jne 0x407735
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x54]
push ecx
push 0x633eac
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 0x407947
lea eax, [esp + 0x74]
push str.3D_YoungModulus
push eax
call fcn.005edad0
add esp, 8
test eax, eax
je 0x40777d
cmp dword [esp + 0x38], 1
jne 0x40777d
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x54]
push ecx
push 0x633eac
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 0x407947
lea eax, [esp + 0x74]
push str.3D_ThermalConductivity
push eax
call fcn.005edad0
add esp, 8
test eax, eax
je 0x407877
cmp dword [esp + 0x38], 1
jne 0x407877
sub esp, 0xc
lea edx, [esp + 0x8c]
mov ecx, esp
mov dword [esp + 0x6c], esp
push edx
call fcn.005edb30
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.00406f20
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.00405e90
mov eax, dword [esp + 0xa0]
add esp, 8
xor esi, esi
test eax, eax
jle 0x407848
test esi, esi
jl 0x407a16
cmp esi, eax
jge 0x407a16
mov eax, dword [esp + 0x94]
mov eax, dword [eax + esi*4]
lea ecx, [esp + 0x54]
push ecx
push 0x633eac
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 0x407802
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 0x407947
lea edx, [esp + 0x74]
push str.3D_SpecificHeat
push edx
call fcn.005edad0
add esp, 8
test eax, eax
je 0x4078bf
cmp dword [esp + 0x38], 1
jne 0x4078bf
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x54]
push eax
push 0x633eac
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 0x407947
lea edx, [esp + 0x74]
push str.3D_SurfaceEmissivity
push edx
call fcn.005edad0
add esp, 8
test eax, eax
je 0x407904
cmp dword [esp + 0x38], 1
jne 0x407904
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x54]
push eax
push 0x633eac
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 0x407947
lea edx, [esp + 0x74]
push str.3D_SurfaceRoughness
push edx
call fcn.005edad0
add esp, 8
test eax, eax
je 0x407947
cmp dword [esp + 0x38], 1
jne 0x407947
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x54]
push eax
push 0x633eac
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 0x4075e6
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 0x407a1b
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.005edb30
mov edi, dword [esp + 0x70]
lea ecx, [esp + 0x84]
push ecx
mov ecx, edi
call fcn.00406f20
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 0x407a21
call fcn.005fc660
mov edi, dword [esp + 0x50]
xor esi, esi
test byte [esp + 0x44], 2
mov dword [esp + 0x140], 4
je 0x407a3d
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 0x407a62
push eax
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBLayer::PutMaterialName_char_const__]
jmp 0x407aac
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.00406f90
lea edx, [esp + 0x58]
push edx
mov ecx, edi
call fcn.00406f20
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.00406170
lea ecx, [esp + 0x5c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x80]
mov byte [esp + 0x140], 2
call fcn.005ed430
lea ecx, [esp + 0x74]
mov byte [esp + 0x140], 0
call fcn.005ed430
lea ecx, [esp + 0xa4]
mov dword [esp + 0x140], 0xffffffff
call fcn.00406110
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