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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x41dcfd
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x431c48]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.JobPrefsDBPI.dll_public:_void___thiscall_CJobPrefsDBViaPadstack::constructor_void_]
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x3c]
xor ebx, ebx
mov dword [esp + 0x80], ebx
cmp edi, ebx
je 0x408dda
nop
mov eax, dword [edi + 0x20]
add eax, 0xffffffb9
cmp eax, 0xf3
ja case.0x408a08.72
movzx ecx, byte [eax + 0x408e28]
jmp dword [ecx*4 + 0x408e04]
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDBViaSpan::AddDisabledViaPadstack_class_CJobPrefsDBViaPadstack___char_const__]
cmp eax, ebx
je case.0x408a08.72
mov ecx, esi
cmp eax, 0x80070057
jne 0x408d00
push 0x10b
jmp 0x408d05
lea ecx, [esp + 0x34]
call dword [sym.imp.JobPrefsDBPI.dll_public:_void___thiscall_CJobPrefsDBViaSpan::constructor_void_]
mov edx, dword [edi + 0x30]
mov ebx, dword [edx]
lea eax, [esp + 0x1c]
push eax
push edi
mov ecx, esi
mov byte [esp + 0x88], 1
call fcn.004013a0
push ebx
call dword [sym.imp.JobPrefsDBPI.dll_public:_static_int___cdecl_CJobPrefsDBViaSpan::IsValidLayerNumber_int_]
add esp, 4
test eax, eax
je 0x408d1c
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.JobPrefsDBPI.dll_public:_static_int___cdecl_CJobPrefsDBViaSpan::IsValidLayerNumber_int_]
add esp, 4
test eax, eax
je 0x408d5b
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jge 0x408d84
mov ecx, dword [esi + 0xa8]
push eax
push ebx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDB::FindViaSpan_class_CJobPrefsDBViaSpan___int__int_]
test eax, eax
je 0x408d92
cmp eax, 0x40003
jne 0x408af5
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDBViaSpan::SetFromLayerNumber_int_]
test eax, eax
je 0x408ad8
push 0xe5
mov ecx, esi
call fcn.00401470
mov eax, dword [esp + 0x1c]
push eax
mov ecx, ebx
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDBViaSpan::SetToLayerNumber_int_]
test eax, eax
je 0x408af5
push 0xe5
mov ecx, esi
call fcn.00401470
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0
call dword [sym.imp.JobPrefsDBPI.dll_public:_void___thiscall_CJobPrefsDBViaSpan::destructor_void_]
jmp case.0x408a08.72
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
mov ecx, esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebx
call fcn.004013d0
push 0xc
call sub.mfc90.dll_Ordinal_798
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x80], 2
cmp eax, ebx
je 0x408b4e
mov ecx, eax
call dword [sym.imp.JobPrefsDBPI.dll_public:_void___thiscall_CJobPrefsDBViaClearance::constructor_void_]
mov ebx, eax
mov eax, dword [esi + 0xbc]
cmp eax, 4
mov byte [esp + 0x80], 0
jge 0x408b88
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [edi + 0x30]
fld qword [eax]
sub esp, 8
fstp qword [esp]
push 0
push ecx
mov ecx, dword [esi + 0xa8]
push edx
push ebx
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDB::NewViaClearance_class_CJobPrefsDBViaClearance___enum_CJobPrefsDBViaClearance::eClearanceType__enum_CJobPrefsDBViaClearance::eClearanceMode__enum_CJobPrefsDBViaClearance::eEleToEleType__double__enum_eDesignUnits_]
jmp 0x408bac
mov eax, dword [edi + 0x30]
fld qword [eax]
call fcn.00410210
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push eax
push 0
push ecx
mov ecx, dword [esi + 0xa8]
push edx
push ebx
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDB::NewViaClearance_class_CJobPrefsDBViaClearance___enum_CJobPrefsDBViaClearance::eClearanceType__enum_CJobPrefsDBViaClearance::eClearanceMode__enum_CJobPrefsDBViaClearance::eEleToEleType__int_]
test eax, eax
jne 0x408bc2
mov ecx, dword [ebp + 8]
push ebx
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDBViaSpan::AddViaClearance_class_CJobPrefsDBViaClearance__]
test eax, eax
je case.0x408a08.72
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0xb4]
push 1
push eax
push 0
push 0xe5
push ecx
call fcn.00414d20
add esp, 0x14
inc dword [esi + 0xc0]
jmp case.0x408a08.72
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
and eax, 1
push eax
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDBViaSpan::SetSkipViaAttribute_int_]
test eax, eax
je case.0x408a08.72
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0xb4]
push 1
push eax
push ebx
push 0xe5
push ecx
call fcn.00414d20
add esp, 0x14
inc dword [esi + 0xc0]
jmp case.0x408a08.72
mov edx, dword [edi + 0x30]
fld qword [edx]
mov ecx, dword [ebp + 8]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDBViaSpan::SetViaCapacitance_double_]
cmp eax, ebx
je case.0x408a08.72
mov ecx, esi
cmp eax, 0x80070057
jne 0x408d00
push 0x125
jmp 0x408d05
mov eax, dword [edi + 0x30]
fld qword [eax]
mov ecx, dword [ebp + 8]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDBViaSpan::SetViaDelay_double_]
cmp eax, ebx
je case.0x408a08.72
mov ecx, esi
cmp eax, 0x80070057
jne 0x408d00
push 0x124
jmp 0x408d05
mov eax, dword [esi + 0xbc]
cmp eax, 4
jge 0x408cb0
mov ecx, dword [edi + 0x30]
fld qword [ecx]
mov ecx, dword [ebp + 8]
push eax
sub esp, 8
fstp qword [esp]
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDBViaSpan::SetViaGridInUnits_double__enum_eDesignUnits_]
jmp 0x408cc4
mov edx, dword [edi + 0x30]
fld qword [edx]
call fcn.00410210
mov ecx, dword [ebp + 8]
push eax
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDBViaSpan::SetViaGrid_int_]
cmp eax, ebx
je case.0x408a08.72
mov ecx, esi
cmp eax, 0x80070057
jne 0x408d00
push 0x126
jmp 0x408d05
mov eax, dword [edi + 0x30]
fld qword [eax]
mov ecx, dword [ebp + 8]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDBViaSpan::SetViaInductance_double_]
cmp eax, ebx
je case.0x408a08.72
mov ecx, esi
cmp eax, 0x80070057
jne 0x408d00
push 0x138
jmp 0x408d05
push 0xe5
call fcn.00401470
mov edi, dword [edi + 0x38]
xor ebx, ebx
cmp edi, ebx
jne 0x4089f0
jmp 0x408dda
mov ecx, dword [0x432408]
push ecx
push 0xf2
push 0x43240c
call dword [sym.imp.mfc90.dll_Ordinal_2538]
mov edx, dword [esi + 0xc4]
mov eax, dword [0x43240c]
mov ecx, dword [esi + 0xb4]
push 1
push edx
push 0
push eax
push ecx
call fcn.00414cd0
add esp, 0x20
inc dword [esi + 0xc0]
jmp 0x408dc8
mov edx, dword [0x432408]
push edx
push 0xf3
push 0x43240c
call dword [sym.imp.mfc90.dll_Ordinal_2538]
mov eax, dword [0x43240c]
add esp, 0xc
push eax
mov ecx, esi
call fcn.004014a0
jmp 0x408dc8
push 0x105
mov ecx, esi
call fcn.00401470
jmp 0x408dc8
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [esi + 0xa8]
call dword [sym.imp.JobPrefsDBPI.dll_public:_long_int___thiscall_CJobPrefsDB::DeleteViaSpan_class_CJobPrefsDBViaSpan__]
mov edx, dword [esp + 0x1c]
push edx
push ebx
push 0x132
push 0x43240c
call dword [sym.imp.mfc90.dll_Ordinal_2538]
mov eax, dword [0x43240c]
add esp, 0x10
push eax
mov ecx, esi
call fcn.00401500
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0
call dword [sym.imp.JobPrefsDBPI.dll_public:_void___thiscall_CJobPrefsDBViaSpan::destructor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x80], 0xffffffff
call dword [sym.imp.JobPrefsDBPI.dll_public:_void___thiscall_CJobPrefsDBViaPadstack::destructor_void_]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8