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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60dd3d
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67dc50]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x6c], edi
mov ecx, dword [0x67df84]
xor ebx, ebx
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBSheet____thiscall_BMBProduct::GetSheet_int_]
mov ebp, eax
mov dword [esp + 0x78], ebp
cmp ebp, ebx
jne 0x40c59b
xor eax, eax
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x54]
push eax
lea ecx, [esp + 0xb4]
call fcn.00472590
lea esi, [edi + 0x80]
push ebx
mov ecx, esi
call fcn.005e99d0
mov ecx, ebp
mov dword [esi], ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_class_CTypedPtrArray_class_CPtrArray__class_BMBPart______thiscall_BMBSheet::GetPartArray_void_]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x5c], 1
call fcn.005e8490
lea ecx, [esp + 0xb0]
mov dword [esp + 0xf0], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], ebx
call fcn.00472570
mov esi, dword [esp + 0xb8]
cmp esi, ebx
je 0x40d1c7
mov eax, dword [esi + 0x34]
inc dword [esp + 0x5c]
lea ebx, [esi + 0x34]
push eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0x44], ebx
call fcn.005e9060
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [edi + 0x80]
mov byte [esp + 0xf4], 1
call fcn.005e9c30
lea ecx, [esp + 0xc0]
mov byte [esp + 0xf0], 0
call fcn.005e8710
mov eax, dword [ebx]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.005e9060
lea edx, [esp + 0x74]
push edx
mov ecx, edi
call fcn.004277f0
mov ax, word [esi + 0x50]
and ax, 3
mov byte [esp + 0xf0], 2
cmp ax, 1
jne 0x40c68c
mov byte [esp + 0x64], al
jmp 0x40c69b
cmp ax, 2
setne al
dec al
and al, 2
mov byte [esp + 0x64], al
push 0x62dc24
lea ecx, [esp + 0xa8]
call fcn.005e8ed0
mov eax, dword [ebx]
mov ecx, dword [edi + 0x50]
push eax
call fcn.0047b110
mov ebx, eax
test ebx, ebx
je 0x40c6e0
mov ecx, dword [edi + 0x50]
push ecx
mov ecx, ebx
call fcn.00482b90
test eax, eax
je 0x40c6e0
mov ecx, eax
call fcn.004018e0
push eax
lea ecx, [esp + 0xa8]
call fcn.005e8ed0
push 0x10c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
mov byte [esp + 0xf0], 3
test ebp, ebp
je 0x40c72c
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov ecx, dword [0x67df8c]
push edx
push eax
push ecx
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::constructor_int__unsigned_char__char_const__]
mov dword [ebp], 0x62e3ec
mov dword [ebp + 0x6c], 0x62e3d8
mov dword [esp + 0x24], ebp
jmp 0x40c732
xor ebp, ebp
mov dword [esp + 0x24], ebp
inc dword [0x67df8c]
sub esp, 0xc
lea edx, [esp + 0xb0]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x100], 2
call fcn.005e8e10
lea eax, [esp + 0xac]
push eax
mov ecx, edi
call fcn.004277f0
mov eax, dword [eax]
push eax
mov ecx, ebp
mov byte [esp + 0xf4], 4
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::PutEnetName_char_const__]
lea ecx, [esp + 0xa0]
mov byte [esp + 0xf0], 2
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, esi
call fcn.00472730
movzx eax, ax
test ax, ax
jbe 0x40c7e3
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x58]
push eax
mov ecx, esi
call fcn.00472730
movzx ecx, ax
push ecx
lea ecx, [edi + 0x100]
call fcn.004069d0
movzx eax, byte [esp + 0x60]
movzx edx, byte [esp + 0x54]
movzx ecx, byte [esp + 0x50]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
push eax
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::PutColor_unsigned_long_int_]
push esi
lea ecx, [esp + 0x4c]
call fcn.004725e0
lea ecx, [esp + 0x48]
mov byte [esp + 0xf0], 5
call fcn.00472600
lea ecx, [esp + 0x48]
call fcn.004f32d0
test eax, eax
je 0x40c9ab
lea ecx, [esp + 0x48]
call fcn.004f32d0
mov esi, eax
mov ecx, esi
call fcn.0046f890
mov ecx, esi
mov ebp, eax
call fcn.004a3cd0
mov ecx, ebp
call fcn.004a6240
mov ecx, esi
mov dword [esp + 0x38], eax
call fcn.004a3cd0
mov ebp, eax
mov eax, dword [ebp + 0x60]
xor edi, edi
add eax, 0xffffffff
mov dword [esp + 0x34], ebp
je 0x40c898
lea esp, [esp]
mov edx, dword [ebp]
mov eax, dword [edx + 0x58]
mov esi, dword [esp + 0x38]
push edi
mov ecx, ebp
call eax
mov ecx, eax
call fcn.0046f9e0
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x40c886
test cl, cl
je 0x40c882
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x40c886
add eax, 2
add esi, 2
test cl, cl
jne 0x40c866
xor eax, eax
jmp 0x40c88b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c898
mov eax, dword [ebp + 0x60]
inc edi
dec eax
cmp edi, eax
jb 0x40c850
mov eax, dword [esp + 0x3c]
inc edi
movzx ecx, di
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], ebp
cmp eax, ebp
je 0x40c96d
mov eax, dword [eax + 8]
cmp eax, ebp
jle 0x40c96d
test ebp, ebp
jl 0x40d21e
cmp ebp, eax
jge 0x40d21e
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
mov esi, dword [eax + ebp*4]
lea ecx, [esp + 0x98]
push ecx
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______thiscall_BMBPart::GetRefName_void_]
mov eax, dword [eax]
mov ecx, dword [esp + 0x6c]
push eax
lea edx, [esp + 0xd0]
push edx
mov byte [esp + 0xf8], 6
call fcn.00406e90
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 0x2c]
push ecx
push eax
mov byte [esp + 0xf8], 7
call fcn.005e8db0
add esp, 8
lea ecx, [esp + 0xcc]
mov edi, eax
mov byte [esp + 0xf0], 6
call fcn.005e8710
lea ecx, [esp + 0x98]
mov byte [esp + 0xf0], 5
call dword [sym.imp.mfc90.dll_Ordinal_601]
test edi, edi
jne 0x40c95d
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 8]
inc ebp
cmp ebp, eax
jl 0x40c8bd
jmp 0x40c96d
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_long_int___thiscall_BMBElement::GetID_void_]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40c975
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::AddPin_int__short_int_]
lea ecx, [esp + 0x48]
call fcn.00472610
lea ecx, [esp + 0x48]
call fcn.004f32d0
test eax, eax
jne 0x40c80f
mov edi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x24]
test ebx, ebx
je 0x40d17e
push 0x62dc24
lea ecx, [esp + 0x2c]
call fcn.005e9060
push ebx
lea ecx, [esp + 0x1f]
mov byte [esp + 0xf4], 8
call fcn.0042e750
test eax, eax
je 0x40c9ed
push eax
lea ecx, [esp + 0x1f]
call fcn.0042e960
push ecx
mov ecx, ebp
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::PutVoltage_float_]
cmp dword [edi + 0x2d8], 1
jne 0x40cbb2
push 0x28
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov byte [esp + 0xf0], 9
test esi, esi
je 0x40ca26
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElecAttr::constructor_void_]
mov dword [esi], vtable.BMBElecAttr.0
jmp 0x40ca28
xor esi, esi
push esi
mov ecx, ebp
mov byte [esp + 0xf4], 8
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::PutElecAttr_class_BMBElecAttr__]
push 1
push ebx
lea ecx, [esp + 0x23]
call fcn.0042e780
test eax, eax
je 0x40ca5f
push eax
lea ecx, [esp + 0x1f]
call fcn.0042e960
push ecx
mov ecx, esi
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElecAttr::PutHighpeakVtg_float_]
push 0
push ebx
lea ecx, [esp + 0x23]
call fcn.0042e780
test eax, eax
je 0x40ca85
push eax
lea ecx, [esp + 0x1f]
call fcn.0042e960
push ecx
mov ecx, esi
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElecAttr::PutLowpeakVtg_float_]
push ebx
lea ecx, [esp + 0x1f]
call fcn.0042e9d0
push eax
lea ecx, [esp + 0x2c]
call fcn.005e8ed0
sub esp, 0xc
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.005e8e10
lea eax, [esp + 0x80]
push eax
mov ecx, edi
call fcn.004277f0
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0xf4], 0xa
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElecAttr::PutEPotentialGrp_char_const__]
lea ecx, [esp + 0x74]
mov byte [esp + 0xf0], 8
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0x62dc24
lea ecx, [esp + 0x2c]
call fcn.005e8ed0
push ebx
lea ecx, [esp + 0x1f]
call fcn.0042ea00
push eax
lea ecx, [esp + 0x2c]
call fcn.005e8ed0
sub esp, 0xc
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.005e8e10
lea eax, [esp + 0x7c]
push eax
mov ecx, edi
call fcn.004277f0
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0xf4], 0xb
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElecAttr::PutPhase_char_const__]
lea ecx, [esp + 0x70]
mov byte [esp + 0xf0], 8
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, ebx
call fcn.00484db0
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
push ecx
mov ecx, esi
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElecAttr::PutPeriod_float_]
mov ecx, ebx
call fcn.004821c0
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
push ecx
mov ecx, esi
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElecAttr::PutDuty_float_]
mov ecx, ebx
call fcn.00484dd0
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
push ecx
mov ecx, esi
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElecAttr::PutRiseTime_float_]
mov ecx, ebx
call fcn.004970a0
fstp dword [esp + 0x1c]
push ecx
fld dword [esp + 0x20]
mov ecx, esi
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElecAttr::PutVoltAmplitude_float_]
cmp dword [edi + 0x2dc], 1
jne 0x40ce87
push 0x2c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov byte [esp + 0xf0], 0xc
test esi, esi
je 0x40cbeb
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBEMAttr::constructor_void_]
mov dword [esi], vtable.BMBEMAttr.0
jmp 0x40cbed
xor esi, esi
push esi
mov ecx, ebp
mov byte [esp + 0xf4], 8
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::PutEMAttr_class_BMBEMAttr__]
push 0x62dc24
lea ecx, [esp + 0x2c]
call fcn.005e8ed0
push ebx
lea ecx, [esp + 0x1f]
call fcn.0042e890
sub eax, 1
je 0x40cc3e
sub eax, 1
je 0x40cc37
sub eax, 1
lea ecx, [esp + 0x28]
je 0x40cc30
push 0x62e3a8
jmp 0x40cc47
push str.ZDIR
jmp 0x40cc47
push str.4DIR
jmp 0x40cc43
push 0x62e394
lea ecx, [esp + 0x2c]
call fcn.005e8ed0
sub esp, 0xc
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.005e8e10
lea eax, [esp + 0xa0]
push eax
mov ecx, edi
call fcn.004277f0
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0xf4], 0xd
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBEMAttr::PutShield_char_const__]
lea ecx, [esp + 0x94]
mov byte [esp + 0xf0], 8
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0x62dc24
lea ecx, [esp + 0x2c]
call fcn.005e8ed0
mov eax, dword [ebx + 0x28]
push eax
lea ecx, [esp + 0x2c]
call fcn.005e8ed0
sub esp, 0xc
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.005e8e10
lea eax, [esp + 0x8c]
push eax
mov ecx, edi
call fcn.004277f0
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0xf4], 0xe
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBEMAttr::PutShieldNetName_char_const__]
lea ecx, [esp + 0x80]
mov byte [esp + 0xf0], 8
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [ebx + 0x5c]
lea edx, [esp + 0x34]
mov dword [esp + 0x34], ecx
push edx
mov ecx, edi
call fcn.00427770
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
push ecx
mov ecx, esi
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBEMAttr::PutShieldGap_float_]
push ebx
lea ecx, [esp + 0x1f]
mov dword [esp + 0x5c], 0
call fcn.0042e7b0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.00427770
push ecx
mov ecx, esi
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBEMAttr::PutXtalkMax_float_]
push 0x62dc24
lea ecx, [esp + 0x2c]
call fcn.005e8ed0
push ebx
lea ecx, [esp + 0x1f]
call fcn.0042e6b0
dec eax
cmp eax, 3
ja case.default.0x40cd6e
jmp dword [eax*4 + 0x40d224]
push str.NO_CARE
jmp 0x40cd96
push str.ACTIVE
jmp 0x40cd96
push str.PASSIVE
jmp 0x40cd96
push str.ACTIVE_PASSIVE
jmp 0x40cd96
push 0x62dc24
lea ecx, [esp + 0x2c]
call fcn.005e8ed0
sub esp, 0xc
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.005e8e10
lea eax, [esp + 0x88]
push eax
mov ecx, edi
call fcn.004277f0
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0xf4], 0xf
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBEMAttr::PutXtalkType_char_const__]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xf0], 8
call dword [sym.imp.mfc90.dll_Ordinal_601]
push str.crsTkIntensity
push ebx
lea ecx, [esp + 0x23]
call fcn.0042ea30
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
push ecx
mov ecx, esi
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBEMAttr::PutXtalkIntensity_float_]
push ebx
lea ecx, [esp + 0x1f]
call fcn.0042e820
cmp eax, 1
sete cl
mov byte [esp + 0x90], cl
mov edx, dword [esp + 0x90]
push edx
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBEMAttr::SetGroundProhibit_bool_]
push str.maxWireCapacitance
push ebx
lea ecx, [esp + 0x23]
call fcn.0042ea30
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
push ecx
mov ecx, esi
fstp dword [esp]
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBEMAttr::PutMaxWireCap_float_]
push 0x62dc24
lea ecx, [esp + 0x2c]
call fcn.005e8ed0
push str.powerNetGroup
push ebx
lea ecx, [esp + 0x23]
call fcn.0042e7f0
push eax
lea ecx, [esp + 0x2c]
call fcn.005e8ed0
mov eax, dword [esp + 0x28]
push eax
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBEMAttr::PutPowerNetGroup_char_const__]
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx + 0x194]
xor edx, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], 0
cmp dx, ax
jae 0x40cf97
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x50]
push eax
call fcn.0047b210
mov esi, eax
test esi, esi
je 0x40cf7f
mov ebp, dword [esi + 0x14]
xor ecx, ecx
xor ebx, ebx
cmp cx, bp
jae 0x40cf7f
mov edi, edi
push ebx
mov ecx, esi
call fcn.004815e0
test eax, eax
je 0x40cf75
mov edx, dword [esp + 0x40]
mov ecx, dword [eax + 0x20]
mov eax, dword [edx]
test eax, eax
je 0x40cf1d
test ecx, ecx
je 0x40cf18
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40cf11
test dl, dl
je 0x40cf0d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40cf11
add eax, 2
add ecx, 2
test dl, dl
jne 0x40cef1
xor eax, eax
jmp 0x40cf26
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x40cf26
movsx eax, byte [eax]
jmp 0x40cf26
test ecx, ecx
je 0x40cf2a
movsx eax, byte [ecx]
neg eax
test eax, eax
jne 0x40cf75
mov eax, dword [esi + 0x58]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.005e9060
lea eax, [esp + 0x94]
push eax
mov ecx, edi
call fcn.004277f0
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
push eax
mov byte [esp + 0xf4], 0x10
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::AddNetGroup_char_const__]
lea ecx, [esp + 0x88]
mov byte [esp + 0xf0], 8
call dword [sym.imp.mfc90.dll_Ordinal_601]
inc ebx
cmp bx, bp
jb 0x40ced0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp ax, word [esp + 0x34]
jb 0x40cea7
mov ebp, dword [esp + 0x24]
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx + 0x1a0]
xor edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
cmp dx, ax
jae 0x40d16d
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x50]
push eax
call fcn.0047b2c0
mov ebx, eax
mov dword [esp + 0x38], ebx
test ebx, ebx
je 0x40d159
mov eax, dword [ebx + 0x1c]
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x24], esi
cmp cx, ax
jae 0x40d159
lea ecx, [ecx]
push esi
mov ecx, ebx
call fcn.0047a610
mov dword [esp + 0x40], eax
test eax, eax
je 0x40d146
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_int___thiscall_BMBNet::GetNetGroupCnt_void_]
mov ebx, eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x34], ebx
call dword [sym.imp.mfc90.dll_Ordinal_316]
xor esi, esi
mov byte [esp + 0xf0], 0x11
test ebx, ebx
jle 0x40d12c
mov edi, edi
push esi
lea edx, [esp + 0x90]
push edx
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______thiscall_BMBNet::GetNetGroup_int_]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xf4], 0x12
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x8c]
mov byte [esp + 0xf0], 0x11
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0xdc]
push ecx
mov ecx, edi
call fcn.00406e90
mov eax, dword [eax]
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + 0x58]
test eax, eax
je 0x40d20c
test ecx, ecx
je 0x40d204
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d1fa
test dl, dl
je 0x40d0ba
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d1fa
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d096
xor eax, eax
test eax, eax
lea ecx, [esp + 0xd8]
sete bl
call fcn.005e8710
test bl, bl
je 0x40d121
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x10]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0xc8], esp
push eax
call fcn.005e9060
lea ecx, [esp + 0xa8]
push ecx
mov ecx, edi
call fcn.004277f0
mov eax, dword [eax]
push eax
mov ecx, ebp
mov byte [esp + 0xf4], 0x13
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::AddNetGroupGroup_char_const__]
lea ecx, [esp + 0x9c]
mov byte [esp + 0xf0], 0x11
call dword [sym.imp.mfc90.dll_Ordinal_601]
inc esi
cmp esi, dword [esp + 0x34]
jl 0x40d030
lea ecx, [esp + 0x44]
mov byte [esp + 0xf0], 8
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x38]
inc esi
mov dword [esp + 0x24], esi
cmp si, word [esp + 0x84]
jb 0x40cff0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp ax, word [esp + 0x20]
jb 0x40cfb7
lea ecx, [esp + 0x28]
mov byte [esp + 0xf0], 5
call fcn.005e8710
mov ecx, dword [esp + 0x78]
push ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddNet_class_BMBNet__]
lea ecx, [esp + 0x48]
mov byte [esp + 0xf0], 2
call fcn.004ed1b0
lea ecx, [esp + 0x68]
mov byte [esp + 0xf0], 0
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0xb0]
call fcn.004a5c10
mov esi, dword [esp + 0xb8]
test esi, esi
jne 0x40c609
lea ecx, [esp + 0xa4]
mov dword [esp + 0xf0], 0xffffffff
call fcn.005e8710
mov eax, 1
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x40d0bc
movsx eax, byte [eax]
jmp 0x40d0bc
test ecx, ecx
je 0x40d0ba
movsx eax, byte [ecx]
neg eax
jmp 0x40d0bc
call fcn.005f6e10
nop
jne 0x40d1f3
inc eax
add byte [ebp + ecx*8 + 0x40], bh
add byte [ebx - 0x75ffbf33], al
int 0x40
add ah, cl
int3