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

Disassembly:
push 0xffffffffffffffff
push 0x60e081
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67dc50]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [0x67df84]
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBTableLayer____thiscall_BMBProduct::GetTableLayer_void_]
mov edi, dword [esp + 0x80]
mov eax, dword [edi]
mov edx, dword [eax + 0x58]
mov ecx, edi
call edx
mov esi, eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], esi
call fcn.00513f30
lea ecx, [esp + 0x24]
mov dword [esp + 0x74], 0
call fcn.00513f30
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
mov ecx, edi
mov byte [esp + 0x74], 1
call edx
test eax, eax
je 0x40fa4a
push 0x62dc24
lea ecx, [esp + 0x58]
call fcn.005e9060
mov ebp, 1
mov byte [esp + 0x74], 2
lea ecx, [esp + 0x54]
cmp dword [edi + 0x34], ebp
je 0x40f79b
mov byte [esp + 0x74], 1
call fcn.005e8710
jmp 0x40fa4f
mov edi, dword [edi + 0x2c]
push edi
call fcn.005e8ed0
mov eax, dword [esp + 0x54]
push eax
xor edi, edi
push 0x62dc24
mov dword [esp + 0x88], edi
call fcn.00402890
add esp, 8
test eax, eax
je 0x40f7f5
sub esp, 0xc
lea edx, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.005e8e10
mov ecx, ebx
call fcn.0040af30
cmp eax, edi
je 0x40f7f5
mov ecx, dword [esp + 0x7c]
dec eax
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBNet____thiscall_BMBSheet::GetNet_int_]
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x40f7fc
mov dword [esp + 0x80], ebp
fld dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
mov edx, dword [ebx + 0x24]
push edi
push ecx
fstp dword [esp]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebp
push edi
push esi
push edx
call fcn.004047e0
push edi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.0053c7d0
add esp, 0x2c
cmp dword [esp + 0x24], edi
mov dword [esp + 0x90], edi
jle 0x40fa2f
mov ebp, dword [esp + 0x84]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x90]
mov esi, dword [edx + eax*4]
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
push 0xff
mov ecx, esi
call eax
lea ecx, [esp + 0x3c]
call fcn.00513f30
xor edi, edi
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 3
call fcn.005ee1f0
push 1
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x44], edi
call fcn.0053d290
cmp dword [esp + 0x80], 1
jne 0x40f971
cmp dword [esp + 0x3c], edi
jle 0x40f9ff
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x84], esi
mov byte [esp + 0x74], 4
test esi, esi
je 0x40f8e3
mov edx, dword [ebp]
push edx
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBDrawing::constructor_int_]
mov dword [esi], vtable.BMBDrawing.1.0
mov dword [esi + 0x6c], vtable.BMBDrawing.0
jmp 0x40f8e5
xor esi, esi
mov eax, dword [esp + 0x88]
inc dword [ebp]
push eax
mov ecx, esi
mov byte [esp + 0x78], 3
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
sub esp, 0xc
lea edx, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x90], esp
push edx
call fcn.005e8e10
lea eax, [esp + 0x98]
push eax
mov ecx, ebx
call fcn.004277f0
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0x78], 5
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutName_char_const__]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x74], 3
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + edi*4]
push 0
push edx
push esi
mov ecx, ebx
call fcn.0040f3b0
mov ecx, dword [esp + 0x7c]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddDrawing_class_BMBDrawing__]
inc edi
cmp edi, dword [esp + 0x3c]
jl 0x40f8ac
jmp 0x40f9ff
cmp dword [esp + 0x3c], 0
jle 0x40f9ff
lea esp, [esp]
push 0x84
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x84], esi
mov byte [esp + 0x74], 6
test esi, esi
je 0x40f9c4
mov eax, dword [ebp]
push 0
lea ecx, [eax + 1]
push 3
mov dword [ebp], ecx
push eax
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBPattern::constructor_int__unsigned_char__char_const__]
mov dword [esi], vtable.BMBPattern.1.0
mov dword [esi + 0x6c], vtable.BMBPattern.0
jmp 0x40f9c6
xor esi, esi
mov edx, dword [esp + 0x88]
push edx
mov ecx, esi
mov byte [esp + 0x78], 3
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + edi*4]
push 0
push ecx
push esi
mov ecx, ebx
call fcn.0040f3b0
mov ecx, dword [esp + 0x14]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::AddPattern_class_BMBPattern__]
inc edi
cmp edi, dword [esp + 0x3c]
jl 0x40f980
lea ecx, [esp + 0x3c]
call fcn.00513f80
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 2
call fcn.0048f310
mov eax, dword [esp + 0x90]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x90], eax
jl 0x40f84c
lea ecx, [esp + 0x30]
call fcn.00513f80
lea ecx, [esp + 0x24]
call fcn.00513f80
lea ecx, [esp + 0x54]
jmp 0x40ff16
mov ebp, 1
mov edx, dword [ebx + 0x54]
push edx
lea ecx, [esp + 0x64]
call fcn.00472590
push 0x62dc24
lea ecx, [esp + 0x4c]
call fcn.005e9060
lea ecx, [esp + 0x60]
mov byte [esp + 0x74], 7
call fcn.00472570
cmp dword [esp + 0x68], 0
mov edi, dword [esp + 0x84]
je 0x40fdac
lea ebx, [ebx]
lea ecx, [esp + 0x30]
call fcn.00513f80
lea ecx, [esp + 0x30]
call fcn.005ee340
lea ecx, [esp + 0x24]
call fcn.00513f80
lea ecx, [esp + 0x24]
call fcn.005ee340
mov ebp, dword [esp + 0x68]
push 0x62dc24
lea ecx, [esp + 0x4c]
call fcn.005e8ed0
mov ebp, dword [ebp + 0x34]
push ebp
lea ecx, [esp + 0x4c]
call fcn.005e8ed0
mov ebp, dword [esp + 0x48]
test ebp, ebp
je 0x40fd93
mov eax, 0x62dc24
mov cl, byte [eax]
cmp cl, byte [ebp]
jne 0x40fb05
test cl, cl
je 0x40fb01
mov cl, byte [eax + 1]
cmp cl, byte [ebp + 1]
jne 0x40fb05
add eax, 2
add ebp, 2
test cl, cl
jne 0x40fae4
xor eax, eax
jmp 0x40fb0a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40fd93
sub esp, 0xc
lea eax, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x8c], esp
xor ebp, ebp
push eax
mov dword [esp + 0x94], ebp
call fcn.005e8e10
mov ecx, ebx
call fcn.0040af30
cmp eax, ebp
jne 0x40fb47
mov dword [esp + 0x84], 1
mov ecx, dword [esp + 0x7c]
dec eax
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBNet____thiscall_BMBSheet::GetNet_int_]
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x40fb66
mov dword [esp + 0x84], 1
fld dword [esp + 0x90]
push ebp
push ecx
mov ecx, dword [esp + 0x94]
fstp dword [esp]
push ecx
mov ecx, dword [ebx + 0x24]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x40]
push eax
push 1
push ebp
push esi
push ecx
call fcn.00405250
push ebp
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0053c7d0
add esp, 0x30
cmp dword [esp + 0x24], ebp
mov dword [esp + 0x80], ebp
jle 0x40fd81
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x80]
mov esi, dword [ecx + edx*4]
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
push 0xff
mov ecx, esi
call edx
lea ecx, [esp + 0x3c]
call fcn.00513f30
xor ebp, ebp
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 8
call fcn.005ee1f0
push 1
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov dword [esp + 0x44], ebp
call fcn.0053d290
cmp dword [esp + 0x84], 1
jne 0x40fccc
cmp dword [esp + 0x3c], ebp
jle 0x40fd4d
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov byte [esp + 0x74], 9
test esi, esi
je 0x40fc48
mov ecx, dword [edi]
push ecx
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBDrawing::constructor_int_]
mov dword [esi], vtable.BMBDrawing.1.0
mov dword [esi + 0x6c], vtable.BMBDrawing.0
jmp 0x40fc4a
xor esi, esi
mov edx, dword [esp + 0x88]
inc dword [edi]
push edx
mov ecx, esi
mov byte [esp + 0x78], 8
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
sub esp, 0xc
lea eax, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.005e8e10
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.004277f0
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0x78], 0xa
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutName_char_const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 8
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0x44]
mov eax, dword [edx + ebp*4]
push 0
push eax
push esi
mov ecx, ebx
call fcn.0040f3b0
mov ecx, dword [esp + 0x7c]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddDrawing_class_BMBDrawing__]
inc ebp
cmp ebp, dword [esp + 0x3c]
jl 0x40fc15
jmp 0x40fd4d
cmp dword [esp + 0x3c], 0
jle 0x40fd4d
push 0x84
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov byte [esp + 0x74], 0xb
test esi, esi
je 0x40fd12
mov eax, dword [edi]
push 0
lea ecx, [eax + 1]
push 3
mov dword [edi], ecx
push eax
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBPattern::constructor_int__unsigned_char__char_const__]
mov dword [esi], vtable.BMBPattern.1.0
mov dword [esi + 0x6c], vtable.BMBPattern.0
jmp 0x40fd14
xor esi, esi
mov edx, dword [esp + 0x88]
push edx
mov ecx, esi
mov byte [esp + 0x78], 8
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + ebp*4]
push 0
push ecx
push esi
mov ecx, ebx
call fcn.0040f3b0
mov ecx, dword [esp + 0x18]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::AddPattern_class_BMBPattern__]
inc ebp
cmp ebp, dword [esp + 0x3c]
jl 0x40fcd3
lea ecx, [esp + 0x3c]
call fcn.00513f80
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 7
call fcn.0048f310
mov eax, dword [esp + 0x80]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x80], eax
jl 0x40fbb5
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
call fcn.00513f80
lea ecx, [esp + 0x24]
call fcn.00513f80
lea ecx, [esp + 0x60]
call fcn.004a5c10
cmp dword [esp + 0x68], 0
jne 0x40fa90
mov ebp, 1
push 0x62dc24
lea ecx, [esp + 0x4c]
call fcn.005e8ed0
fld dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push 0
push ecx
fstp dword [esp]
push edx
mov edx, dword [ebx + 0x24]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebp
push 0
push esi
push edx
call fcn.00405250
push 0
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0053c7d0
xor esi, esi
add esp, 0x30
cmp dword [esp + 0x24], esi
mov dword [esp + 0x90], esi
jle 0x40ff00
lea ecx, [ecx]
mov edx, dword [esp + 0x2c]
mov ebp, dword [edx + esi*4]
mov eax, dword [ebp]
mov edx, dword [eax + 0x78]
push 0xff
mov ecx, ebp
call edx
lea ecx, [esp + 0x3c]
call fcn.00513f30
push 0
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 0xc
call fcn.005ee1f0
push 1
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
mov dword [esp + 0x44], 0
call fcn.0053d290
xor ebp, ebp
cmp dword [esp + 0x3c], ebp
jle 0x40fed7
push 0x7c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x8c], esi
mov byte [esp + 0x74], 0xd
test esi, esi
je 0x40fe93
mov ecx, dword [edi]
push ecx
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBDrawing::constructor_int_]
mov dword [esi], vtable.BMBDrawing.1.0
mov dword [esi + 0x6c], vtable.BMBDrawing.0
jmp 0x40fe95
xor esi, esi
mov edx, dword [esp + 0x88]
inc dword [edi]
push edx
mov ecx, esi
mov byte [esp + 0x78], 0xc
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + ebp*4]
push 0
push ecx
push esi
mov ecx, ebx
call fcn.0040f3b0
mov ecx, dword [esp + 0x7c]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddDrawing_class_BMBDrawing__]
inc ebp
cmp ebp, dword [esp + 0x3c]
jl 0x40fe5d
mov esi, dword [esp + 0x90]
lea ecx, [esp + 0x3c]
call fcn.00513f80
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 7
call fcn.0048f310
inc esi
cmp esi, dword [esp + 0x24]
mov dword [esp + 0x90], esi
jl 0x40fe10
lea ecx, [esp + 0x30]
call fcn.00513f80
lea ecx, [esp + 0x24]
call fcn.00513f80
lea ecx, [esp + 0x48]
mov byte [esp + 0x74], 1
call fcn.005e8710
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], 0
call fcn.0048f310
lea ecx, [esp + 0x30]
mov dword [esp + 0x74], 0xffffffff
call fcn.0048f310
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x18