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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6138cc
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [0x68615c]
push ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_class_BMBSheet____thiscall_BMBProduct::GetSheet_int_]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4108d2
mov eax, dword [esi + 0x54]
push eax
lea ecx, [esp + 0x68]
call fcn.00476800
lea ecx, [esp + 0x64]
call fcn.004766d0
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x4108d2
mov edi, ecx
mov dword [esp + 0x18], edi
test ecx, ecx
je 0x4108bd
call fcn.00470f00
cmp dword [edi + 0x60], 0
mov dword [esp + 0x20], 0
jbe 0x4108bd
mov edx, dword [edi]
mov eax, dword [esp + 0x20]
mov edx, dword [edx + 0x58]
push eax
mov ecx, edi
call edx
mov ebp, eax
mov dword [esp + 0x2c], ebp
test ebp, ebp
je 0x4108ab
push ebp
lea ecx, [esp + 0x28]
call fcn.004bb7b0
push 0x633c9c
lea ecx, [esp + 0x5c]
mov dword [esp + 0xac], 0
call fcn.005edd80
mov ecx, ebp
mov byte [esp + 0xa8], 1
call fcn.00475300
test eax, eax
je 0x4104ea
mov ecx, ebp
call fcn.00475300
mov eax, dword [eax + 0x34]
push eax
jmp 0x4104ef
push str.TmpNet
lea ecx, [esp + 0x5c]
call fcn.005edbf0
lea ecx, [esp + 0x24]
call fcn.004bb7d0
lea ecx, [esp + 0x24]
call fcn.004f69c0
test eax, eax
je 0x410886
lea ecx, [esp + 0x24]
call fcn.004f69c0
mov edi, eax
push edi
mov ecx, esi
call fcn.0040c9d0
cmp eax, 1
jne 0x410868
sub esp, 0xc
lea eax, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.005edb30
mov ecx, esi
call fcn.0040b470
test eax, eax
jne 0x4105b6
push 0x124
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
mov byte [esp + 0xa8], 2
test ebp, ebp
je 0x410591
mov ecx, dword [esp + 0x58]
mov edx, dword [0x686164]
push ecx
push 0
push edx
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::constructor_int__unsigned_char__char_const__]
mov dword [ebp], vtable.BMBNet.1.0
mov dword [ebp + 0x70], vtable.BMBNet.0
jmp 0x410593
xor ebp, ebp
mov ecx, dword [esp + 0x30]
inc dword [0x686164]
push ebp
mov byte [esp + 0xac], 1
mov dword [esp + 0x20], ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBSheet::AddNet_class_BMBNet__]
mov ebp, dword [esp + 0x2c]
jmp 0x4105c6
mov ecx, dword [esp + 0x30]
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 dword [esp + 0x1c], 0
je 0x410868
mov ecx, ebp
call fcn.004739c0
mov ecx, eax
call fcn.004aa110
push eax
lea ecx, [esp + 0x80]
call fcn.005edd80
mov eax, dword [edi]
mov edx, dword [eax + 0xb8]
mov ecx, edi
mov byte [esp + 0xa8], 3
call edx
push eax
lea ecx, [esp + 0x8c]
call fcn.005edd80
mov eax, dword [edi]
mov edx, dword [eax + 0xb0]
mov ecx, edi
mov byte [esp + 0xa8], 4
call edx
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 0x5c]
push ecx
cmp eax, 1
setne al
push 1
sub esp, 8
mov byte [esp + 0x64], al
mov eax, esp
mov dword [esp + 0x24], esp
push eax
mov ecx, edi
call edx
lea eax, [esp + 0xa4]
push eax
mov ecx, esi
call fcn.0041f700
mov ecx, dword [eax + 4]
mov edx, dword [edi]
mov ebp, dword [eax]
mov eax, dword [edx + 0x7c]
mov dword [esp + 0x74], ecx
mov ecx, edi
call eax
fcomp dword [0x633d58]
mov edx, dword [edi]
mov ecx, edi
fnstsw ax
test ah, 1
mov eax, dword [edx + 0x7c]
jne 0x410684
call eax
fadd qword [0x634650]
jmp 0x41068c
call eax
fsub qword [0x634650]
mov ecx, dword [esp + 0x18]
fstp qword [esp + 0x34]
call fcn.00470ce0
fld qword [esp + 0x34]
mov di, ax
call fcn.005fbb60
mov ecx, dword [esp + 0x18]
sub ax, di
test byte [ecx + 0x3c], 2
movzx eax, ax
mov dword [esp + 0x14], eax
je 0x4106c2
neg eax
movzx edx, ax
mov dword [esp + 0x14], edx
push 0xa0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x78], edi
mov byte [esp + 0xa8], 5
test edi, edi
je 0x4107eb
movsx edx, word [esp + 0x14]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x74]
push ecx
mov dword [esp + 0x18], edx
push ecx
fild dword [esp + 0x1c]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
mov ecx, esi
fstp dword [esp]
push eax
mov dword [esp + 0x50], ebp
call fcn.0042afc0
push ecx
lea ecx, [esp + 0x50]
fstp dword [esp]
push ecx
mov ecx, esi
call fcn.0042afc0
sub esp, 0x10
lea edx, [esp + 0x98]
fstp dword [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.005edb30
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
call fcn.00406f20
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [ecx + 0x2c]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x54], esp
or ebx, 1
push eax
mov byte [esp + 0xcc], 6
mov dword [esp + 0x38], ebx
call fcn.005edd80
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call fcn.00406f20
mov eax, dword [eax]
push eax
push 0xffffffffffffffff
push 1
sub esp, 0xc
lea eax, [esp + 0xb4]
mov ecx, esp
mov dword [esp + 0x60], esp
or ebx, 2
push eax
mov dword [esp + 0xd8], 7
mov dword [esp + 0x44], ebx
call fcn.005edb30
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call fcn.00406f20
mov eax, dword [eax]
mov edx, dword [0x686164]
push eax
or ebx, 4
push edx
mov ecx, edi
mov dword [esp + 0xd0], 8
mov dword [esp + 0x3c], ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBTestPoint::constructor_int__char_const___unsigned_char__long_int__char_const___char_const___float__float__float__unsigned_char_]
mov dword [edi], vtable.BMBTestPoint.1.0
mov dword [edi + 0x70], vtable.BMBTestPoint.0
jmp 0x4107ed
xor edi, edi
test bl, 4
je 0x4107ff
lea ecx, [esp + 0x4c]
and ebx, 0xfffffffb
call dword [sym.imp.mfc90.dll_Ordinal_601]
test bl, 2
je 0x410811
lea ecx, [esp + 0x40]
and ebx, 0xfffffffd
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0xa8], 4
test bl, 1
je 0x41082e
lea ecx, [esp + 0x50]
and ebx, 0xfffffffe
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x1c]
push edi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBNet::AddTestPoint_class_BMBTestPoint__]
inc dword [0x686164]
lea ecx, [esp + 0x88]
mov byte [esp + 0xa8], 3
call fcn.005ed430
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa8], 1
call fcn.005ed430
mov ebp, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
call fcn.004bb800
lea ecx, [esp + 0x24]
call fcn.004f69c0
test eax, eax
jne 0x410512
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x58]
mov byte [esp + 0xa8], 0
call fcn.005ed430
lea ecx, [esp + 0x24]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004f2200
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [edi + 0x60]
jb 0x41048b
lea ecx, [esp + 0x64]
call fcn.004a9a40
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jne 0x410466
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret