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

Disassembly:
push 0xffffffffffffffff
push 0x611891
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x682d00]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [0x683034]
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.00516940
lea ecx, [esp + 0x24]
mov dword [esp + 0x74], 0
call fcn.00516940
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
mov ecx, edi
mov byte [esp + 0x74], 1
call edx
test eax, eax
je 0x40fc2a
push 0x631c94
lea ecx, [esp + 0x58]
call fcn.005ec6d0
mov ebp, 1
mov byte [esp + 0x74], 2
lea ecx, [esp + 0x54]
cmp dword [edi + 0x34], ebp
je 0x40f97b
mov byte [esp + 0x74], 1
call fcn.005ebd80
jmp 0x40fc2f
mov edi, dword [edi + 0x2c]
push edi
call fcn.005ec540
mov eax, dword [esp + 0x54]
push eax
xor edi, edi
push 0x631c94
mov dword [esp + 0x88], edi
call fcn.004028a0
add esp, 8
test eax, eax
je 0x40f9d5
sub esp, 0xc
lea edx, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.005ec480
mov ecx, ebx
call fcn.0040b480
cmp eax, edi
je 0x40f9d5
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 0x40f9dc
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.004047d0
push edi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.0053fad0
add esp, 0x2c
cmp dword [esp + 0x24], edi
mov dword [esp + 0x90], edi
jle 0x40fc0f
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.00516940
xor edi, edi
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 3
call fcn.005f1b40
push 1
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x44], edi
call fcn.00540590
cmp dword [esp + 0x80], 1
jne 0x40fb51
cmp dword [esp + 0x3c], edi
jle 0x40fbdf
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 0x40fac3
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 0x40fac5
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.005ec480
lea eax, [esp + 0x98]
push eax
mov ecx, ebx
call fcn.0042ad00
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.0040f0d0
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 0x40fa8c
jmp 0x40fbdf
cmp dword [esp + 0x3c], 0
jle 0x40fbdf
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 0x40fba4
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 0x40fba6
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.0040f0d0
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 0x40fb60
lea ecx, [esp + 0x3c]
call fcn.00516990
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 2
call fcn.004925b0
mov eax, dword [esp + 0x90]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x90], eax
jl 0x40fa2c
lea ecx, [esp + 0x30]
call fcn.00516990
lea ecx, [esp + 0x24]
call fcn.00516990
lea ecx, [esp + 0x54]
jmp 0x4100f6
mov ebp, 1
mov edx, dword [ebx + 0x54]
push edx
lea ecx, [esp + 0x64]
call fcn.00475a10
push 0x631c94
lea ecx, [esp + 0x4c]
call fcn.005ec6d0
lea ecx, [esp + 0x60]
mov byte [esp + 0x74], 7
call fcn.0048b120
cmp dword [esp + 0x68], 0
mov edi, dword [esp + 0x84]
je 0x40ff8c
lea ebx, [ebx]
lea ecx, [esp + 0x30]
call fcn.00516990
lea ecx, [esp + 0x30]
call fcn.005f1cd0
lea ecx, [esp + 0x24]
call fcn.00516990
lea ecx, [esp + 0x24]
call fcn.005f1cd0
mov ebp, dword [esp + 0x68]
push 0x631c94
lea ecx, [esp + 0x4c]
call fcn.005ec540
mov ebp, dword [ebp + 0x34]
push ebp
lea ecx, [esp + 0x4c]
call fcn.005ec540
mov ebp, dword [esp + 0x48]
test ebp, ebp
je 0x40ff73
mov eax, 0x631c94
mov cl, byte [eax]
cmp cl, byte [ebp]
jne 0x40fce5
test cl, cl
je 0x40fce1
mov cl, byte [eax + 1]
cmp cl, byte [ebp + 1]
jne 0x40fce5
add eax, 2
add ebp, 2
test cl, cl
jne 0x40fcc4
xor eax, eax
jmp 0x40fcea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ff73
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.005ec480
mov ecx, ebx
call fcn.0040b480
cmp eax, ebp
jne 0x40fd27
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 0x40fd46
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.004052d0
push ebp
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0053fad0
add esp, 0x30
cmp dword [esp + 0x24], ebp
mov dword [esp + 0x80], ebp
jle 0x40ff61
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.00516940
xor ebp, ebp
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 8
call fcn.005f1b40
push 1
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov dword [esp + 0x44], ebp
call fcn.00540590
cmp dword [esp + 0x84], 1
jne 0x40feac
cmp dword [esp + 0x3c], ebp
jle 0x40ff2d
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 0x40fe28
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 0x40fe2a
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.005ec480
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.0042ad00
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.0040f0d0
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 0x40fdf5
jmp 0x40ff2d
cmp dword [esp + 0x3c], 0
jle 0x40ff2d
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 0x40fef2
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 0x40fef4
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.0040f0d0
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 0x40feb3
lea ecx, [esp + 0x3c]
call fcn.00516990
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 7
call fcn.004925b0
mov eax, dword [esp + 0x80]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x80], eax
jl 0x40fd95
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
call fcn.00516990
lea ecx, [esp + 0x24]
call fcn.00516990
lea ecx, [esp + 0x60]
call fcn.004a8cd0
cmp dword [esp + 0x68], 0
jne 0x40fc70
mov ebp, 1
push 0x631c94
lea ecx, [esp + 0x4c]
call fcn.005ec540
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.004052d0
push 0
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0053fad0
xor esi, esi
add esp, 0x30
cmp dword [esp + 0x24], esi
mov dword [esp + 0x90], esi
jle 0x4100e0
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.00516940
push 0
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 0xc
call fcn.005f1b40
push 1
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
mov dword [esp + 0x44], 0
call fcn.00540590
xor ebp, ebp
cmp dword [esp + 0x3c], ebp
jle 0x4100b7
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 0x410073
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 0x410075
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.0040f0d0
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 0x41003d
mov esi, dword [esp + 0x90]
lea ecx, [esp + 0x3c]
call fcn.00516990
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 7
call fcn.004925b0
inc esi
cmp esi, dword [esp + 0x24]
mov dword [esp + 0x90], esi
jl 0x40fff0
lea ecx, [esp + 0x30]
call fcn.00516990
lea ecx, [esp + 0x24]
call fcn.00516990
lea ecx, [esp + 0x48]
mov byte [esp + 0x74], 1
call fcn.005ebd80
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], 0
call fcn.004925b0
lea ecx, [esp + 0x30]
mov dword [esp + 0x74], 0xffffffff
call fcn.004925b0
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