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

Disassembly:
push 0xffffffffffffffff
push 0x613809
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [0x68615c]
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBTableLayer____thiscall_BMBProduct::GetTableLayer_void_]
mov edi, dword [esp + 0x88]
mov eax, dword [edi]
mov edx, dword [eax + 0x58]
mov ecx, edi
call edx
mov esi, eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], esi
call fcn.00517a80
xor ebp, ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x7c], ebp
call fcn.00517a80
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
mov ecx, edi
mov byte [esp + 0x7c], 1
call edx
test eax, eax
je 0x40fbb0
push 0x633c9c
lea ecx, [esp + 0x60]
call fcn.005edd80
cmp dword [edi + 0x34], 1
mov byte [esp + 0x7c], 2
lea ecx, [esp + 0x5c]
je 0x40fd74
mov byte [esp + 0x7c], 1
call fcn.005ed430
lea ecx, [esp + 0x68]
call fcn.005f3af0
push ebp
lea ecx, [esp + 0x6c]
mov byte [esp + 0x80], 7
call fcn.005ee750
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x68]
push edx
push eax
push edi
mov ecx, ebx
mov dword [esp + 0x74], ebp
call fcn.0040cf30
mov ebp, dword [esp + 0x68]
push 0x633c9c
lea ecx, [esp + 0x54]
call fcn.005edd80
mov edi, dword [esp + 0x8c]
mov byte [esp + 0x7c], 8
test ebp, ebp
jle 0x4101bc
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + esi + 4]
mov eax, dword [eax + esi]
push ecx
push eax
lea ecx, [esp + 0x58]
call fcn.005ed450
sub esp, 0xc
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x94], esp
xor ebp, ebp
push edx
mov dword [esp + 0x9c], ebp
call fcn.005edb30
mov ecx, ebx
call fcn.0040b470
cmp eax, ebp
jne 0x40fc5f
mov dword [esp + 0x8c], 1
mov ecx, dword [esp + 0x84]
dec eax
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBNet____thiscall_BMBSheet::GetNet_int_]
mov dword [esp + 0x24], eax
cmp eax, ebp
jne 0x40fc81
mov dword [esp + 0x8c], 1
fld dword [esp + 0x98]
mov eax, dword [esp + 0x94]
push ebp
push ecx
fstp dword [esp]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [ebx + 0x24]
lea edx, [esp + 0x54]
push edx
push 1
push ebp
push eax
push ecx
call fcn.004052a0
push ebp
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.00540ca0
add esp, 0x30
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x88], ebp
jle 0x410194
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x88]
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 + 0x38]
call fcn.00517a80
xor ebp, ebp
push ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 9
call fcn.005f3cc0
push 1
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x40], ebp
call fcn.00541c40
cmp dword [esp + 0x8c], 1
jne 0x4100d8
cmp dword [esp + 0x38], ebp
jle 0x410160
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
mov byte [esp + 0x7c], 0xa
test esi, esi
je 0x41004b
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 + 0x70], vtable.BMBDrawing.0
jmp 0x41004d
mov edi, dword [edi + 0x2c]
push edi
call fcn.005edbf0
mov eax, dword [esp + 0x5c]
push eax
push 0x633c9c
mov dword [esp + 0x90], ebp
call fcn.00402870
add esp, 8
test eax, eax
je 0x40fdcf
sub esp, 0xc
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.005edb30
mov ecx, ebx
call fcn.0040b470
cmp eax, ebp
je 0x40fdcf
mov ecx, dword [esp + 0x84]
dec eax
push eax
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBNet____thiscall_BMBSheet::GetNet_int_]
mov dword [esp + 0x1c], eax
cmp eax, ebp
jne 0x40fdda
mov dword [esp + 0x88], 1
fld dword [esp + 0x98]
mov eax, dword [esp + 0x94]
mov edx, dword [ebx + 0x24]
push ebp
push ecx
fstp dword [esp]
push eax
lea ecx, [esp + 0x50]
push ecx
push 1
push ebp
push esi
push edx
call fcn.004047a0
push ebp
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00540ca0
add esp, 0x2c
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x98], ebp
jle 0x410026
mov ebp, dword [esp + 0x8c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x98]
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 + 0x38]
call fcn.00517a80
xor edi, edi
push edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 3
call fcn.005f3cc0
push 1
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
mov dword [esp + 0x40], edi
call fcn.00541c40
cmp dword [esp + 0x88], 1
jne 0x40ff5f
cmp dword [esp + 0x38], edi
jle 0x40fff6
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x8c], esi
mov byte [esp + 0x7c], 4
test esi, esi
je 0x40fec8
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 + 0x70], vtable.BMBDrawing.0
jmp 0x40feca
xor esi, esi
mov eax, dword [esp + 0x90]
inc dword [ebp]
push eax
mov ecx, esi
mov byte [esp + 0x80], 3
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
sub esp, 0xc
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x98], esp
push edx
call fcn.005edb30
lea eax, [esp + 0xa0]
push eax
mov ecx, ebx
call fcn.00406f20
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0x80], 5
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutName_char_const__]
lea ecx, [esp + 0x94]
mov byte [esp + 0x7c], 3
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + edi*4]
push 0
push edx
push esi
mov ecx, ebx
call fcn.0040f310
mov ecx, dword [esp + 0x84]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddDrawing_class_BMBDrawing__]
inc edi
cmp edi, dword [esp + 0x38]
jl 0x40fe8e
jmp 0x40fff6
cmp dword [esp + 0x38], 0
jle 0x40fff6
lea ebx, [ebx]
push 0x88
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x8c], esi
mov byte [esp + 0x7c], 6
test esi, esi
je 0x40ffb4
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 + 0x70], vtable.BMBPattern.0
jmp 0x40ffb6
xor esi, esi
mov edx, dword [esp + 0x90]
push edx
mov ecx, esi
mov byte [esp + 0x80], 3
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + edi*4]
push 0
push ecx
push esi
mov ecx, ebx
call fcn.0040f310
mov ecx, dword [esp + 0x1c]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::AddPattern_class_BMBPattern__]
inc edi
cmp edi, dword [esp + 0x38]
jl 0x40ff70
lea ecx, [esp + 0x38]
call fcn.00517ad0
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 2
call fcn.00405850
mov eax, dword [esp + 0x98]
inc eax
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x98], eax
jl 0x40fe2b
lea ecx, [esp + 0x44]
call fcn.00517ad0
lea ecx, [esp + 0x2c]
call fcn.00517ad0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x7c], 1
call fcn.005ed430
jmp 0x41034e
xor esi, esi
mov edx, dword [esp + 0x90]
inc dword [edi]
push edx
mov ecx, esi
mov byte [esp + 0x80], 9
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
sub esp, 0xc
lea eax, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.005edb30
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.00406f20
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0x80], 0xb
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutName_char_const__]
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], 9
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0x40]
mov eax, dword [edx + ebp*4]
push 0
push eax
push esi
mov ecx, ebx
call fcn.0040f310
mov ecx, dword [esp + 0x84]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddDrawing_class_BMBDrawing__]
inc ebp
cmp ebp, dword [esp + 0x38]
jl 0x40fd37
jmp 0x410160
cmp dword [esp + 0x38], 0
jle 0x410160
push 0x88
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
mov byte [esp + 0x7c], 0xc
test esi, esi
je 0x410122
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 + 0x70], vtable.BMBPattern.0
jmp 0x410124
xor esi, esi
mov edx, dword [esp + 0x90]
push edx
mov ecx, esi
mov byte [esp + 0x80], 9
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + ebp*4]
push 0
push ecx
push esi
mov ecx, ebx
call fcn.0040f310
mov ecx, dword [esp + 0x24]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::AddPattern_class_BMBPattern__]
inc ebp
cmp ebp, dword [esp + 0x38]
jl 0x4100e3
lea ecx, [esp + 0x38]
call fcn.00517ad0
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 8
call fcn.00405850
mov eax, dword [esp + 0x88]
inc eax
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x88], eax
jl 0x40fcd4
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x44]
call fcn.00517ad0
lea ecx, [esp + 0x2c]
call fcn.00517ad0
add esi, 0xc
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
jne 0x40fc14
mov esi, dword [esp + 0x1c]
push 0x633c9c
lea ecx, [esp + 0x54]
call fcn.005edbf0
fld dword [esp + 0x98]
mov edx, dword [esp + 0x94]
push 0
push ecx
fstp dword [esp]
push edx
mov edx, dword [ebx + 0x24]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x54]
push ecx
push 1
push 0
push esi
push edx
call fcn.004052a0
push 0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.00540ca0
xor esi, esi
add esp, 0x30
cmp dword [esp + 0x2c], esi
mov dword [esp + 0x98], esi
jle 0x410320
mov edi, edi
mov edx, dword [esp + 0x34]
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 + 0x38]
call fcn.00517a80
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0xd
call fcn.005f3cc0
push 1
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
mov dword [esp + 0x40], 0
call fcn.00541c40
xor ebp, ebp
cmp dword [esp + 0x38], ebp
jle 0x4102f7
push 0x80
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x94], esi
mov byte [esp + 0x7c], 0xe
test esi, esi
je 0x4102ad
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 + 0x70], vtable.BMBDrawing.0
jmp 0x4102af
xor esi, esi
mov edx, dword [esp + 0x90]
inc dword [edi]
push edx
mov ecx, esi
mov byte [esp + 0x80], 0xd
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSymbol::PutLayerNumber_short_int_]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + ebp*4]
push 0
push ecx
push esi
mov ecx, ebx
call fcn.0040f310
mov ecx, dword [esp + 0x84]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddDrawing_class_BMBDrawing__]
inc ebp
cmp ebp, dword [esp + 0x38]
jl 0x410274
mov esi, dword [esp + 0x98]
lea ecx, [esp + 0x38]
call fcn.00517ad0
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 8
call fcn.00405850
inc esi
cmp esi, dword [esp + 0x2c]
mov dword [esp + 0x98], esi
jl 0x410220
lea ecx, [esp + 0x44]
call fcn.00517ad0
lea ecx, [esp + 0x2c]
call fcn.00517ad0
lea ecx, [esp + 0x50]
mov byte [esp + 0x7c], 7
call fcn.005ed430
lea ecx, [esp + 0x68]
mov byte [esp + 0x7c], 1
call fcn.005ee6d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7c], 0
call fcn.00405850
lea ecx, [esp + 0x44]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00405850
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x18